Function at 0x438954
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push 0xf4
mov eax, 0x5ac2f1
call fcn.0042d04a
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0xec], eax
mov dword [ebp - 0xfc], ecx
push ecx
mov dword [ebp - 4], ecx
xor eax, eax
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x28]
push 0x62be94
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00403090
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 1
call fcn.00442ca7
call fcn.004363b6
test al, al
je 0x4389c6
push eax
push esp
push edx
push edi
pop edx
pop esp
pop edi
push eax
push ebx
push esp
pop esi
pop ecx
pop ebx
push esp
push edi
push ebp
push edx
pop ebp
push esp
push ecx
pop edi
push edi
pop ecx
push ecx
pop ebx
call fcn.00436440
test al, al
je 0x4389e5
pop eax
pop edx
push esi
pop ebp
pop ebp
pop ebp
push eax
pop ebp
push edi
pop eax
pop ecx
push edx
push ebp
pop esp
pop eax
pop ecx
pop ebp
pop ecx
pop ebp
pop esi
pop ebp
push eax
call fcn.00436668
test al, al
je 0x438a01
push esi
push ecx
push esi
push edi
push esp
pop edx
push esi
push ebp
pop ecx
pop eax
pop ebx
pop edi
push ebx
push esi
push esp
pop esi
pop edx
push esp
pop edx
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x438caf
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
xor edi, edi
push edi
push 0x80
push 4
push edi
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xe8], eax
cmp eax, 0xffffffff
jne 0x438a6b
mov ecx, dword [ebp - 0xec]
push 0x62be94
call fcn.00402d70
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.00402fd0
push edi
jmp 0x438ccc
call fcn.00436104
test al, al
je 0x438a8e
push ecx
push esi
pop esi
pop esi
pop ebx
pop ebp
pop ebp
push ebx
pop ecx
push ebp
pop esp
push esp
push esi
push esp
pop edi
pop ebp
pop ecx
pop edi
pop esi
push edi
push ecx
push ebp
pop esi
pop esp
xor edi, edi
push edi
push dword [ebp - 0xe8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xf0], eax
inc eax
push eax
mov dword [ebp - 0xf8], eax
call fcn.0042cd51
mov ebx, eax
mov dword [ebp - 0xf4], ebx
pop ecx
test ebx, ebx
je 0x438a4a
call fcn.0043677c
test al, al
je 0x438aeb
pop eax
pop ebx
push edx
pop ebx
pop ebp
push eax
pop esp
pop esp
pop ecx
pop esi
push edx
pop ecx
push esp
push edx
push ebx
pop ebx
pop ebp
push eax
pop edi
pop esp
push esp
pop ebp
pop esi
push eax
pop ecx
pop edi
push edx
pop edx
push esi
pop ebp
push edi
mov ebx, dword [ebp - 0xf4]
xor edi, edi
push dword [ebp - 0xf8]
push edi
push ebx
call fcn.0044b370
add esp, 0xc
lea eax, [ebp - 0x100]
push edi
push eax
push dword [ebp - 0xf0]
push ebx
push dword [ebp - 0xe8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
call fcn.004362e7
test al, al
je 0x438b33
pop esi
push edi
pop ecx
pop eax
pop eax
push esp
push ecx
pop eax
push edi
pop esi
pop ebp
pop edi
pop esi
push eax
push edx
pop eax
pop ebx
pop edi
pop ecx
pop esp
call fcn.004362e7
test al, al
je 0x438b52
pop ebp
push ecx
push edi
push ebp
pop ebx
pop edi
pop edx
push esp
pop ebp
push esp
push edi
pop edi
pop eax
push esi
push edi
pop edi
push edi
pop esi
pop ebp
pop edi
pop edi
pop eax
call fcn.00436599
test al, al
je 0x438b7b
push edx
pop esp
pop ecx
pop esp
pop esi
pop ecx
pop edi
pop ebp
push edi
pop esi
pop eax
push eax
pop ebp
push ecx
push eax
push ebp
push ecx
push esi
pop eax
pop eax
push ecx
push ebp
push esi
push ebx
pop ebp
push ecx
push ebp
pop eax
pop esp
push esp
push esp
pop eax
push dword [ebp - 0xe8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xf0]
mov esi, dword [ebp - 0xf4]
lea ecx, [ebp - 0xe4]
push esi
call fcn.00443675
push esi
call fcn.0042cd5a
pop ecx
call fcn.00436554
test al, al
je 0x438bcc
push ecx
pop ecx
push eax
push edx
push esp
pop esi
pop ebp
push ebx
pop ebp
pop ebx
pop esp
push ecx
pop esp
pop edi
push ecx
push ebx
push edx
push ecx
pop edx
push edx
pop ecx
push ecx
push ebx
pop eax
push ebx
push eax
push ecx
pop ebx
pop edi
call fcn.004365de
test al, al
je 0x438bee
push eax
pop edi
pop edi
pop edi
push esp
pop edx
pop eax
pop eax
push eax
push esi
push esp
push edx
pop esp
push esp
push esi
pop eax
pop edi
pop edx
push ebx
push esp
pop ecx
push esp
push ebp
push esi
push esp
call fcn.0043677c
test al, al
je 0x438c16
push ebx
push eax
push esi
pop ebx
pop esi
push ebx
pop eax
push eax
pop edi
push ebp
push edi
pop ebx
pop ebx
pop edx
push esi
pop esp
push edx
push ebx
pop eax
push edx
push ebx
pop ebp
push esp
push eax
pop edx
push esi
push ebp
pop esp
push esi
push ebp
push eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xe4]
call fcn.00442ec0
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.00440690
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.00403190
call fcn.004365de
test al, al
je 0x438c66
push ecx
push esp
push esi
push ebx
push edx
pop esi
pop ebx
pop esp
pop edi
pop eax
pop esi
pop edx
pop esp
pop esi
pop esp
pop ebp
push ebx
pop edi
pop edx
pop ebx
pop esi
push eax
pop ecx
push ebx
call fcn.004365de
test al, al
je 0x438c8d
push edi
pop ecx
push ecx
pop esi
push ebx
pop ebp
push edx
pop esp
pop esi
push edx
pop ebx
push ecx
push esp
pop ebp
pop edi
pop edi
pop ebp
pop edi
pop esp
pop ecx
push edx
pop edx
push ecx
push esp
pop eax
pop ebp
push esp
push eax
push esp
pop edi
cmp dword [ebp - 0x30], 0
jbe 0x438ca3
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00403860
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00402fd0
mov ecx, dword [ebp - 0xec]
lea eax, [ebp - 0x28]
push eax
call fcn.00428bd4
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00402fd0
push 0
push 1
lea ecx, [ebp + 0xc]
call fcn.00402fd0
mov eax, dword [ebp - 0xec]
call fcn.0042cff4
ret