Function at 0x462655
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, 0x4ab6c7
mov byte [0x4ab638], 0x52
mov byte [0x4ab64c], 0x50
push esi
lea eax, [ebx + 0x4ea]
push eax
lea edx, [ebp - 0x410]
push edx
call fcn.0049bdcc
add esp, 0xc
cmp byte [ebp - 1], 0
je 0x4629df
mov eax, esi
call fcn.00463ac4
test al, al
jne 0x4627e2
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.00461a08
lea eax, [ebp - 0x810]
push eax
lea edx, [ebx + 4]
push edx
push pe_nt_image_headers32
lea ecx, [ebx + 0x4f6]
mov edx, esi
mov eax, 0x80000000
call fcn.00461a08
lea ecx, [ebp - 0xc10]
push ecx
lea eax, [ebx + 4]
push eax
push 0x400
lea ecx, [ebx + 0x503]
lea edx, [ebp - 0x410]
mov eax, 0x80000000
call fcn.00461a08
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebx + 4]
push ecx
push 0xa
lea ecx, [ebx + 0x50c]
lea edx, [ebp - 0x410]
mov eax, 0x80000000
call fcn.00461a08
mov byte [ebp - 0xd], al
push esi
lea eax, [ebx + 0x88]
push eax
lea edx, [ebp - 0xc60]
push edx
call fcn.0049bdcc
add esp, 0xc
mov edx, esi
mov eax, 0x80000000
call fcn.00461f9c
xor ecx, ecx
mov cl, al
lea edx, [ebx + 0x515]
lea eax, [ebp - 0xc60]
call fcn.004618f0
lea ecx, [ebp - 0x610]
lea edx, [ebx + 0x4fe]
lea eax, [ebp - 0xc60]
call fcn.004617c8
lea ecx, [ebp - 0x810]
lea edx, [ebx + 0x51b]
lea eax, [ebp - 0xc60]
call fcn.004617c8
cmp byte [ebp - 0xc10], 0
jne 0x4627cb
cmp byte [ebp - 0xd], 0
je 0x4627cb
lea ecx, [ebx + 0x523]
lea edx, [ebx + 0x4ed]
lea eax, [ebp - 0xc60]
call fcn.004617c8
jmp 0x4627e2
lea ecx, [ebp - 0xc10]
lea edx, [ebx + 0x4ed]
lea eax, [ebp - 0xc60]
call fcn.004617c8
cmp byte [ebp + 8], 0
je 0x4627f0
lea ecx, [ebx + 0x525]
jmp 0x4627f6
lea ecx, [ebx + 0x202]
push ecx
lea ecx, [ebx + 4]
mov edx, esi
mov eax, 0x80000000
call fcn.004617d8
lea ecx, [ebx + 0x4f6]
mov edx, esi
mov eax, 0x80000000
call fcn.00461ce0
cmp byte [ebp + 0xc], 0
je 0x462881
mov edi, 0x1e
call fcn.004107bc
test eax, eax
jne 0x46282f
add edi, 0x46
xor esi, esi
cmp edi, esi
jle 0x462881
push esi
lea eax, [ebx + 0x530]
push eax
lea edx, [ebp - 0xc80]
push edx
call fcn.0049bdcc
add esp, 0xc
lea ecx, [ebx + 0x202]
lea edx, [ebp - 0xc80]
mov eax, 0x80000000
push ecx
lea ecx, [ebx + 4]
call fcn.004617d8
lea ecx, [ebx + 0x4f6]
lea edx, [ebp - 0xc80]
mov eax, 0x80000000
call fcn.00461ce0
inc esi
cmp edi, esi
jg 0x462835
cmp byte [ebp - 2], 0
je 0x462c37
cmp byte [ebp + 8], 0
jne 0x46289b
cmp byte [ebp + 0xc], 0
je 0x462c37
lea edx, [ebp - 0x410]
mov eax, 0x80000000
call fcn.00461c9c
mov dword [ebp - 0xd14], 0x94
lea ecx, [ebp - 0xd14]
push ecx
call sub.KERNEL32.DLL_GetVersionExA
cmp dword [ebp - 0xd10], 4
ja 0x4628d7
cmp dword [ebp - 0xd0c], 0xa
jbe 0x462995
push 0x400
lea eax, [ebp - 0x1114]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
cmp byte [ebp + 0xc], 0
je 0x4628f8
lea edx, [ebx + 0x537]
jmp 0x4628fe
lea edx, [ebx + 0x542]
push edx
lea eax, [ebp - 0x1114]
call fcn.0040be48
push eax
call fcn.00498e7c
add esp, 8
lea ecx, [ebp - 0x1114]
push ecx
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x462973
lea eax, [ebx + 0x54d]
push eax
lea edx, [ebp - 0x1114]
push edx
call fcn.0049adac
add esp, 8
mov esi, eax
test esi, esi
je 0x462973
cmp byte [ebp + 0xc], 0
je 0x46295a
push esi
push 0x14
push 1
push 0x4ab638
call fcn.0049b1c4
add esp, 0x10
jmp 0x46296c
push esi
push 0x16
push 1
push 0x4ab64c
call fcn.0049b1c4
add esp, 0x10
push esi
call fcn.0049a8b4
pop ecx
lea eax, [ebp - 0x1114]
lea ecx, [ebx + 0x503]
push eax
mov eax, 0x80000000
lea edx, [ebp - 0x410]
call fcn.004617d8
jmp 0x462c37
cmp byte [ebp + 0xc], 0
je 0x4629bd
push 0x4ab638
push 0x14
lea ecx, [ebx + 0x550]
lea edx, [ebp - 0x410]
mov eax, 0x80000000
call fcn.00461958
jmp 0x462c37
push 0x4ab64c
push 0x16
lea ecx, [ebx + 0x550]
lea edx, [ebp - 0x410]
mov eax, 0x80000000
call fcn.00461958
jmp 0x462c37
push esi
lea edx, [ebx + 0x88]
push edx
lea ecx, [ebp - 0x1164]
push ecx
call fcn.0049bdcc
add esp, 0xc
mov eax, esi
call fcn.00463ac4
test al, al
je 0x462c37
lea edx, [ebx + 0x515]
lea eax, [ebp - 0x1164]
mov ecx, 1
call fcn.00461bc4
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 + 0x4fe]
call fcn.004619ec
lea edx, [ebx + 0x202]
push edx
lea ecx, [ebp - 0x1364]
push ecx
call fcn.00499014
add esp, 8
test eax, eax
je 0x462a7a
lea eax, [ebx + 0x525]
push eax
lea edx, [ebp - 0x1364]
push edx
call fcn.00499014
add esp, 8
test eax, eax
jne 0x462a81
mov byte [ebp - 0x1364], 0
lea ecx, [ebx + 4]
push ecx
push pe_nt_image_headers32
lea ecx, [ebp - 0x1564]
lea edx, [ebx + 0x51b]
lea eax, [ebp - 0x1164]
call fcn.004619ec
cmp byte [ebp - 0xe], 0
je 0x462b7e
lea eax, [ebp - 0x1364]
lea ecx, [ebx + 4]
push eax
mov eax, 0x80000000
mov edx, esi
call fcn.004617d8
cmp byte [ebp - 0x1564], 0
je 0x462ae5
lea edx, [ebp - 0x1564]
lea ecx, [ebx + 0x4f6]
push edx
mov edx, esi
mov eax, 0x80000000
call fcn.004617d8
jmp 0x462af7
lea ecx, [ebx + 0x4f6]
mov edx, esi
mov eax, 0x80000000
call fcn.00461ce0
lea ecx, [ebx + 4]
push ecx
push 0x400
lea ecx, [ebp - 0x1964]
lea edx, [ebx + 0x4ed]
lea eax, [ebp - 0x1164]
call fcn.004619ec
lea ecx, [ebx + 0x503]
lea edx, [ebp - 0x410]
mov eax, 0x80000000
call fcn.00461ce0
cmp byte [ebp - 0x1964], 0
je 0x462bad
xor eax, eax
mov al, byte [ebp - 0x1964]
cmp eax, 0x2a
jne 0x462b5f
lea edx, [ebx + 4]
lea ecx, [ebx + 0x50c]
push edx
lea edx, [ebp - 0x410]
mov eax, 0x80000000
call fcn.004617d8
jmp 0x462bad
lea ecx, [ebp - 0x1964]
lea edx, [ebp - 0x410]
push ecx
lea ecx, [ebx + 0x503]
mov eax, 0x80000000
call fcn.004617d8
jmp 0x462bad
lea edx, [ebp - 0x410]
mov eax, 0x80000000
call fcn.00461c9c
lea ecx, [ebx + 4]
mov edx, esi
push ecx
lea ecx, [ebx + 4]
mov eax, 0x80000000
call fcn.004617d8
mov edx, esi
mov eax, 0x80000000
call fcn.00461c9c
cmp byte [ebp + 0xc], 0
je 0x462c37
xor esi, esi
push esi
lea eax, [ebx + 0x530]
push eax
lea edx, [ebp - 0x1984]
push edx
call fcn.0049bdcc
add esp, 0xc
cmp byte [ebp - 0xe], 0
je 0x462c21
cmp byte [ebp - 0x1364], 0
je 0x462c21
lea ecx, [ebp - 0x1364]
lea edx, [ebp - 0x1984]
push ecx
lea ecx, [ebx + 4]
mov eax, 0x80000000
call fcn.004617d8
cmp byte [ebp - 0x1564], 0
je 0x462c31
lea eax, [ebp - 0x1564]
lea ecx, [ebx + 0x4f6]
push eax
mov eax, 0x80000000
lea edx, [ebp - 0x1984]
call fcn.004617d8
jmp 0x462c31
lea edx, [ebp - 0x1984]
mov eax, 0x80000000
call fcn.00461c9c
inc esi
cmp esi, 0x64
jl 0x462bb9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8