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

Disassembly:
push 0x5c
mov eax, 0x489427
call fcn.0045e463
mov dword [ebp - 0x58], edx
mov edi, ecx
push 0x48
call fcn.0045da68
mov esi, eax
pop ecx
mov dword [ebp - 0x50], esi
and dword [ebp - 4], 0
push 0x48
push 0
push esi
call fcn.00460010
add esp, 0xc
mov ecx, esi
call fcn.00438bdd
mov esi, dword [ebp - 0x58]
mov ebx, eax
or dword [ebp - 4], 0xffffffff
mov ecx, ebx
mov dword [esi], ebx
call fcn.00421e9a
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x438a13
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x438bd7
mov edx, ebx
mov ecx, edi
call fcn.00421c5e
test al, al
je 0x438bd7
push edi
lea ecx, [ebx + 8]
call fcn.00422457
push edi
mov ecx, ebx
call fcn.00421ee1
push ecx
lea eax, [ebx + 0x30]
push eax
lea ecx, [ebp - 0x54]
call fcn.00422c62
lea edi, [esi + 4]
lea eax, [ebp - 0x54]
mov dword [ebp - 4], 1
cmp edi, eax
je 0x438a9e
mov byte [ebp - 4], 2
mov ecx, edi
mov esi, dword [edi]
push dword [esi + 4]
call fcn.00422a40
mov eax, dword [edi]
mov dword [eax + 4], esi
mov eax, dword [edi]
mov dword [eax], esi
mov eax, dword [edi]
mov dword [eax + 8], esi
and dword [edi + 4], 0
mov ecx, dword [edi]
mov eax, dword [ebp - 0x54]
mov esi, dword [ebp - 0x58]
mov dword [edi], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], ecx
mov ecx, dword [edi + 4]
mov dword [edi + 4], eax
mov dword [ebp - 0x50], ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.004223e9
push ecx
lea eax, [ebx + 0x38]
push eax
lea ecx, [ebp - 0x54]
call fcn.00422d01
lea edi, [esi + 0xc]
lea eax, [ebp - 0x54]
mov dword [ebp - 4], 3
cmp edi, eax
je 0x438b00
mov byte [ebp - 4], 4
mov ecx, edi
mov esi, dword [edi]
push dword [esi + 4]
call fcn.004229f9
mov eax, dword [edi]
mov dword [eax + 4], esi
mov eax, dword [edi]
mov dword [eax], esi
mov eax, dword [edi]
mov dword [eax + 8], esi
and dword [edi + 4], 0
mov ecx, dword [edi]
mov eax, dword [ebp - 0x54]
mov dword [edi], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], ecx
mov ecx, dword [edi + 4]
mov dword [edi + 4], eax
mov dword [ebp - 0x50], ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.004223c8
lea eax, [ebp - 0x68]
mov ecx, ebx
push eax
call fcn.00421d6a
mov edi, dword [ebp - 0x58]
mov esi, eax
add edi, 0x14
cmp edi, esi
je 0x438b44
mov ecx, edi
call fcn.0041b486
mov ecx, dword [esi]
mov dword [edi], ecx
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
lea ecx, [ebp - 0x68]
call fcn.0041b486
mov eax, dword [edi + 4]
mov esi, dword [edi]
mov dword [ebp - 0x50], eax
cmp esi, eax
je 0x438bd7
mov edi, dword [esi]
lea eax, [ebp - 0x4c]
push edi
push eax
mov ecx, ebx
call fcn.00421ddb
mov dword [ebp - 4], 5
push dword [ebp - 0x40]
mov ecx, dword [ebp - 0x34]
push dword [ebp - 0x44]
call fcn.00423f06
pop ecx
pop ecx
test al, al
je 0x438bc3
mov eax, dword [ebp - 0x34]
add eax, 0x400
mov ecx, eax
mov dword [ebp - 0x5c], eax
call fcn.00417e0a
test al, al
je 0x438bc3
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x5c]
add ecx, 0x20
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], edx
mov eax, dword [ecx + 4]
cmp dword [ecx + 8], eax
je 0x438bb9
mov dword [eax], edi
mov dword [eax + 4], edx
add dword [ecx + 4], 8
jmp 0x438bc3
lea edx, [ebp - 0x64]
push edx
push eax
call fcn.00451d3e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00421630
add esi, 4
cmp esi, dword [ebp - 0x50]
jne 0x438b58
call fcn.0045e40d
ret