Function at 0x4663b6
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, 0x49ff67
mov byte [0x49fed8], 0x52
mov byte [0x49feec], 0x50
push esi
lea eax, [ebx + 0x4dd]
push eax
lea edx, [ebp - 0x410]
push edx
call fcn.004908b8
add esp, 0xc
cmp byte [ebp - 1], 0
je 0x466741
mov eax, esi
call fcn.00467750
test al, al
jne 0x466540
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.004659a0
lea eax, [ebp - 0x810]
push eax
lea edx, [ebx + 4]
push edx
push pe_nt_image_headers32
lea ecx, [ebx + 0x4e9]
mov edx, esi
mov eax, 0x80000000
call fcn.004659a0
lea ecx, [ebp - 0xc10]
push ecx
lea eax, [ebx + 4]
push eax
push 0x400
lea ecx, [ebx + 0x4f6]
lea edx, [ebp - 0x410]
mov eax, 0x80000000
call fcn.004659a0
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebx + 4]
push ecx
push 0xa
lea ecx, [ebx + 0x4ff]
lea edx, [ebp - 0x410]
mov eax, 0x80000000
call fcn.004659a0
mov byte [ebp - 0xd], al
push esi
lea eax, [ebx + 0x77]
push eax
lea edx, [ebp - 0xc60]
push edx
call fcn.004908b8
add esp, 0xc
mov edx, esi
mov eax, 0x80000000
call fcn.00465e14
xor ecx, ecx
mov cl, al
lea edx, [ebx + 0x508]
lea eax, [ebp - 0xc60]
call fcn.004658b0
lea ecx, [ebp - 0x610]
lea edx, [ebx + 0x4f1]
lea eax, [ebp - 0xc60]
call fcn.004657a8
lea ecx, [ebp - 0x810]
lea edx, [ebx + 0x50e]
lea eax, [ebp - 0xc60]
call fcn.004657a8
cmp byte [ebp - 0xc10], 0
jne 0x466529
cmp byte [ebp - 0xd], 0
je 0x466529
lea ecx, [ebx + 0x516]
lea edx, [ebx + 0x4e0]
lea eax, [ebp - 0xc60]
call fcn.004657a8
jmp 0x466540
lea ecx, [ebp - 0xc10]
lea edx, [ebx + 0x4e0]
lea eax, [ebp - 0xc60]
call fcn.004657a8
cmp byte [ebp + 8], 0
je 0x46654e
lea ecx, [ebx + 0x518]
jmp 0x466554
lea ecx, [ebx + 0x232]
push ecx
lea ecx, [ebx + 4]
mov edx, esi
mov eax, 0x80000000
call fcn.004657b8
lea ecx, [ebx + 0x4e9]
mov edx, esi
mov eax, 0x80000000
call fcn.00465c58
cmp byte [ebp + 0xc], 0
je 0x4665e3
call fcn.0040f820
test eax, eax
je 0x46658c
mov edi, 0x1e
jmp 0x466591
mov edi, 0x64
xor esi, esi
cmp edi, esi
jle 0x4665e3
push esi
lea eax, [ebx + 0x523]
push eax
lea edx, [ebp - 0xc80]
push edx
call fcn.004908b8
add esp, 0xc
lea ecx, [ebx + 0x232]
lea edx, [ebp - 0xc80]
mov eax, 0x80000000
push ecx
lea ecx, [ebx + 4]
call fcn.004657b8
lea ecx, [ebx + 0x4e9]
lea edx, [ebp - 0xc80]
mov eax, 0x80000000
call fcn.00465c58
inc esi
cmp edi, esi
jg 0x466597
cmp byte [ebp - 2], 0
je 0x466980
cmp byte [ebp + 8], 0
jne 0x4665fd
cmp byte [ebp + 0xc], 0
je 0x466980
lea edx, [ebp - 0x410]
mov eax, 0x80000000
call fcn.00465c1c
mov dword [ebp - 0xd14], 0x94
lea ecx, [ebp - 0xd14]
push ecx
call sub.KERNEL32.DLL_GetVersionExA
cmp dword [ebp - 0xd10], 4
ja 0x466639
cmp dword [ebp - 0xd0c], 0xa
jbe 0x4666f7
push 0x400
lea eax, [ebp - 0x1114]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
cmp byte [ebp + 0xc], 0
je 0x46665a
lea edx, [ebx + 0x52a]
jmp 0x466660
lea edx, [ebx + 0x535]
push edx
lea eax, [ebp - 0x1114]
call fcn.0040b578
push eax
call fcn.0048d8e8
add esp, 8
lea ecx, [ebp - 0x1114]
push ecx
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x4666d5
lea eax, [ebx + 0x540]
push eax
lea edx, [ebp - 0x1114]
push edx
call fcn.0048f890
add esp, 8
mov esi, eax
test esi, esi
je 0x4666d5
cmp byte [ebp + 0xc], 0
je 0x4666bc
push esi
push 0x14
push 1
push 0x49fed8
call fcn.0048fca8
add esp, 0x10
jmp 0x4666ce
push esi
push 0x16
push 1
push 0x49feec
call fcn.0048fca8
add esp, 0x10
push esi
call fcn.0048f394
pop ecx
lea eax, [ebp - 0x1114]
lea ecx, [ebx + 0x4f6]
push eax
mov eax, 0x80000000
lea edx, [ebp - 0x410]
call fcn.004657b8
jmp 0x466980
cmp byte [ebp + 0xc], 0
je 0x46671f
push 0x49fed8
push 0x14
lea ecx, [ebx + 0x543]
lea edx, [ebp - 0x410]
mov eax, 0x80000000
call fcn.00465908
jmp 0x466980
push 0x49feec
push 0x16
lea ecx, [ebx + 0x543]
lea edx, [ebp - 0x410]
mov eax, 0x80000000
call fcn.00465908
jmp 0x466980
push esi
lea edx, [ebx + 0x77]
push edx
lea ecx, [ebp - 0x1164]
push ecx
call fcn.004908b8
add esp, 0xc
mov eax, esi
call fcn.00467750
test al, al
je 0x466980
lea edx, [ebx + 0x508]
lea eax, [ebp - 0x1164]
mov ecx, 1
call fcn.00465b48
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 + 0x4f1]
call fcn.00465984
lea edx, [ebx + 0x232]
push edx
lea ecx, [ebp - 0x1364]
push ecx
call fcn.0048daf0
add esp, 8
test eax, eax
je 0x4667d9
lea eax, [ebx + 0x518]
push eax
lea edx, [ebp - 0x1364]
push edx
call fcn.0048daf0
add esp, 8
test eax, eax
jne 0x4667e0
mov byte [ebp - 0x1364], 0
lea ecx, [ebx + 4]
push ecx
push pe_nt_image_headers32
lea ecx, [ebp - 0x1564]
lea edx, [ebx + 0x50e]
lea eax, [ebp - 0x1164]
call fcn.00465984
cmp byte [ebp - 0xe], 0
je 0x4668da
lea eax, [ebp - 0x1364]
lea ecx, [ebx + 4]
push eax
mov eax, 0x80000000
mov edx, esi
call fcn.004657b8
cmp byte [ebp - 0x1564], 0
je 0x466844
lea edx, [ebp - 0x1564]
lea ecx, [ebx + 0x4e9]
push edx
mov edx, esi
mov eax, 0x80000000
call fcn.004657b8
jmp 0x466856
lea ecx, [ebx + 0x4e9]
mov edx, esi
mov eax, 0x80000000
call fcn.00465c58
lea ecx, [ebx + 4]
push ecx
push 0x400
lea ecx, [ebp - 0x1964]
lea edx, [ebx + 0x4e0]
lea eax, [ebp - 0x1164]
call fcn.00465984
lea ecx, [ebx + 0x4f6]
lea edx, [ebp - 0x410]
mov eax, 0x80000000
call fcn.00465c58
mov al, byte [ebp - 0x1964]
test al, al
je 0x4668f6
xor edx, edx
mov dl, al
cmp edx, 0x2a
jne 0x4668bb
lea ecx, [ebx + 4]
lea edx, [ebp - 0x410]
push ecx
lea ecx, [ebx + 0x4ff]
mov eax, 0x80000000
call fcn.004657b8
jmp 0x4668f6
lea eax, [ebp - 0x1964]
lea ecx, [ebx + 0x4f6]
push eax
mov eax, 0x80000000
lea edx, [ebp - 0x410]
call fcn.004657b8
jmp 0x4668f6
lea edx, [ebp - 0x410]
mov eax, 0x80000000
call fcn.00465c1c
mov edx, esi
mov eax, 0x80000000
call fcn.00465c1c
cmp byte [ebp + 0xc], 0
je 0x466980
xor esi, esi
push esi
lea eax, [ebx + 0x523]
push eax
lea edx, [ebp - 0x1984]
push edx
call fcn.004908b8
add esp, 0xc
cmp byte [ebp - 0xe], 0
je 0x46696a
cmp byte [ebp - 0x1364], 0
je 0x46696a
lea ecx, [ebp - 0x1364]
lea edx, [ebp - 0x1984]
push ecx
lea ecx, [ebx + 4]
mov eax, 0x80000000
call fcn.004657b8
cmp byte [ebp - 0x1564], 0
je 0x46697a
lea eax, [ebp - 0x1564]
lea ecx, [ebx + 0x4e9]
push eax
mov eax, 0x80000000
lea edx, [ebp - 0x1984]
call fcn.004657b8
jmp 0x46697a
lea edx, [ebp - 0x1984]
mov eax, 0x80000000
call fcn.00465c1c
inc esi
cmp esi, 0x64
jl 0x466902
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8