Function at 0x43be25
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x3dc
mov eax, 0x508cac
call fcn.004c8468
mov dword [ebp - 0x1b4], ecx
xor esi, esi
lea eax, [ebp - 0xa0]
push 0x84
push esi
push eax
mov edi, esi
mov ebx, esi
call fcn.004df090
add esp, 0xc
lea ecx, [ebp - 0xa0]
push 0x549010
call fcn.004162a1
mov dword [ebp - 4], esi
mov eax, dword [0x548f80]
cmp word [eax], si
jne 0x43bf0b
mov eax, dword [ebp - 0x1b4]
test eax, eax
je 0x43be8c
push eax
lea ecx, [ebp - 0xa0]
call fcn.004162d6
push esi
push 0x80
push 3
push esi
push 1
push closesocket
push dword [ebp - 0xa0]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x43bec4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
call fcn.004162c6
jmp 0x43c08a
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x43beb0
push ebx
mov dword [ebp - 0x18], esi
call fcn.004c751f
pop ecx
push esi
mov edi, eax
lea eax, [ebp - 0x18]
push eax
push ebx
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], ebx
je 0x43c077
push edi
call fcn.004c7047
pop ecx
mov edi, esi
jmp 0x43beb0
push eax
lea ecx, [ebp - 0xa0]
call fcn.004162d6
cmp byte [0x548ec0], 0
je 0x43bf2a
mov eax, dword [0x54d898]
mov dword [ebp - 0x14], eax
jmp 0x43bf92
push 0x84
lea eax, [ebp - 0x1b0]
push esi
push eax
call fcn.004df090
add esp, 0xc
lea ecx, [ebp - 0x1b0]
push 0x548ef8
call fcn.004162a1
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1b0]
call fcn.0040f3a3
mov ecx, dword [ebp - 0xa0]
xor edx, edx
push eax
push 2
mov dword [ebp - 0x18], eax
call fcn.0041cd0f
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
test eax, eax
je 0x43bf84
push eax
call fcn.004c7047
pop ecx
lea ecx, [ebp - 0x1b0]
call fcn.004162c6
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x43beb0
push 0x84
lea eax, [ebp - 0x128]
mov dword [ebp - 0x18], esi
push esi
push eax
call fcn.004df090
add esp, 0xc
lea ecx, [ebp - 0x128]
push 0xffffffffffffffff
push dword [ebp - 0x1b4]
call fcn.0041627d
push 0x52e19c
push 0x52b850
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 2
call fcn.0041665c
mov edx, dword [ebp - 0x128]
lea eax, [ebp - 0x3e8]
push eax
lea eax, [ebp - 0x18]
push eax
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.0041ce15
add esp, 0xc
test eax, eax
je 0x43c00f
lea ecx, [ebp - 0x128]
call fcn.004162c6
jmp 0x43beb0
mov ebx, dword [ebp - 0x1bc]
test ebx, ebx
je 0x43bfff
push ebx
call fcn.004c751f
mov edx, dword [ebp - 0x18]
mov edi, eax
pop ecx
mov ecx, dword [ebp - 0x14]
push 3
push ebx
push edi
call fcn.0041ce48
add esp, 0xc
test eax, eax
je 0x43c05b
cmp eax, 0x600
je 0x43c05b
push edi
call fcn.004c7047
cmp byte [0x548ec0], 0
mov edi, esi
pop ecx
jne 0x43bfff
mov ecx, dword [ebp - 0x14]
call fcn.0041ce7b
jmp 0x43bfff
cmp byte [0x548ec0], 0
jne 0x43c06c
mov ecx, dword [ebp - 0x14]
call fcn.0041ce7b
lea ecx, [ebp - 0x128]
call fcn.004162c6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
call fcn.004162c6
test edi, edi
jne 0x43c0fc
push esi
push 0x80
push 3
push esi
push 1
push closesocket
push dword [ebp - 0x1b4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1b4], eax
cmp eax, 0xffffffff
je 0x43c0f8
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x43c0f8
push ebx
mov dword [ebp - 0x14], esi
call fcn.004c751f
pop ecx
push esi
mov edi, eax
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
push dword [ebp - 0x1b4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x1b4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], ebx
je 0x43c0f8
push edi
call fcn.004c7047
pop ecx
mov edi, esi
test edi, edi
je 0x43c10e
mov edx, ebx
mov ecx, edi
call fcn.0043c116
push edi
mov esi, eax
call fcn.004c7047
pop ecx
mov eax, esi
call fcn.004c8412
ret