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

Disassembly:
push 0xf4
mov eax, 0x5adaa3
call fcn.00431b4a
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0xf8], ebx
mov dword [ebp - 0xfc], esi
push esi
xor eax, eax
mov dword [ebp - 4], esi
push 0x5b0700
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], esi
mov word [ebp - 0x28], ax
call fcn.00408220
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 1
call fcn.00446165
call fcn.00435952
test al, al
je 0x4380f2
pop ecx
pop edx
push esi
pop edx
push ebx
push esp
pop esp
push edi
pop esp
pop esi
push ecx
pop esp
pop ebp
pop eax
push edx
pop edi
pop esp
pop ecx
push ebx
pop edi
push ebp
pop edi
pop edx
push esi
push ecx
pop ebp
pop eax
pop ecx
push esi
xor esi, esi
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 0x438312
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
push esi
cmovae eax, dword [ebp + 0xc]
push 0x80
push 4
push esi
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0xe8], edi
cmp edi, 0xffffffff
jne 0x43814c
push 0x5b0700
mov ecx, ebx
call fcn.00409990
jmp 0x43831d
call fcn.00435bbf
test al, al
je 0x43816b
push ebp
push ebx
push esp
push esp
push esp
pop ecx
push ebx
pop esi
push edi
push ebx
pop eax
pop ebp
push ebx
push eax
pop ecx
pop esp
push edi
push esi
push ebp
pop eax
xor esi, esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xec], eax
inc eax
push eax
mov dword [ebp - 0xf4], eax
call fcn.0043160f
mov edi, eax
mov dword [ebp - 0xf0], edi
pop ecx
test edi, edi
je 0x43813b
call fcn.00435952
test al, al
je 0x4381b2
pop esp
push edi
push ebp
pop ebx
pop ebp
pop edx
push edx
push ebp
pop edx
push ebp
push ebx
push ebx
push ebp
push esi
push edi
push edi
push ebx
pop esp
pop ebx
pop eax
push esi
pop esi
call fcn.0043590d
test al, al
je 0x4381e0
pop esp
push ebp
pop edx
push ecx
push ebp
pop ebx
pop edx
push ebx
push ecx
push esi
push ebx
push ebx
pop esp
push esp
pop edx
push esp
push edi
pop esi
pop esi
push edx
pop edi
pop ecx
push ebp
push esp
pop esi
pop ebp
pop esi
push ebp
pop eax
pop ecx
push esp
mov edi, dword [ebp - 0xf0]
push dword [ebp - 0xf4]
push 0
push edi
call fcn.0044e770
add esp, 0xc
lea eax, [ebp - 0x100]
push 0
push eax
push dword [ebp - 0xec]
push edi
push dword [ebp - 0xe8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
call fcn.00435af0
test al, al
je 0x438226
push ecx
push ecx
pop ebp
pop esi
push edi
pop ecx
pop ebx
pop eax
pop ebx
push edi
push edi
push ecx
pop esi
pop ecx
pop edi
pop edi
call fcn.00435b35
test al, al
je 0x43824d
push ebp
push ecx
pop eax
push eax
pop edx
push esp
pop esp
pop ebp
pop esp
push esi
pop edi
pop edi
pop eax
pop ebp
push edi
pop eax
pop ecx
pop ecx
push ecx
pop esi
push esp
pop edi
pop esi
pop ebp
pop esi
pop edx
pop esi
pop esi
pop ebx
pop esi
push dword [ebp - 0xe8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xec]
mov esi, dword [ebp - 0xf0]
lea ecx, [ebp - 0xe4]
push esi
call fcn.00446b33
push esi
call fcn.00431618
pop ecx
call fcn.00435a21
test al, al
je 0x438294
pop ecx
pop ebx
push edi
pop eax
pop ebx
pop edi
push eax
push ebx
push edi
push ebx
push eax
push edi
pop ecx
push ebx
pop eax
pop eax
push ebx
pop edi
push ebx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xe4]
call fcn.0044637e
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.00443200
pop ecx
pop ecx
xor esi, esi
mov byte [ebp - 4], 4
push esi
push 1
lea ecx, [ebp - 0x58]
call fcn.00411f50
call fcn.00435a21
test al, al
je 0x4382ec
pop eax
push esp
pop ebx
push ebx
pop eax
pop ebp
pop edi
pop ebx
push ebp
pop eax
push ecx
push edi
push eax
push edi
pop esi
pop ebx
pop esi
push ecx
pop esi
pop ecx
pop ecx
pop ebx
pop eax
push ebp
pop eax
push ecx
pop esp
pop ebx
push edx
xor esi, esi
cmp dword [ebp - 0x30], 0
jbe 0x438301
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00408100
push esi
push 1
lea ecx, [ebp - 0x40]
call fcn.0042c46b
mov ebx, dword [ebp - 0xf8]
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.0042b5aa
push esi
push 1
lea ecx, [ebp - 0x28]
call fcn.0042c46b
push esi
push 1
lea ecx, [ebp + 0xc]
call fcn.0042c46b
mov eax, ebx
call fcn.00431af4
ret