Function at 0x40b610
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x90
mov eax, dword [0x43d00c]
mov ecx, dword [ebp + 8]
xorps xmm0, xmm0
xor eax, ebp
mov dword [esp + 0x88], eax
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x20], xmm0
mov byte [esp + 0x80], 0
mov esi, dword [ecx]
push 0
push 4
push esi
call fcn.00419c7f
add esp, 0xc
mov bl, 1
test eax, eax
jne 0x40b7a3
lea eax, [esp + 0x1c]
push esi
push 1
push 4
push eax
call fcn.0041eb0c
add esp, 0x10
cmp eax, 1
jne 0x40b7a3
push dword [esp + 0x1c]
call dword [sym.imp.WSOCK32.dll_ntohl]
mov dword [esp + 0x1c], eax
push 0
push eax
push esi
call fcn.00419c7f
add esp, 0xc
test eax, eax
jne 0x40b7a3
push 1
push 4
push esi
call fcn.00419c7f
add esp, 0xc
test eax, eax
jne 0x40b7a3
lea eax, [esp + 0x18]
push esi
push 1
push 4
push eax
call fcn.0041eb0c
add esp, 0x10
cmp eax, 1
jne 0x40b7a3
push dword [esp + 0x18]
call dword [sym.imp.WSOCK32.dll_ntohl]
mov edi, eax
mov dword [esp + 0x18], eax
xor eax, eax
push eax
push eax
push 0x10
push esi
call fcn.00419c9a
add esp, 0x10
test eax, eax
jne 0x40b7a3
lea eax, [esp + 0x14]
push esi
push 1
push 4
push eax
call fcn.0041eb0c
add esp, 0x10
cmp eax, 1
jne 0x40b7a3
mov dword [esp + 8], edi
push dword [esp + 0x14]
call dword [sym.imp.WSOCK32.dll_ntohl]
cmp eax, 8
mov dword [esp + 0x14], eax
ja 0x40b7a3
mov edi, eax
test eax, eax
je 0x40b787
push 1
push 4
push esi
call fcn.00419c7f
add esp, 0xc
test eax, eax
jne 0x40b7a3
push esi
push 1
push 4
lea eax, [esp + 0x1c]
push eax
call fcn.0041eb0c
add esp, 0x10
cmp eax, 1
jne 0x40b7a3
push dword [esp + 0x10]
call dword [sym.imp.WSOCK32.dll_ntohl]
mov dword [esp + 0x10], eax
push 1
push eax
push esi
call fcn.00419c7f
add esp, 0xc
test eax, eax
jne 0x40b7a3
dec edi
jne 0x40b73e
push esi
call fcn.0041a956
add esp, 4
mov ecx, dword [esp + 8]
xor ecx, eax
sar eax, 0x1f
or ecx, eax
jne 0x40b8b0
xor ebx, ebx
xor esi, esi
dec esi
test bl, bl
jne 0x40b857
test edi, edi
je 0x40b857
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x1c]
push dword [ebx]
push 1
push 4
push eax
call fcn.0041eb0c
add esp, 0x10
cmp eax, 1
jne 0x40b857
push dword [esp + 0x1c]
call dword [sym.imp.WSOCK32.dll_ntohl]
mov edi, eax
add edi, 0xfffffff8
cmp edi, 0x60
mov dword [esp + 0x1c], edi
ja 0x40b857
lea eax, [esp + 0x18]
push dword [ebx]
push 1
push 4
push eax
call fcn.0041eb0c
add esp, 0x10
cmp eax, 1
jne 0x40b857
push dword [esp + 0x18]
call dword [sym.imp.WSOCK32.dll_ntohl]
mov dword [esp + 0x18], eax
cmp eax, 1
mov eax, dword [ebx]
jne 0x40b84b
lea ebx, [esp + 0x20]
push eax
push 1
push edi
push ebx
call fcn.0041eb0c
add esp, 0x10
cmp eax, 1
jne 0x40b857
mov edi, dword [ebp + 0xc]
push ebx
call fcn.0041f3f0
add esp, 4
cmp eax, 0x40
mov dword [edi], ebx
jl 0x40b86f
mov dword [edi], 0
jmp 0x40b857
push 1
push edi
push eax
call fcn.00419c7f
add esp, 0xc
mov ecx, dword [esp + 0x88]
xor ecx, ebp
call fcn.00412591
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea edi, [eax + ebx + 1]
push edi
call fcn.0041f3f0
add esp, 4
mov ecx, dword [ebp + 0xc]
cmp eax, 0x20
mov dword [ecx + 4], edi
mov edi, dword [ebp + 0xc]
jl 0x40b893
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
jmp 0x40b857
push ebx
call fcn.0041ca3f
add esp, 4
mov dword [edi], eax
push dword [edi + 4]
call fcn.0041ca3f
add esp, 4
mov dword [edi + 4], eax
xor esi, esi
jmp 0x40b857
lea edi, [esp + 0xc]
push esi
push 1
push 4
push edi
call fcn.0041eb0c
add esp, 0x10
mov edi, dword [edi]
cmp eax, 1
jne 0x40b7a3
push edi
call dword [sym.imp.WSOCK32.dll_ntohl]
mov edi, eax
mov dword [esp + 0xc], eax
push esi
call fcn.0041a956
add esp, 4
xor ebx, ebx
jmp 0x40b7a3