Function at 0x40bbc0
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.0041a69f
add esp, 0xc
mov bl, 1
test eax, eax
jne 0x40bd53
lea eax, [esp + 0x1c]
push esi
push 1
push 4
push eax
call fcn.0041f44b
add esp, 0x10
cmp eax, 1
jne 0x40bd53
push dword [esp + 0x1c]
call dword [sym.imp.WSOCK32.dll_ntohl]
mov dword [esp + 0x1c], eax
push 0
push eax
push esi
call fcn.0041a69f
add esp, 0xc
test eax, eax
jne 0x40bd53
push 1
push 4
push esi
call fcn.0041a69f
add esp, 0xc
test eax, eax
jne 0x40bd53
lea eax, [esp + 0x18]
push esi
push 1
push 4
push eax
call fcn.0041f44b
add esp, 0x10
cmp eax, 1
jne 0x40bd53
push dword [esp + 0x18]
call dword [sym.imp.WSOCK32.dll_ntohl]
mov edi, eax
mov dword [esp + 0x18], eax
push 0
push 0
push 0x10
push esi
call fcn.0041a6ba
add esp, 0x10
test eax, eax
jne 0x40bd53
lea eax, [esp + 0x14]
push esi
push 1
push 4
push eax
call fcn.0041f44b
add esp, 0x10
cmp eax, 1
jne 0x40bd53
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 0x40bd53
mov edi, eax
test eax, eax
je 0x40bd37
push 1
push 4
push esi
call fcn.0041a69f
add esp, 0xc
test eax, eax
jne 0x40bd53
push esi
push 1
push 4
lea eax, [esp + 0x1c]
push eax
call fcn.0041f44b
add esp, 0x10
cmp eax, 1
jne 0x40bd53
push dword [esp + 0x10]
call dword [sym.imp.WSOCK32.dll_ntohl]
mov dword [esp + 0x10], eax
push 1
push eax
push esi
call fcn.0041a69f
add esp, 0xc
test eax, eax
jne 0x40bd53
dec edi
jne 0x40bcee
push esi
call fcn.0041b376
add esp, 4
mov ecx, dword [esp + 8]
xor ecx, eax
sar eax, 0x1f
or ecx, eax
jne 0x40be68
xor ebx, ebx
mov esi, 0xffffffff
test bl, bl
jne 0x40be09
test edi, edi
je 0x40be09
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x1c]
push dword [ebx]
push 1
push 4
push eax
call fcn.0041f44b
add esp, 0x10
cmp eax, 1
jne 0x40be09
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 0x40be09
lea eax, [esp + 0x18]
push dword [ebx]
push 1
push 4
push eax
call fcn.0041f44b
add esp, 0x10
cmp eax, 1
jne 0x40be09
push dword [esp + 0x18]
call dword [sym.imp.WSOCK32.dll_ntohl]
mov dword [esp + 0x18], eax
cmp eax, 1
mov eax, dword [ebx]
jne 0x40bdfd
lea ebx, [esp + 0x20]
push eax
push 1
push edi
push ebx
call fcn.0041f44b
add esp, 0x10
cmp eax, 1
jne 0x40be09
mov edi, dword [ebp + 0xc]
push ebx
call fcn.0041fc30
add esp, 4
cmp eax, 0x40
mov dword [edi], ebx
jl 0x40be21
mov dword [edi], 0
jmp 0x40be09
push 1
push edi
push eax
call fcn.0041a69f
add esp, 0xc
mov ecx, dword [esp + 0x88]
xor ecx, ebp
call fcn.00412fa1
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.0041fc30
add esp, 4
mov ecx, dword [ebp + 0xc]
cmp eax, 0x20
mov dword [ecx + 4], edi
mov edi, dword [ebp + 0xc]
jl 0x40be4b
mov dword [edi], 0
mov dword [edi + 4], 0
jmp 0x40be09
push ebx
call fcn.0041d256
add esp, 4
mov dword [edi], eax
push dword [edi + 4]
call fcn.0041d256
add esp, 4
mov dword [edi + 4], eax
xor esi, esi
jmp 0x40be09
lea eax, [esp + 0xc]
push esi
push 1
push 4
push eax
call fcn.0041f44b
add esp, 0x10
mov edi, dword [esp + 0xc]
cmp eax, 1
jne 0x40bd53
push edi
call dword [sym.imp.WSOCK32.dll_ntohl]
mov edi, eax
mov dword [esp + 0xc], eax
push esi
call fcn.0041b376
add esp, 4
xor ebx, ebx
jmp 0x40bd53