Function at 0x40e0a0
Capabilities:
Read file on windows
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
mov dword [ebp - 8], edx
push edi
xor edi, edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], edi
test esi, esi
je 0x40e354
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp + 8]
test eax, eax
je 0x40e0e1
push 1
push edi
push ecx
push edx
push 2
push esi
call eax
mov edi, eax
add esp, 0x18
test edi, edi
jle 0x40e356
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40e0f2
cmp byte [esi + 0x50], 3
je 0x40e0f2
mov esi, eax
jmp 0x40e0e1
mov edx, dword [0x48b558]
jmp 0x40e103
mov ecx, dword [ebp + 8]
test edi, edi
js 0x40e334
mov eax, dword [esi + 4]
test eax, eax
je 0x40e12b
mov eax, dword [eax + 0x108]
test eax, eax
je 0x40e12b
push ecx
push dword [ebp - 8]
push esi
call eax
add esp, 0xc
jmp 0x40e30f
movzx eax, byte [esi + 0x50]
add eax, 0xfffffffe
cmp eax, 6
ja case.default.0x40e13b
jmp dword [eax*4 + 0x40e35c]
mov ecx, dword [ebp - 4]
test ecx, ecx
jle 0x40e31a
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ecx
push eax
mov eax, dword [ebp - 8]
mov edx, ecx
push eax
mov ecx, eax
call fcn.0044bce0
mov edi, dword [ebp - 0x10]
add esp, 8
test eax, eax
mov eax, 0xffffffff
cmovne edi, eax
jmp 0x40e311
push ecx
lea edx, [ebp - 0x14]
mov ecx, esi
call fcn.0040e8d0
mov edi, eax
add esp, 4
test edi, edi
jle 0x40e311
push edi
push dword [ebp - 0x14]
push dword [ebp - 8]
call fcn.0046ae20
add esp, 0xc
jmp 0x40e311
mov edx, dword [ebp - 8]
push ecx
mov ecx, esi
call fcn.0040df50
add esp, 4
jmp 0x40e30f
mov eax, dword [esi + 0x18]
test eax, eax
je 0x40e1d0
push eax
push ecx
push 1
push dword [ebp - 8]
call fcn.0047186b
add esp, 0x10
jmp 0x40e30f
mov edi, 0xffffff52
jmp case.default.0x40e13b
mov edi, dword [ebp - 0xc]
cmp dword [edi + 0x48], 0
jne 0x40e2dd
and dword [esi + 0x4c], 0xffffffef
mov edi, dword [esi + 0x18]
test edi, edi
je 0x40e24c
mov eax, dword [edi + 0x354]
test eax, eax
je 0x40e210
push 1
push 4
push edi
call eax
add esp, 0xc
mov dword [edi + 0x358], 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x40e24c
mov ecx, dword [ebp + 8]
test ecx, ecx
js 0x40e24c
push ecx
push ecx
mov edx, eax
mov ecx, edi
call fcn.0041e000
mov edi, eax
add esp, 8
test edi, edi
jns 0x40e237
or edi, 0xffffffff
jmp 0x40e251
jne 0x40e311
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x48], 1
jmp 0x40e311
mov edi, 0xffffff53
mov ecx, dword [esi + 0x18]
call fcn.004097d0
cmp eax, 2
je 0x40e272
cmp eax, 3
je 0x40e272
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x48], 1
jmp 0x40e311
or dword [esi + 0x4c], 0x10
jmp 0x40e311
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x40e2e7
cmp dword [ecx + 0x230], 0
jne 0x40e2c0
mov eax, 0x48b550
test edx, edx
je 0x40e2b0
mov ecx, dword [ecx + 0x228]
nop word [eax + eax]
cmp ecx, dword [eax]
je 0x40e2e2
add eax, 0xc
cmp dword [eax + 8], 0
jne 0x40e2a0
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx + 0x228]
cmp eax, 0x357
jne 0x40e2e7
mov ecx, dword [esi + 0x18]
mov eax, dword [ebp - 8]
test eax, eax
je 0x40e2dd
push edi
mov edx, eax
call fcn.004076c0
add esp, 4
cmp eax, 1
je 0x40e311
mov edx, dword [0x48b558]
or edi, 0xffffffff
jmp case.default.0x40e13b
mov eax, dword [eax + 4]
jmp 0x40e2b6
mov edx, dword [ebp - 8]
mov ecx, dword [esi + 0x18]
push edi
call fcn.00407990
add esp, 4
cmp eax, 1
je 0x40e311
or edi, 0xffffffff
jmp 0x40e311
push 0
push ecx
push dword [ebp - 8]
push dword [esi + 0x44]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
mov edx, dword [0x48b558]
mov ecx, dword [ebp - 4]
cmp esi, dword [ebp - 0xc]
je 0x40e334
mov esi, dword [esi + 8]
test edi, edi
mov eax, edi
cmovle eax, ecx
mov dword [ebp - 4], eax
test esi, esi
jne 0x40e100
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x2c]
test eax, eax
je 0x40e354
push edi
push 0
push dword [ebp + 8]
push dword [ebp - 8]
push 0x82
push edx
call eax
add esp, 0x18
mov edi, eax
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret