Function at 0x403f10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
mov eax, dword [0x6019e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x603670
push ecx
lea eax, [ebp - 0xe4]
mov dword [ebp - 0xf8], edx
push eax
mov dword [ebp - 0xe4], 0
xor ebx, ebx
call fcn.0058c7cb
mov eax, dword [ebp - 0xe4]
add esp, 0xc
test eax, eax
je 0x4042a6
push ebx
push ebx
push eax
mov dword [ebp - 0xe8], ebx
call fcn.005890ed
add esp, 0xc
push dword [ebp - 0xe4]
push 2
push 1
push 0x62c420
call fcn.0058d9e0
movzx eax, word [0x62c420]
add esp, 0x10
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, 0x4d5a
cmp ax, cx
jne 0x404298
push ebx
push 0x3c
push dword [ebp - 0xe4]
call fcn.005890ed
add esp, 0xc
lea eax, [ebp - 0xe8]
push dword [ebp - 0xe4]
push 4
push 1
push eax
call fcn.0058d9e0
push ebx
push dword [ebp - 0xe8]
push dword [ebp - 0xe4]
call fcn.005890ed
mov eax, dword [ebp - 0xe8]
add esp, 0x1c
add eax, 0x58
mov dword [ebp - 0xf0], eax
push dword [ebp - 0xe4]
push 0x18
push 1
push 0x62c420
call fcn.0058d9e0
add esp, 0x10
cmp dword [0x62c420], 0x4550
jne 0x404298
movzx esi, word [0x62c434]
lea eax, [esi + 0x24]
call fcn.00585a60
mov ecx, esp
mov edx, esi
push 1
push 4
call fcn.004aec40
mov esi, eax
lea ecx, [esi + 4]
mov dword [esi], ecx
push dword [ebp - 0xe4]
push dword [esi - 0x10]
push 1
push esi
call fcn.0058d9e0
movzx eax, word [esi]
add esp, 0x18
cmp eax, 0x10b
je 0x404075
cmp eax, 0x20b
jne 0x404298
mov eax, dword [esi + 0x90]
test eax, eax
cmovne ebx, eax
mov eax, dword [ebp - 0xe8]
add eax, 0xa8
jmp 0x40408b
mov eax, dword [esi + 0x80]
test eax, eax
cmovne ebx, eax
mov eax, dword [ebp - 0xe8]
add eax, 0x98
mov dword [ebp - 0xf4], eax
test ebx, ebx
jne 0x404152
push 2
push 0xfffffffffffffff0
push dword [ebp - 0xe4]
mov dword [ebp - 0xec], ebx
call fcn.005890ed
add esp, 0xc
push dword [ebp - 0xe4]
push 0x10
push 1
push 0x62c420
call fcn.0058d9e0
add esp, 0x10
lea esi, [ebx + 0xc]
mov ecx, 0x62c420
mov edx, 0x604c24
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x404142
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4040d5
push 1
push 0xffffffffffffffec
push dword [ebp - 0xe4]
call fcn.005890ed
add esp, 0xc
lea eax, [ebp - 0xec]
push dword [ebp - 0xe4]
push 4
push 1
push eax
call fcn.0058d9e0
add esp, 0x10
push dword [ebp - 0xec]
call dword [sym.imp.WS2_32.dll_ntohl]
push dword [ebp - 0xe4]
mov dword [ebp - 0xec], eax
call fcn.00588b2a
mov ebx, eax
add esp, 4
mov eax, 0xfffffffc
sub eax, dword [ebp - 0xec]
add ebx, eax
jmp 0x404152
push dword [ebp - 0xe4]
call fcn.00588b2a
add esp, 4
mov ebx, eax
lea eax, [ebp - 0xe0]
push eax
call fcn.004cfc70
add esp, 4
mov edi, ebx
push 0
push 0
push dword [ebp - 0xe4]
call fcn.005890ed
mov eax, dword [ebp - 0xf0]
add esp, 0xc
test eax, eax
je 0x40421a
push dword [ebp - 0xe4]
add eax, 4
push eax
push 1
push 0x62c420
call fcn.0058d9e0
mov esi, eax
mov eax, dword [ebp - 0xf0]
push esi
push 0x62c420
mov dword [eax + 0x62c420], 0
lea eax, [ebp - 0xe0]
push eax
call fcn.004cfd20
mov eax, dword [ebp - 0xf4]
add esp, 0x1c
sub edi, esi
test ebx, ebx
cmove edi, ebx
sub eax, dword [ebp - 0xf0]
push dword [ebp - 0xe4]
add eax, 4
push eax
push 1
push 0x62c420
call fcn.0058d9e0
mov esi, eax
lea eax, [ebp - 0xe0]
push esi
push 0x62c420
push eax
mov dword [esi + 0x62c418], 0
mov dword [esi + 0x62c41c], 0
call fcn.004cfd20
add esp, 0x1c
test ebx, ebx
je 0x40421a
sub edi, esi
mov ecx, 0x1000
nop
test ebx, ebx
jne 0x40422b
mov eax, 0x1000
jmp 0x404236
cmp edi, 0x1000
mov eax, edi
cmova eax, ecx
push dword [ebp - 0xe4]
push eax
push 1
push 0x62c420
call fcn.0058d9e0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x404274
push esi
lea eax, [ebp - 0xe0]
push 0x62c420
push eax
call fcn.004cfd20
add esp, 0xc
mov ecx, 0x1000
test ebx, ebx
je 0x404224
sub edi, esi
jne 0x404220
lea eax, [ebp - 0xe0]
push eax
push dword [ebp - 0xf8]
call fcn.004cfc60
push dword [ebp - 0xe4]
call fcn.00588cf7
add esp, 0xc
xor eax, eax
jmp 0x4042ab
push dword [ebp - 0xe4]
call fcn.00588cf7
add esp, 4
mov eax, 1
lea esp, [ebp - 0x108]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005852a8
mov esp, ebp
pop ebp
ret