Function at 0x40a91b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x426d40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 8
pop ecx
mov dword [ebp - 0x38], eax
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
xor esi, esi
push 8
pop ecx
lea edi, [ebp - 0x58]
mov dword [ebp - 0x34], esi
rep stosd dword es:[edi], eax
cmp ebx, esi
jne 0x40a95c
push 0x4212c0
jmp 0x40ab74
push 2
push esi
push esi
push ebx
call fcn.0040ec7e
add esp, 0x10
test eax, eax
je 0x40a977
push 0x42128c
jmp 0x40ab74
push ebx
call fcn.0040eb75
pop ecx
cmp edx, esi
jl 0x40a995
jg 0x40a98b
cmp eax, 0x1f400000
jbe 0x40a995
push 0x42125c
jmp 0x40ab74
push esi
push esi
push 0x10
push ebx
call fcn.0040ec7e
add esp, 0x10
test eax, eax
je 0x40a9b0
push 0x42122c
jmp 0x40ab74
push ebx
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0x28]
push 4
push eax
call fcn.0040c241
add esp, 0x10
cmp eax, edi
je 0x40a9d1
push 0x4211fc
jmp 0x40ab74
push dword [ebp - 0x28]
call dword [sym.imp.WSOCK32.dll_ntohl]
mov dword [ebp - 0x28], eax
cmp eax, 8
jbe 0x40a9ff
push 8
push 0x4211cc
call fcn.0040d8b0
add eax, 0x40
push eax
call fcn.0040d7a4
add esp, 0xc
jmp 0x40aba0
mov dword [ebp - 0x2c], esi
cmp eax, esi
jbe 0x40aaa4
mov esi, dword [ebp - 0x2c]
push ebx
push edi
lea esi, [ebp + esi*4 - 0x24]
push 4
push esi
call fcn.0040c241
add esp, 0x10
cmp eax, edi
jne 0x40aaf3
push dword [esi]
call dword [sym.imp.WSOCK32.dll_ntohl]
push ebx
push edi
mov dword [esi], eax
lea eax, [ebp - 0x30]
push 4
push eax
call fcn.0040c241
add esp, 0x10
cmp eax, edi
jne 0x40aafa
push dword [ebp - 0x30]
call dword [sym.imp.WSOCK32.dll_ntohl]
mov dword [ebp - 0x30], eax
cmp eax, 0x800
ja 0x40ab01
push eax
call fcn.0040ba14
pop ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ebp + ecx*4 - 0x58], eax
test eax, eax
je 0x40ab08
push ebx
push edi
push dword [ebp - 0x30]
push eax
call fcn.0040c241
add esp, 0x10
cmp eax, edi
jne 0x40ab0f
cmp dword [esi], edi
jne 0x40ab3d
inc dword [ebp - 0x2c]
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x28]
jb 0x40aa0a
xor esi, esi
push ebx
call fcn.0040eb75
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x28]
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x38]
push dword [ebp + 0xc]
push ebx
call fcn.0040a698
add esp, 0x1c
xor edi, edi
cmp dword [ebp - 0x28], esi
jbe 0x40aadb
push dword [ebp + edi*4 - 0x58]
call fcn.0040b54d
inc edi
pop ecx
cmp edi, dword [ebp - 0x28]
jb 0x40aacb
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x28]
jne 0x40ab6b
cmp dword [ebp + 0x14], eax
jne 0x40ab6b
xor eax, eax
jmp 0x40aba3
push 0x42119c
jmp 0x40ab74
push 0x421170
jmp 0x40ab74
push 0x42113c
jmp 0x40ab74
push 0x42110c
jmp 0x40ab74
push 0x4210e0
call fcn.0040d8b0
add eax, 0x40
push eax
call fcn.0040d7a4
xor esi, esi
pop ecx
pop ecx
cmp dword [ebp - 0x28], esi
jbe 0x40aba0
push dword [ebp + esi*4 - 0x58]
call fcn.0040b54d
inc esi
pop ecx
cmp esi, dword [ebp - 0x28]
jb 0x40ab2b
jmp 0x40aba0
push 0x4210b8
call fcn.0040d8b0
add eax, 0x40
push eax
call fcn.0040d7a4
xor esi, esi
pop ecx
pop ecx
cmp dword [ebp - 0x28], esi
jbe 0x40aba0
push dword [ebp + esi*4 - 0x58]
call fcn.0040b54d
inc esi
pop ecx
cmp esi, dword [ebp - 0x28]
jb 0x40ab59
jmp 0x40aba0
cmp eax, esi
jne 0x40ab86
push 0x42108c
call fcn.0040d8b0
add eax, 0x40
push eax
call fcn.0040d7a4
pop ecx
pop ecx
jmp 0x40aba0
push dword [ebp - 0x28]
push eax
push 0x42105c
call fcn.0040d8b0
add eax, 0x40
push eax
call fcn.0040d7a4
add esp, 0x10
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b774
leave
ret