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

Disassembly:
mov eax, 0x4f30e1
call fcn.004eadec
sub esp, 0x24c
mov eax, dword [0x516ad4]
push ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
test eax, eax
push esi
push edi
mov dword [ebp - 0x21c], ecx
je 0x460639
cmp word [eax], 0
je 0x460639
push eax
lea edi, [ebp + 8]
call fcn.004031b3
and dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
test eax, eax
mov ebx, dword [ebp + 8]
jne 0x46056f
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push ebx
call edi
cmp eax, 0xffffffff
je 0x460435
test al, 0x10
jne 0x460659
mov esi, dword [sym.imp.MSVCRT.dll_wcsrchr]
push 0x2e
push ebx
call esi
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x220], eax
je 0x46056c
push 0x4fdcdc
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x4604c1
and dword [ebp + 0xc], eax
push ebx
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0045e575
test eax, eax
je 0x4604b0
push 2
push 0x104
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp + 0xc]
push eax
xor ecx, ecx
call fcn.0045e5cc
test eax, eax
je 0x4604b0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp + 8]
call fcn.00403266
mov ebx, dword [ebp + 8]
push ebx
call edi
cmp eax, 0xffffffff
jne 0x460485
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x460435
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0x4f7548
lea edi, [ebp + 0xc]
call fcn.004031b3
push 0
push 0xfffffffffffffffe
push dword [ebp - 0x21c]
mov edx, edi
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.0045fea2
mov esi, eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x460470
push eax
call fcn.004013aa
lea eax, [ebx - 0xc]
cmp eax, dword [0x51a43c]
je 0x460619
push eax
jmp 0x460614
test al, 0x10
je 0x4604a3
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x460659
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x460659
push 0x2e
push ebx
call esi
pop ecx
pop ecx
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4604c1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x220], 0
je 0x46056c
push dword [ebp - 0x220]
lea edi, [ebp + 0xc]
call fcn.004031b3
mov esi, dword [ebp + 0xc]
mov edi, dword [sym.imp.MSVCRT.dll__wcsicmp]
push 0x4f9864
push esi
call edi
test eax, eax
pop ecx
pop ecx
jne 0x46050d
lea eax, [esi - 0xc]
cmp eax, dword [0x51a43c]
je 0x46058e
push eax
call fcn.004013aa
jmp 0x46058e
push 0x4fd158
push esi
call edi
test eax, eax
pop ecx
pop ecx
je 0x460529
push str..rar
push esi
call edi
test eax, eax
pop ecx
pop ecx
jne 0x46053c
lea eax, [esi - 0xc]
cmp eax, dword [0x51a43c]
je 0x4605ad
push eax
call fcn.004013aa
jmp 0x4605ad
push esi
mov eax, 0x5224b0
call fcn.004b9576
test eax, eax
lea eax, [esi - 0xc]
je 0x46055e
cmp eax, dword [0x51a43c]
je 0x4605c9
push eax
call fcn.004013aa
jmp 0x4605c9
cmp eax, dword [0x51a43c]
je 0x46056c
push eax
call fcn.004013aa
xor eax, eax
inc eax
cmp eax, 2
je 0x460435
cmp eax, 1
je 0x460435
test eax, eax
je 0x460435
cmp eax, 3
jne 0x4605a8
push 0
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x21c]
call fcn.0045ff0d
mov esi, eax
jmp 0x460470
cmp eax, 4
jne 0x4605c0
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x21c]
call fcn.004600a7
mov esi, eax
jmp 0x460608
cmp eax, 5
jne 0x460654
push 0
lea eax, [ebp - 0x258]
call fcn.00404926
push ebx
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 3
call fcn.00461259
test eax, eax
je 0x46061d
push dword [ebp - 0x21c]
lea esi, [ebp - 0x258]
call fcn.00464e2f
mov esi, eax
lea eax, [ebp - 0x258]
call fcn.00404970
add ebx, 0xfffffff4
cmp ebx, dword [0x51a43c]
je 0x460619
push ebx
call fcn.004013aa
mov eax, esi
jmp 0x46063b
lea eax, [ebp - 0x258]
call fcn.00404970
lea eax, [ebx - 0xc]
cmp eax, dword [0x51a43c]
je 0x460639
push eax
call fcn.004013aa
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004eae3c
leave
ret 8
cmp eax, 6
jne 0x460628
push dword [0x521d34]
mov ecx, dword [ebp - 0x21c]
push ebx
call fcn.00460681
add ebx, 0xfffffff4
cmp ebx, dword [0x51a43c]
je 0x46067c
push ebx
call fcn.004013aa
xor eax, eax
inc eax
jmp 0x46063b