Function at 0x41ddea
Capabilities:
Check os version
Get common file path

Disassembly:
mov eax, 0x4841d1
call fcn.0046746c
sub esp, 0x784
and byte [ebp - 0x2c], 0
push ebx
push esi
push edi
mov ebx, ecx
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x2b]
and byte [ebp - 0x390], 0
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
push 0x7f
xor eax, eax
pop ecx
lea edi, [ebp - 0x38f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x390]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x4a1db0
call fcn.00435442
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
call fcn.00435dac
add esp, 0x14
test eax, eax
jge 0x41e0d5
mov ecx, ebx
call fcn.00401166
mov edi, eax
mov ecx, edi
call fcn.0042a687
mov ecx, edi
mov esi, eax
call fcn.0042e42c
test eax, eax
je 0x41debc
cmp dword [esi + 8], 5
jne 0x41de7a
cmp dword [esi + 0xc], 2
jae 0x41de83
call fcn.0043d4af
test al, al
je 0x41deb5
call fcn.0043d4af
test al, al
jne 0x41e0d0
lea eax, [ebp - 0x190]
mov dword [ebp - 0x190], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp word [ebp - 0xfc], 1
jae 0x41e0d0
mov eax, 0x4a25b4
jmp 0x41ded1
mov ecx, edi
call fcn.0042e3d7
test eax, eax
mov eax, 0x4a25a4
jne 0x41ded1
mov eax, 0x4a2598
push edi
push eax
call fcn.00436a44
pop ecx
test eax, eax
pop ecx
je 0x41df80
cmp dword [esi], 2
jne 0x41df79
call fcn.0043622c
test eax, eax
jne 0x41df0c
mov eax, 0x4b2
push eax
mov dword [0x4ac178], eax
call fcn.00435317
pop ecx
push 1
jmp 0x41e0d7
and byte [ebp - 0x790], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x78f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x790]
mov esi, 0x400
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x41df4e
lea eax, [ebp - 0x790]
mov ecx, ebx
push eax
call fcn.0041dad3
test eax, eax
je 0x41df72
lea eax, [ebp - 0x790]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x41df79
lea eax, [ebp - 0x790]
mov ecx, ebx
push eax
call fcn.0041dad3
test eax, eax
jne 0x41df79
push 2
jmp 0x41e0d7
xor eax, eax
jmp 0x41e0d8
cmp dword [esi + 0x14], 2
jne 0x41df8c
cmp dword [esi + 8], 4
je 0x41df97
mov ecx, edi
call fcn.0042e42c
test eax, eax
je 0x41dfa5
mov ecx, edi
call fcn.0042e39e
push 3
jmp 0x41e0d7
lea eax, [ebp + 0xb]
push 1
push eax
lea ecx, [ebp - 0x7c]
push dword [0x48b7f4]
call fcn.00401884
and dword [ebp - 4], 0
lea eax, [ebp - 0xe]
push 1
push eax
push dword [0x48b7ec]
lea ecx, [ebp - 0xa4]
call fcn.00401884
lea eax, [ebp - 0x7c]
push 0
push eax
lea eax, [ebp - 0xa4]
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0042e961
and byte [ebp - 4], 0
lea ecx, [ebp - 0xa4]
mov bl, al
call fcn.00401093
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00401093
test bl, bl
je 0x41e0d0
lea eax, [ebp + 0xb]
mov esi, 0x4b7
push 0
push eax
lea ecx, [ebp - 0x54]
mov dword [0x4ac178], esi
mov dword [ebp - 0x54], 0x48b660
mov dword [ebp - 0x34], 0x48b658
call fcn.00401907
lea eax, [ebp - 0xd]
push 1
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xcc]
mov dword [ebp - 4], 2
call fcn.00401884
mov eax, dword [eax + 8]
mov byte [ebp - 4], 3
test eax, eax
mov ebx, 0x48b67c
je 0x41e066
mov ebx, eax
mov ecx, dword [edi + 0x164]
lea eax, [ebp - 0xf4]
push esi
push eax
call fcn.0040f6a6
mov eax, dword [eax + 8]
mov byte [ebp - 4], 4
test eax, eax
jne 0x41e089
mov eax, 0x48b6d0
push ebx
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.00423c2b
add esp, 0xc
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 3
call fcn.00402438
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 2
call fcn.00401093
lea ecx, [ebp - 0x54]
call fcn.00401a14
push eax
call fcn.0043503d
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x54]
call fcn.00401093
or eax, 0xffffffff
jmp 0x41e0d8
push 0xfffffffffffffffe
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4