Function at 0x462c89
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4c5b78
call fcn.004bf97c
sub esp, 0x44
push ebx
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
push esi
push edi
mov dword [ebp - 0x14], ebx
je 0x462f88
push dword [ebp + 0x10]
lea edi, [ebp - 0x10]
call fcn.00402faf
mov dword [ebp - 4], ebx
push dword [ebp + 0x10]
call sub.ole32.dll_CoTaskMemFree
mov dword [ebp + 0x10], ebx
mov byte [ebp - 4], 1
push dword [0x4e5eb0]
mov esi, 0x4e57b4
push esi
call fcn.00457e7d
cmp eax, 0xffffffff
jne 0x462d02
push ebx
push dword [0x4e5eb0]
lea ebx, [ebp - 0x18]
push esi
call fcn.00457d78
mov edi, eax
lea ebx, [ebp + 0x10]
call fcn.00446956
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x462d25
call fcn.004366e7
jmp 0x462d25
cmp eax, dword [0x4e57b8]
jb 0x462d14
push 0x80070057
call fcn.004010a4
mov ecx, dword [0x4e57b4]
lea edi, [ecx + eax*4]
lea ebx, [ebp + 0x10]
call fcn.00446956
mov esi, dword [ebp + 0x10]
xor ebx, ebx
cmp esi, ebx
je 0x462f74
push ebx
lea eax, [ebp - 0x50]
call fcn.0040411b
mov eax, dword [ebp + 0xc]
dec eax
mov byte [ebp - 4], 2
je 0x462de6
dec eax
je 0x462d6a
dec eax
je 0x462de6
dec eax
je 0x462d6a
dec eax
je 0x462de6
lea eax, [ebp - 0x50]
call fcn.00404156
jmp 0x462f6f
lea eax, [ebp - 0x18]
push ebx
push eax
mov eax, dword [ebp - 0x10]
call fcn.00401809
pop ecx
pop ecx
push dword [eax]
mov eax, 0x4e6330
call fcn.004a2ea6
mov esi, eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x462d9b
push eax
call fcn.00401377
cmp esi, ebx
je 0x462dac
push 2
push dword [ebp - 0x10]
lea ecx, [ebp - 0x50]
call fcn.00453542
mov edi, dword [ebp + 8]
cmp dword [0x4e60d8], ebx
je 0x462ea9
add edi, 0x498
lea esi, [ebp - 0x24]
call fcn.004696cf
mov ebx, dword [eax]
lea esi, [ebp - 0x1c]
call fcn.0046969d
cmp ebx, dword [eax]
mov edi, dword [ebp + 8]
jne 0x462ea9
xor ebx, ebx
inc ebx
jmp 0x462eab
mov edi, dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x462e02
lea eax, [ebp - 0x50]
call fcn.00404156
jmp 0x462e89
test al, 0x10
je 0x462e13
push 1
push edi
lea ecx, [ebp - 0x50]
call fcn.004537ec
jmp 0x462e77
test ah, 1
jne 0x462e4c
mov eax, edi
call fcn.0040784e
test eax, eax
jne 0x462e4c
lea eax, [ebp - 0x20]
push ebx
push eax
mov eax, edi
call fcn.00401809
pop ecx
pop ecx
push dword [eax]
mov eax, 0x4e6330
mov dword [ebp - 0x14], 1
call fcn.004a2ea6
test eax, eax
je 0x462e4c
mov bl, 1
jmp 0x462e4e
xor bl, bl
test byte [ebp - 0x14], 1
je 0x462e68
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x462e68
push eax
call fcn.00401377
test bl, bl
je 0x462e77
push 0
push edi
lea ecx, [ebp - 0x50]
call fcn.00453542
xor ebx, ebx
cmp dword [ebp - 0x4c], ebx
jne 0x462e96
lea eax, [ebp - 0x50]
call fcn.00404156
mov esi, dword [ebp + 0x10]
call fcn.004366e7
lea eax, [edi - 0xc]
jmp 0x462f7a
mov edi, dword [ebp + 8]
push 1
push edi
lea ecx, [ebp - 0x50]
call fcn.0045fb60
jmp 0x462daf
xor ebx, ebx
mov eax, dword [ebp + 0xc]
xor esi, esi
inc esi
cmp eax, esi
je 0x462f03
cmp eax, 5
je 0x462f03
cmp eax, 2
je 0x462ec4
cmp eax, 4
jne 0x462f29
xor eax, eax
cmp dword [0x4e6164], eax
je 0x462ed6
cmp dword [0x4e60d8], eax
jne 0x462eed
xor esi, esi
cmp dword [0x4e60d8], eax
jne 0x462eed
push esi
lea eax, [ebp - 0x50]
push eax
push dword [ebp + 0x10]
call fcn.004531f7
test ebx, ebx
je 0x462f3e
push esi
lea eax, [ebp - 0x50]
push eax
push dword [edi + 0xf0]
call fcn.004531f7
jmp 0x462f29
cmp dword [0x4e60d8], 0
jne 0x462f17
push dword [ebp + 0x10]
lea esi, [ebp - 0x50]
call fcn.00458108
test ebx, ebx
je 0x462f3e
push dword [edi + 0xf0]
lea esi, [ebp - 0x50]
call fcn.00458108
test ebx, ebx
je 0x462f3e
add edi, 0xf0
lea ebx, [ebp + 0x10]
call fcn.00446956
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
cmp esi, dword [edi + 0xf0]
jne 0x462f63
push dword [esi + 4]
lea eax, [edi + 0x4f8]
call fcn.0046943f
push 0
or eax, 0xffffffff
mov ecx, edi
call fcn.0045f705
lea eax, [ebp - 0x50]
call fcn.00404156
test esi, esi
je 0x462f74
call fcn.004366e7
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x462f88
push eax
call fcn.00401377
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc