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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x42c044]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x22c], eax
mov ebx, edx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push esi
mov dword [ebp - 0x230], eax
mov esi, ecx
xor eax, eax
push edi
mov dword [ebp - 0x218], eax
mov edi, eax
mov dword [ebp - 0x228], eax
call fcn.00419e25
mov dword [ebp - 0x224], eax
test eax, eax
jne 0x4143e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x41467d
mov edx, ebx
mov ecx, esi
call fcn.00419e25
mov esi, eax
test esi, esi
jne 0x414403
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x414652
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41463f
test al, 0x50
jne 0x41463f
mov ebx, dword [ebp - 0x224]
mov edx, ebx
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, word [ebp - 0x218]
jne 0x414426
sub edx, ecx
mov ecx, ebx
sar edx, 1
xor eax, eax
mov dword [ebp - 0x220], eax
lea eax, [ecx + 2]
mov dword [ebp - 0x21c], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x218]
jne 0x41444c
sub ecx, dword [ebp - 0x21c]
sar ecx, 1
push 0x5c
pop ecx
je 0x4144b4
dec edx
mov eax, edi
lea edx, [ebx + edx*2]
cmp word [edx], cx
je 0x4144aa
mov ecx, ebx
sub edx, 2
inc eax
mov dword [ebp - 0x220], eax
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x218]
jne 0x414482
mov eax, dword [ebp - 0x220]
sub ecx, ebx
mov ebx, dword [ebp - 0x224]
sar ecx, 1
push 0x5c
cmp eax, ecx
pop ecx
jb 0x41446e
jmp 0x4144b4
mov dword [ebp - 0x228], 1
mov eax, dword [ebp - 0x230]
xor ecx, ecx
mov dword [ebp - 0x218], ecx
cmp dword [eax + 8], ecx
jbe 0x414652
lea ebx, [eax + 0x10]
mov dword [ebp - 0x21c], ebx
push dword [ebp - 0x224]
lea eax, [ebp - 0x214]
push dword [ebx + 4]
push dword [ebx]
push 0x405c84
push 0x104
push eax
call fcn.004124a5
add esp, 0x18
cmp dword [ebp - 0x228], edi
je 0x414577
lea ecx, [ebp - 0x214]
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x41450b
sub ecx, edx
sar ecx, 1
sub ecx, dword [ebp - 0x220]
dec ecx
lea ebx, [ecx + ecx]
cmp ebx, 0x208
jae 0x4146a0
xor eax, eax
lea ecx, [ebp - 0x214]
mov word [ebp + ebx - 0x214], ax
call fcn.0041bd34
test eax, eax
jne 0x414566
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x214]
push eax
push 0x405cc0
push 3
call fcn.0041944e
add esp, 0x10
push 0x5c
pop eax
mov word [ebp + ebx - 0x214], ax
mov ebx, dword [ebp - 0x21c]
cmp dword [ebp - 0x22c], edi
je 0x4145be
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4145be
test al, 0x50
jne 0x4145be
call fcn.00413c32
mov edx, dword [ebp - 0x22c]
lea ecx, [ebp - 0x214]
push eax
call fcn.0041a247
test eax, eax
jne 0x4145be
lea eax, [ebp - 0x214]
push eax
push 0x405d38
jmp 0x41460e
push 1
lea edx, [ebp - 0x214]
mov ecx, esi
call fcn.004137e8
test eax, eax
je 0x414602
lea edx, [ebp - 0x214]
mov ecx, esi
call fcn.00413664
test eax, eax
jne 0x414618
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x214]
push eax
push esi
push 0x405d88
push 3
call fcn.0041944e
add esp, 0x14
jmp 0x414618
lea eax, [ebp - 0x214]
push eax
push 0x405dfc
push 3
call fcn.0041944e
add esp, 0xc
mov eax, dword [ebp - 0x218]
add ebx, 0xc
mov ecx, dword [ebp - 0x230]
inc eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x21c], ebx
cmp eax, dword [ecx + 8]
jb 0x4144d4
jmp 0x414652
push esi
push 0x405c40
push 4
call fcn.0041944e
add esp, 0xc
push 2
pop edi
push dword [ebp - 0x224]
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
je 0x41467d
push esi
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
je 0x41468c
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x41468f
xor eax, eax
inc eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a860
leave
ret 0xc
call fcn.0042a9a8
int3