Function at 0x40c4c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x90
mov ecx, dword [ebp + 8]
mov eax, dword [0x43e00c]
xor eax, ebp
mov dword [esp + 0x88], eax
xorps xmm0, xmm0
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.0041a01c
add esp, 0xc
mov bl, 1
test eax, eax
jne 0x40c64f
lea eax, [esp + 0x1c]
push esi
push 1
push 4
push eax
call fcn.0041ee3f
add esp, 0x10
cmp eax, 1
jne 0x40c64f
push dword [esp + 0x1c]
call dword [sym.imp.WSOCK32.dll_ntohl]
push 0
push eax
push esi
call fcn.0041a01c
add esp, 0xc
test eax, eax
jne 0x40c64f
push 1
push 4
push esi
call fcn.0041a01c
add esp, 0xc
test eax, eax
jne 0x40c64f
lea eax, [esp + 0x18]
push esi
push 1
push 4
push eax
call fcn.0041ee3f
add esp, 0x10
cmp eax, 1
jne 0x40c64f
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.0041a037
add esp, 0x10
test eax, eax
jne 0x40c64f
lea eax, [esp + 0x14]
push esi
push 1
push 4
push eax
call fcn.0041ee3f
add esp, 0x10
cmp eax, 1
jne 0x40c64f
mov dword [esp + 8], edi
push dword [esp + 0x14]
call dword [sym.imp.WSOCK32.dll_ntohl]
mov dword [esp + 0x14], eax
cmp eax, 8
ja 0x40c64f
mov edi, eax
test eax, eax
je 0x40c633
push 1
push 4
push esi
call fcn.0041a01c
add esp, 0xc
test eax, eax
jne 0x40c64f
push esi
push 1
push 4
lea eax, [esp + 0x1c]
push eax
call fcn.0041ee3f
add esp, 0x10
cmp eax, 1
jne 0x40c64f
push dword [esp + 0x10]
call dword [sym.imp.WSOCK32.dll_ntohl]
mov dword [esp + 0x10], eax
push 1
push eax
push esi
call fcn.0041a01c
add esp, 0xc
test eax, eax
jne 0x40c64f
dec edi
jne 0x40c5ea
push esi
call fcn.0041acf3
add esp, 4
mov ecx, dword [esp + 8]
xor ecx, eax
sar eax, 0x1f
or ecx, eax
jne 0x40c754
xor ebx, ebx
xor esi, esi
dec esi
test bl, bl
jne 0x40c6fb
test edi, edi
je 0x40c6fb
lea eax, [esp + 0x1c]
mov ebx, dword [ebp + 8]
push dword [ebx]
push 1
push 4
push eax
call fcn.0041ee3f
add esp, 0x10
cmp eax, 1
jne 0x40c6fb
push dword [esp + 0x1c]
call dword [sym.imp.WSOCK32.dll_ntohl]
mov edi, eax
add edi, 0xfffffff8
cmp edi, 0x60
ja 0x40c6fb
lea eax, [esp + 0x18]
push dword [ebx]
push 1
push 4
push eax
call fcn.0041ee3f
add esp, 0x10
cmp eax, 1
jne 0x40c6fb
push dword [esp + 0x18]
call dword [sym.imp.WSOCK32.dll_ntohl]
mov dword [esp + 0x18], eax
mov ecx, dword [ebx]
cmp eax, 1
jne 0x40c6ef
lea ebx, [esp + 0x20]
push ecx
push 1
push edi
push ebx
call fcn.0041ee3f
add esp, 0x10
cmp eax, 1
jne 0x40c6fb
mov edi, dword [ebp + 0xc]
push ebx
call fcn.0041f720
add esp, 4
mov dword [edi], ebx
cmp eax, 0x40
jl 0x40c713
mov dword [edi], 0
jmp 0x40c6fb
push 1
push edi
push ecx
call fcn.0041a01c
add esp, 0xc
mov ecx, dword [esp + 0x88]
xor ecx, ebp
call fcn.00412b41
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea edi, [eax + ebx]
inc edi
push edi
call fcn.0041f720
add esp, 4
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], edi
mov edi, dword [ebp + 0xc]
cmp eax, 0x20
jl 0x40c737
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
jmp 0x40c6fb
push ebx
call fcn.0041cddf
add esp, 4
mov dword [edi], eax
push dword [edi + 4]
call fcn.0041cddf
add esp, 4
mov dword [edi + 4], eax
xor esi, esi
jmp 0x40c6fb
lea edi, [esp + 0xc]
push esi
push 1
push 4
push edi
call fcn.0041ee3f
add esp, 0x10
mov edi, dword [edi]
cmp eax, 1
jne 0x40c64f
push edi
call dword [sym.imp.WSOCK32.dll_ntohl]
mov edi, eax
mov dword [esp + 0xc], eax
push esi
call fcn.0041acf3
add esp, 4
xor ebx, ebx
jmp 0x40c64f