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

Disassembly:
push 0x98
mov eax, 0x57963f
call fcn.00474262
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xa0], eax
and dword [ebp - 4], 0
call fcn.0043a9bd
test al, al
je 0x4387fc
pop ecx
pop ecx
pop ebx
push esi
pop ebp
pop esp
pop esi
pop ebx
pop ecx
pop edi
pop esp
push ebp
pop esi
pop ebx
pop edi
pop ecx
push eax
push edx
push ebp
pop esp
push ebp
push esi
pop esi
push edx
pop eax
push eax
push ebx
call fcn.0043a8a9
test al, al
je 0x43881a
push ebp
pop eax
push ebp
push ecx
pop esp
push ebp
push eax
push esp
pop ecx
pop edi
push ecx
push edi
push ecx
push ebp
pop ecx
push eax
pop esp
push edi
push esp
pop edx
push eax
call fcn.0043a459
test al, al
je 0x438837
pop eax
push edi
push ebp
push ebx
push esp
push ebx
push ecx
pop edi
pop ebx
pop eax
pop esp
push esi
push ebp
pop ebp
push edi
pop ebp
push eax
push ebx
push edi
push edi
call fcn.0043aa47
test al, al
je 0x43885b
push ecx
push edi
pop edx
pop ebp
pop esi
push edi
push ecx
pop eax
pop ebx
push ecx
push edx
pop ecx
push ebp
pop esp
push ebp
pop edi
push esp
pop edi
pop ebp
pop edi
pop esp
push esi
push esi
pop ebp
push esi
pop edx
push eax
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x14], 7
push eax
push 0x5d31f4
mov word [ebp - 0x28], ax
call fcn.004217f0
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.0044ac30
and dword [ebp - 0x98], 0
call fcn.0043a414
test al, al
je 0x4388b0
push edx
pop esi
pop ebx
pop edx
pop edx
push eax
push esi
pop ebx
pop eax
push edi
pop edi
push edx
pop eax
push eax
push edx
pop eax
push ecx
push ebp
pop ebx
push edx
pop esi
pop ebp
pop ebx
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43899f
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0
cmovae eax, dword [ebp + 8]
push 0x80
push 4
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x9c], eax
cmp eax, 0xffffffff
je 0x438998
call fcn.0043aad1
test al, al
je 0x438917
pop ebx
push ecx
push eax
push esi
pop ecx
pop eax
push ebx
pop ebx
pop ebp
push edi
pop edx
push edx
push eax
pop edx
push edx
pop ebp
pop eax
call fcn.0043a795
test al, al
je 0x438933
pop eax
pop eax
push ebx
push eax
pop esi
push edi
pop ecx
push edi
push ebp
pop ebp
pop ecx
push esp
pop eax
pop eax
push ebx
pop edx
pop ebp
pop ebx
pop esp
call fcn.0043a4e3
test al, al
je 0x438951
push eax
push edx
push edx
push ebp
pop ebx
push esi
push eax
push edx
pop esi
pop edx
push ecx
push edi
pop edi
push edx
pop esp
push edx
push ecx
pop eax
pop ecx
push ecx
pop ecx
push 0
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [ebp - 0xa0]
push eax
mov dword [ebx], eax
call fcn.0042f76a
mov dword [ebp - 0x98], eax
pop ecx
test eax, eax
jne 0x4389c3
call fcn.0043a414
test al, al
je 0x438998
push edx
pop esi
pop ebx
pop edx
pop edx
push eax
push esi
pop ebx
pop eax
push edi
pop edi
push edx
pop eax
push eax
push edx
pop eax
push ecx
push ebp
pop ebx
push edx
pop esi
pop ebp
pop ebx
and dword [ebp - 0x98], 0
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00421690
push 0
push 1
lea ecx, [ebp + 8]
call fcn.00421690
mov eax, dword [ebp - 0x98]
call fcn.0047421d
ret
push dword [ebx]
push 0
push eax
call fcn.00452070
add esp, 0xc
call fcn.0043aad1
test al, al
je 0x4389ea
pop ebx
push ecx
push eax
push esi
pop ecx
pop eax
push ebx
pop ebx
pop ebp
push edi
pop edx
push edx
push eax
pop edx
push edx
pop ebp
pop eax
call fcn.0043a795
test al, al
je 0x438a06
pop eax
pop eax
push ebx
push eax
pop esi
push edi
pop ecx
push edi
push ebp
pop ebp
pop ecx
push esp
pop eax
pop eax
push ebx
pop edx
pop ebp
pop ebx
pop esp
call fcn.0043a4e3
test al, al
je 0x438a24
push eax
push edx
push edx
push ebp
pop ebx
push esi
push eax
push edx
pop esi
pop edx
push ecx
push edi
pop edi
push edx
pop esp
push edx
push ecx
pop eax
pop ecx
push ecx
pop ecx
push 0
lea eax, [ebp - 0xa4]
push eax
mov eax, dword [ebp - 0xa0]
push dword [eax]
push dword [ebp - 0x98]
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
call fcn.0043a414
test al, al
je 0x438a6b
pop ebx
pop edi
pop eax
push esi
push ebx
pop ecx
pop ecx
push ecx
push ebx
push edx
push esi
pop esi
push esi
pop ebx
pop ebp
push esp
push edx
push ecx
push esi
push edi
push eax
push edi
push edx
push edi
pop ecx
pop ebp
push eax
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x43899f