Function at 0x465d94
Capabilities:
Check if file exists
Check os version
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffff67c
push ebx
push esi
push edi
mov byte [ebp - 2], cl
mov byte [ebp - 1], dl
mov esi, eax
mov ebx, 0x49fe7f
mov byte [0x49fdf0], 0x52
mov byte [0x49fe04], 0x50
push esi
lea eax, [ebx + 0x566]
push eax
lea edx, [ebp - 0x410]
push edx
call fcn.004902f4
add esp, 0xc
cmp byte [ebp - 1], 0
je 0x46611f
mov eax, esi
call fcn.00467424
test al, al
jne 0x465f1e
lea edx, [ebp - 0x610]
push edx
lea ecx, [ebx + 4]
push ecx
push pe_nt_image_headers32
lea ecx, [ebx + 4]
mov edx, esi
mov eax, 0x80000000
call fcn.00465848
lea eax, [ebp - 0x810]
push eax
lea edx, [ebx + 4]
push edx
push pe_nt_image_headers32
lea ecx, [ebx + 0x572]
mov edx, esi
mov eax, 0x80000000
call fcn.00465848
lea ecx, [ebp - 0xc10]
push ecx
lea eax, [ebx + 4]
push eax
push 0x400
lea ecx, [ebx + 0x57f]
lea edx, [ebp - 0x410]
mov eax, 0x80000000
call fcn.00465848
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebx + 4]
push ecx
push 0xa
lea ecx, [ebx + 0x588]
lea edx, [ebp - 0x410]
mov eax, 0x80000000
call fcn.00465848
mov byte [ebp - 0xd], al
push esi
lea eax, [ebx + 0x77]
push eax
lea edx, [ebp - 0xc60]
push edx
call fcn.004902f4
add esp, 0xc
mov edx, esi
mov eax, 0x80000000
call fcn.00465cc8
xor ecx, ecx
mov cl, al
lea edx, [ebx + 0x591]
lea eax, [ebp - 0xc60]
call fcn.00465758
lea ecx, [ebp - 0x610]
lea edx, [ebx + 0x57a]
lea eax, [ebp - 0xc60]
call fcn.00465650
lea ecx, [ebp - 0x810]
lea edx, [ebx + 0x597]
lea eax, [ebp - 0xc60]
call fcn.00465650
cmp byte [ebp - 0xc10], 0
jne 0x465f07
cmp byte [ebp - 0xd], 0
je 0x465f07
lea ecx, [ebx + 0x59f]
lea edx, [ebx + 0x569]
lea eax, [ebp - 0xc60]
call fcn.00465650
jmp 0x465f1e
lea ecx, [ebp - 0xc10]
lea edx, [ebx + 0x569]
lea eax, [ebp - 0xc60]
call fcn.00465650
cmp byte [ebp + 8], 0
je 0x465f2c
lea ecx, [ebx + 0x5a1]
jmp 0x465f32
lea ecx, [ebx + 0x1e3]
push ecx
lea ecx, [ebx + 4]
mov edx, esi
mov eax, 0x80000000
call fcn.00465660
lea ecx, [ebx + 0x572]
mov edx, esi
mov eax, 0x80000000
call fcn.00465b00
cmp byte [ebp + 0xc], 0
je 0x465fc1
call fcn.0040f8f0
test eax, eax
je 0x465f6a
mov edi, 0x1e
jmp 0x465f6f
mov edi, 0x64
xor esi, esi
cmp edi, esi
jle 0x465fc1
push esi
lea eax, [ebx + 0x5ac]
push eax
lea edx, [ebp - 0xc80]
push edx
call fcn.004902f4
add esp, 0xc
lea ecx, [ebx + 0x1e3]
lea edx, [ebp - 0xc80]
mov eax, 0x80000000
push ecx
lea ecx, [ebx + 4]
call fcn.00465660
lea ecx, [ebx + 0x572]
lea edx, [ebp - 0xc80]
mov eax, 0x80000000
call fcn.00465b00
inc esi
cmp edi, esi
jg 0x465f75
cmp byte [ebp - 2], 0
je 0x46635e
cmp byte [ebp + 8], 0
jne 0x465fdb
cmp byte [ebp + 0xc], 0
je 0x46635e
lea edx, [ebp - 0x410]
mov eax, 0x80000000
call fcn.00465ac4
mov dword [ebp - 0xd14], 0x94
lea ecx, [ebp - 0xd14]
push ecx
call sub.KERNEL32.DLL_GetVersionExA
cmp dword [ebp - 0xd10], 4
ja 0x466017
cmp dword [ebp - 0xd0c], 0xa
jbe 0x4660d5
push 0x400
lea eax, [ebp - 0x1114]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
cmp byte [ebp + 0xc], 0
je 0x466038
lea edx, [ebx + 0x5b3]
jmp 0x46603e
lea edx, [ebx + 0x5be]
push edx
lea eax, [ebp - 0x1114]
call fcn.0040b590
push eax
call fcn.0048d424
add esp, 8
lea ecx, [ebp - 0x1114]
push ecx
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x4660b3
lea eax, [ebx + 0x5c9]
push eax
lea edx, [ebp - 0x1114]
push edx
call fcn.0048f3cc
add esp, 8
mov esi, eax
test esi, esi
je 0x4660b3
cmp byte [ebp + 0xc], 0
je 0x46609a
push esi
push 0x14
push 1
push 0x49fdf0
call fcn.0048f7e4
add esp, 0x10
jmp 0x4660ac
push esi
push 0x16
push 1
push 0x49fe04
call fcn.0048f7e4
add esp, 0x10
push esi
call fcn.0048eed0
pop ecx
lea eax, [ebp - 0x1114]
lea ecx, [ebx + 0x57f]
push eax
mov eax, 0x80000000
lea edx, [ebp - 0x410]
call fcn.00465660
jmp 0x46635e
cmp byte [ebp + 0xc], 0
je 0x4660fd
push 0x49fdf0
push 0x14
lea ecx, [ebx + 0x5cc]
lea edx, [ebp - 0x410]
mov eax, 0x80000000
call fcn.004657b0
jmp 0x46635e
push 0x49fe04
push 0x16
lea ecx, [ebx + 0x5cc]
lea edx, [ebp - 0x410]
mov eax, 0x80000000
call fcn.004657b0
jmp 0x46635e
push esi
lea edx, [ebx + 0x77]
push edx
lea ecx, [ebp - 0x1164]
push ecx
call fcn.004902f4
add esp, 0xc
mov eax, esi
call fcn.00467424
test al, al
je 0x46635e
lea edx, [ebx + 0x591]
lea eax, [ebp - 0x1164]
mov ecx, 1
call fcn.004659f0
test eax, eax
lea eax, [ebx + 4]
setne dl
and edx, 1
lea ecx, [ebp - 0x1364]
mov byte [ebp - 0xe], dl
push eax
lea eax, [ebp - 0x1164]
push pe_nt_image_headers32
lea edx, [ebx + 0x57a]
call fcn.0046582c
lea edx, [ebx + 0x1e3]
push edx
lea ecx, [ebp - 0x1364]
push ecx
call fcn.0048d62c
add esp, 8
test eax, eax
je 0x4661b7
lea eax, [ebx + 0x5a1]
push eax
lea edx, [ebp - 0x1364]
push edx
call fcn.0048d62c
add esp, 8
test eax, eax
jne 0x4661be
mov byte [ebp - 0x1364], 0
lea ecx, [ebx + 4]
push ecx
push pe_nt_image_headers32
lea ecx, [ebp - 0x1564]
lea edx, [ebx + 0x597]
lea eax, [ebp - 0x1164]
call fcn.0046582c
cmp byte [ebp - 0xe], 0
je 0x4662b8
lea eax, [ebp - 0x1364]
lea ecx, [ebx + 4]
push eax
mov eax, 0x80000000
mov edx, esi
call fcn.00465660
cmp byte [ebp - 0x1564], 0
je 0x466222
lea edx, [ebp - 0x1564]
lea ecx, [ebx + 0x572]
push edx
mov edx, esi
mov eax, 0x80000000
call fcn.00465660
jmp 0x466234
lea ecx, [ebx + 0x572]
mov edx, esi
mov eax, 0x80000000
call fcn.00465b00
lea ecx, [ebx + 4]
push ecx
push 0x400
lea ecx, [ebp - 0x1964]
lea edx, [ebx + 0x569]
lea eax, [ebp - 0x1164]
call fcn.0046582c
lea ecx, [ebx + 0x57f]
lea edx, [ebp - 0x410]
mov eax, 0x80000000
call fcn.00465b00
mov al, byte [ebp - 0x1964]
test al, al
je 0x4662d4
xor edx, edx
mov dl, al
cmp edx, 0x2a
jne 0x466299
lea ecx, [ebx + 4]
lea edx, [ebp - 0x410]
push ecx
lea ecx, [ebx + 0x588]
mov eax, 0x80000000
call fcn.00465660
jmp 0x4662d4
lea eax, [ebp - 0x1964]
lea ecx, [ebx + 0x57f]
push eax
mov eax, 0x80000000
lea edx, [ebp - 0x410]
call fcn.00465660
jmp 0x4662d4
lea edx, [ebp - 0x410]
mov eax, 0x80000000
call fcn.00465ac4
mov edx, esi
mov eax, 0x80000000
call fcn.00465ac4
cmp byte [ebp + 0xc], 0
je 0x46635e
xor esi, esi
push esi
lea eax, [ebx + 0x5ac]
push eax
lea edx, [ebp - 0x1984]
push edx
call fcn.004902f4
add esp, 0xc
cmp byte [ebp - 0xe], 0
je 0x466348
cmp byte [ebp - 0x1364], 0
je 0x466348
lea ecx, [ebp - 0x1364]
lea edx, [ebp - 0x1984]
push ecx
lea ecx, [ebx + 4]
mov eax, 0x80000000
call fcn.00465660
cmp byte [ebp - 0x1564], 0
je 0x466358
lea eax, [ebp - 0x1564]
lea ecx, [ebx + 0x572]
push eax
mov eax, 0x80000000
lea edx, [ebp - 0x1984]
call fcn.00465660
jmp 0x466358
lea edx, [ebp - 0x1984]
mov eax, 0x80000000
call fcn.00465ac4
inc esi
cmp esi, 0x64
jl 0x4662e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8