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

Disassembly:
sub esp, 0x24c
mov eax, dword [0x50a4c0]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push esi
push edi
mov edi, ecx
cmp byte [edi + 0x11c], 0
lea eax, [edi + 0xc]
jne 0x42a208
mov eax, dword [edi + 8]
mov esi, 0x3a
cmp word [eax + 6], si
jne 0x42a2f3
cmp byte [edi + 0x11c], 0
lea eax, [edi + 0xc]
jne 0x42a226
mov eax, dword [edi + 8]
cmp word [eax + 8], 0
jne 0x42a2f3
push edi
lea ecx, [esp + 0x134]
call fcn.004309d0
push 0x4f0024
push 0x4f0ffc
lea edx, [esp + 0x138]
call fcn.00430eb0
add esp, 8
cmp byte [esp + 0x24c], 0
lea eax, [esp + 0x13c]
jne 0x42a26f
mov eax, dword [esp + 0x138]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
cmp eax, 0xffffffff
jne 0x42a2c8
cmp byte [esp + 0x24c], 0
jne 0x42a2ae
mov eax, dword [esp + 0x138]
lea ecx, [esp + 0x13c]
cmp eax, ecx
je 0x42a2ae
push eax
call fcn.004a4a7f
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.004a4a25
add esp, 0x24c
ret
mov ebx, eax
shr ebx, 4
and bl, 1
cmp byte [esp + 0x24c], 0
jne 0x42a469
mov eax, dword [esp + 0x138]
lea edx, [esp + 0x13c]
cmp eax, edx
jmp 0x42a45e
push edi
lea ecx, [esp + 0x10]
call fcn.004309d0
cmp byte [edi + 0x11c], 0
lea eax, [edi + 0xc]
jne 0x42a30c
mov eax, dword [edi + 8]
cmp word [eax + 6], si
jne 0x42a33e
cmp byte [edi + 0x11c], 0
lea eax, [edi + 0xc]
jne 0x42a321
mov eax, dword [edi + 8]
cmp word [eax + 8], 0x5c
jne 0x42a33e
cmp byte [edi + 0x11c], 0
lea eax, [edi + 0xc]
jne 0x42a337
mov eax, dword [edi + 8]
cmp word [eax + 0xa], 0
je 0x42a38e
mov eax, dword [edi + 4]
test eax, eax
je 0x42a38e
cmp byte [edi + 0x11c], 0
lea ecx, [edi + 0xc]
jne 0x42a354
mov ecx, dword [edi + 8]
movzx ecx, word [ecx + eax*2 + 2]
cmp cx, 0x5c
jne 0x42a38e
dec eax
lea ecx, [eax + 1]
lea esi, [esp + 0x14]
mov dword [esp + 0x10], eax
mov ebx, eax
call fcn.00431260
cmp byte [esp + 0x128], 0
lea eax, [esp + 0x18]
jne 0x42a384
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov word [eax + ebx*2 + 4], cx
lea esi, [ecx + 0x3a]
cmp byte [esp + 0x128], 0
lea eax, [esp + 0x18]
jne 0x42a3a0
mov eax, dword [esp + 0x14]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42a3d4
cmp byte [esp + 0x128], 0
mov dword [esp + 0xc], vtable.t_str.0
jne 0x42a2ae
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
cmp eax, edx
jmp 0x42a2a3
cmp byte [edi + 0x11c], 0
lea ecx, [edi + 0xc]
jne 0x42a3e3
mov ecx, dword [edi + 8]
cmp word [ecx + 6], si
jne 0x42a43a
cmp byte [edi + 0x11c], 0
lea ecx, [edi + 0xc]
jne 0x42a3f8
mov ecx, dword [edi + 8]
cmp word [ecx + 8], 0x5c
jne 0x42a43a
cmp byte [edi + 0x11c], 0
je 0x42a40d
add edi, 0xc
jmp 0x42a410
mov edi, dword [edi + 8]
cmp word [edi + 0xa], 0
jne 0x42a43a
lea ecx, [esp + 0xc]
call fcn.00430ad0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.004a4a25
add esp, 0x24c
ret
mov ebx, eax
shr ebx, 4
and bl, 1
cmp byte [esp + 0x128], 0
mov dword [esp + 0xc], vtable.t_str.0
jne 0x42a469
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
cmp eax, ecx
je 0x42a469
push eax
call fcn.004a4a7f
add esp, 4
mov ecx, dword [esp + 0x254]
pop edi
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.004a4a25
add esp, 0x24c
ret