Function at 0x40f180
Capabilities:
Check if file exists
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438abd
mov eax, dword fs:[0]
push eax
sub esp, 0x378
mov eax, dword [0x4444c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2f0], ecx
push 0
push 0x26
lea eax, [ebp - 0x208]
push eax
call fcn.0041aee6
add esp, 0xc
and dword [ebp - 4], 0
push 0x43bb1c
lea ecx, [ebp - 0xb8]
call fcn.00408e1f
mov byte [ebp - 4], 1
push 0x43b782
lea ecx, [ebp - 0x240]
call fcn.00408211
mov byte [ebp - 4], 2
push 0x43bb20
lea ecx, [ebp - 0x80]
call fcn.00408e1f
mov byte [ebp - 4], 3
push 0x43bb1c
lea ecx, [ebp - 0xd4]
call fcn.00408e1f
mov byte [ebp - 4], 4
push 0x43bb1c
lea ecx, [ebp - 0x224]
call fcn.00408e1f
mov byte [ebp - 4], 5
push 0x43bb1c
lea ecx, [ebp - 0x9c]
call fcn.00408e1f
mov byte [ebp - 4], 6
push 0x114
push 0
lea eax, [ebp - 0x1ec]
push eax
call fcn.0041d130
add esp, 0xc
mov dword [ebp - 0x1ec], 0x114
lea eax, [ebp - 0x1ec]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x1e8], 5
jne 0x40f762
cmp dword [ebp - 0x1e4], 1
jne 0x40f762
push 0x43bb1c
lea ecx, [ebp - 0x25c]
call fcn.00408e1f
mov byte [ebp - 4], 7
push 0
push 0x25
lea eax, [ebp - 0x2c]
push eax
call fcn.0041aee6
add esp, 0xc
mov dword [ebp - 0x2f4], eax
mov eax, dword [ebp - 0x2f4]
mov dword [ebp - 0x2c8], eax
mov byte [ebp - 4], 8
push dword [ebp - 0x2c8]
lea ecx, [ebp - 0x208]
call fcn.00406fbc
mov byte [ebp - 4], 9
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.004050af
mov byte [ebp - 4], 7
mov dword [ebp - 0x2f8], 0x43b782
mov eax, dword [ebp - 0x2f8]
inc eax
mov dword [ebp - 0x2fc], eax
mov eax, dword [ebp - 0x2f8]
mov al, byte [eax]
mov byte [ebp - 0x2fd], al
inc dword [ebp - 0x2f8]
cmp byte [ebp - 0x2fd], 0
jne 0x40f2fa
mov eax, dword [ebp - 0x2f8]
sub eax, dword [ebp - 0x2fc]
mov dword [ebp - 0x304], eax
push dword [ebp - 0x304]
push 0x43b782
lea ecx, [ebp - 0x240]
call fcn.00405fab
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.00408632
pop ecx
pop ecx
mov dword [ebp - 0x308], 0x43bb18
mov eax, dword [ebp - 0x308]
inc eax
mov dword [ebp - 0x30c], eax
mov eax, dword [ebp - 0x308]
mov al, byte [eax]
mov byte [ebp - 0x30d], al
inc dword [ebp - 0x308]
cmp byte [ebp - 0x30d], 0
jne 0x40f36b
mov eax, dword [ebp - 0x308]
sub eax, dword [ebp - 0x30c]
mov dword [ebp - 0x314], eax
push dword [ebp - 0x314]
push 0x43bb18
push 2
push 1
lea ecx, [ebp - 0x240]
call fcn.00416775
mov dword [ebp - 0x318], 0x43bb1c
mov eax, dword [ebp - 0x318]
add eax, 2
mov dword [ebp - 0x31c], eax
mov eax, dword [ebp - 0x318]
mov ax, word [eax]
mov word [ebp - 0x31e], ax
add dword [ebp - 0x318], 2
cmp word [ebp - 0x31e], 0
jne 0x40f3cd
mov eax, dword [ebp - 0x318]
sub eax, dword [ebp - 0x31c]
sar eax, 1
mov dword [ebp - 0x324], eax
push dword [ebp - 0x324]
push 0x43bb1c
lea ecx, [ebp - 0xd4]
call fcn.0040606c
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.00408591
pop ecx
pop ecx
mov dword [ebp - 0x328], 0x43bb1c
mov eax, dword [ebp - 0x328]
add eax, 2
mov dword [ebp - 0x32c], eax
mov eax, dword [ebp - 0x328]
mov ax, word [eax]
mov word [ebp - 0x32e], ax
add dword [ebp - 0x328], 2
cmp word [ebp - 0x32e], 0
jne 0x40f446
mov eax, dword [ebp - 0x328]
sub eax, dword [ebp - 0x32c]
sar eax, 1
mov dword [ebp - 0x334], eax
push dword [ebp - 0x334]
push 0x43bb1c
lea ecx, [ebp - 0x25c]
call fcn.0040606c
push dword [0x43b6a8]
push 0
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0x25c]
call fcn.00407683
mov dword [ebp - 0x338], str._normaliz.dll
mov eax, dword [ebp - 0x338]
add eax, 2
mov dword [ebp - 0x33c], eax
mov eax, dword [ebp - 0x338]
mov ax, word [eax]
mov word [ebp - 0x33e], ax
add dword [ebp - 0x338], 2
cmp word [ebp - 0x33e], 0
jne 0x40f4c4
mov eax, dword [ebp - 0x338]
sub eax, dword [ebp - 0x33c]
sar eax, 1
mov dword [ebp - 0x344], eax
push dword [ebp - 0x344]
push str._normaliz.dll
lea ecx, [ebp - 0x25c]
call fcn.004073b3
lea ecx, [ebp - 0x25c]
call fcn.00416ddb
mov dword [ebp - 0x2cc], eax
push dword [ebp - 0x2cc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40f753
mov dword [ebp - 0x348], 0x43bb1c
mov eax, dword [ebp - 0x348]
add eax, 2
mov dword [ebp - 0x34c], eax
mov eax, dword [ebp - 0x348]
mov ax, word [eax]
mov word [ebp - 0x34e], ax
add dword [ebp - 0x348], 2
cmp word [ebp - 0x34e], 0
jne 0x40f54d
mov eax, dword [ebp - 0x348]
sub eax, dword [ebp - 0x34c]
sar eax, 1
mov dword [ebp - 0x354], eax
push dword [ebp - 0x354]
push 0x43bb1c
lea ecx, [ebp - 0x25c]
call fcn.0040606c
push 0
push 0x25
lea eax, [ebp - 0x48]
push eax
call fcn.0041aee6
add esp, 0xc
mov dword [ebp - 0x358], eax
mov eax, dword [ebp - 0x358]
mov dword [ebp - 0x2d0], eax
mov byte [ebp - 4], 0xa
push dword [ebp - 0x2d0]
lea ecx, [ebp - 0x25c]
call fcn.00406fbc
mov byte [ebp - 4], 0xb
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.004050af
mov byte [ebp - 4], 7
push 0
push 0x26
lea eax, [ebp - 0x64]
push eax
call fcn.0041aee6
add esp, 0xc
mov dword [ebp - 0x35c], eax
mov eax, dword [ebp - 0x35c]
mov dword [ebp - 0x2d4], eax
mov byte [ebp - 4], 0xc
push dword [ebp - 0x2d4]
lea ecx, [ebp - 0xb8]
call fcn.00406fbc
mov byte [ebp - 4], 0xd
push 0
push 1
lea ecx, [ebp - 0x64]
call fcn.004050af
mov byte [ebp - 4], 7
mov dword [ebp - 0x360], 0x43ba2c
mov eax, dword [ebp - 0x360]
add eax, 2
mov dword [ebp - 0x364], eax
mov eax, dword [ebp - 0x360]
mov ax, word [eax]
mov word [ebp - 0x366], ax
add dword [ebp - 0x360], 2
cmp word [ebp - 0x366], 0
jne 0x40f647
mov eax, dword [ebp - 0x360]
sub eax, dword [ebp - 0x364]
sar eax, 1
mov dword [ebp - 0x36c], eax
push dword [ebp - 0x36c]
push 0x43ba2c
lea ecx, [ebp - 0xb8]
call fcn.004073b3
mov dword [ebp - 0x370], str.xpdll
mov eax, dword [ebp - 0x370]
add eax, 2
mov dword [ebp - 0x374], eax
mov eax, dword [ebp - 0x370]
mov ax, word [eax]
mov word [ebp - 0x376], ax
add dword [ebp - 0x370], 2
cmp word [ebp - 0x376], 0
jne 0x40f6ab
mov eax, dword [ebp - 0x370]
sub eax, dword [ebp - 0x374]
sar eax, 1
mov dword [ebp - 0x37c], eax
push dword [ebp - 0x37c]
push str.xpdll
lea ecx, [ebp - 0xb8]
call fcn.004073b3
lea eax, [ebp - 0x260]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x268], esp
lea eax, [ebp - 0x25c]
push eax
call fcn.00416670
mov dword [ebp - 0x380], eax
mov byte [ebp - 4], 0xe
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x26c], esp
lea eax, [ebp - 0xb8]
push eax
call fcn.00416670
mov byte [ebp - 4], 7
call fcn.004087ab
add esp, 0x3c
mov dword [ebp - 0x384], eax
mov eax, dword [ebp - 0x384]
mov dword [ebp - 0x264], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x25c]
call fcn.00404d88
and dword [ebp - 0x270], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x9c]
call fcn.00404d88
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x224]
call fcn.00404d88
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xd4]
call fcn.00404d88
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x80]
call fcn.00404d88
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x240]
call fcn.00402765
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb8]
call fcn.00404d88
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x208]
call fcn.00404d88
mov eax, dword [ebp - 0x270]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041c438
leave
ret