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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x18
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 0x472125
mov ecx, dword [ebx + 8]
lea eax, [esi + 0x2c]
mov dword [ebp - 0x18], eax
mov eax, dword [eax]
test eax, eax
je 0x471ea0
push 1
push edi
push ecx
push edx
push 2
push esi
call eax
mov edi, eax
add esp, 0x18
test edi, edi
jle 0x472127
mov ecx, dword [ebx + 8]
nop dword [eax]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x471eb1
cmp byte [esi + 0x4c], 3
je 0x471eb1
mov esi, eax
jmp 0x471ea0
mov edx, dword [0x4fe758]
jmp 0x471ec3
mov ecx, dword [ebx + 8]
test edi, edi
js 0x472104
mov eax, dword [esi + 4]
test eax, eax
je 0x471eeb
mov eax, dword [eax + 0x108]
test eax, eax
je 0x471eeb
push ecx
push dword [ebp - 8]
push esi
call eax
add esp, 0xc
jmp 0x4720df
movzx eax, byte [esi + 0x4c]
add eax, 0xfffffffe
cmp eax, 6
ja case.default.0x471efb
jmp dword [eax*4 + 0x472130]
mov ecx, dword [ebp - 4]
test ecx, ecx
jle 0x4720ea
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.004b6420
mov edi, dword [ebp - 0x10]
add esp, 8
test eax, eax
mov eax, 0xffffffff
cmovne edi, eax
jmp 0x4720e1
push ecx
lea edx, [ebp - 0x14]
mov ecx, esi
call fcn.00465520
mov edi, eax
add esp, 4
test edi, edi
jle 0x4720e1
push edi
push dword [ebp - 0x14]
push dword [ebp - 8]
call fcn.0041d1d0
add esp, 0xc
jmp 0x4720e1
mov edx, dword [ebp - 8]
push ecx
mov ecx, esi
call fcn.00465c30
add esp, 4
jmp 0x4720df
mov eax, dword [esi + 0x18]
test eax, eax
je 0x471f90
push eax
push ecx
push 1
push dword [ebp - 8]
call fcn.0043048e
add esp, 0x10
jmp 0x4720df
mov edi, 0xffffff52
jmp case.default.0x471efb
mov edi, dword [ebp - 0xc]
cmp dword [edi + 0x44], 0
jne 0x4720b5
and dword [esi + 0x48], 0xffffffef
mov edi, dword [esi + 0x18]
test edi, edi
je 0x47200c
mov eax, dword [edi + 0x444]
test eax, eax
je 0x471fd0
push 1
push 4
push edi
call eax
add esp, 0xc
mov dword [edi + 0x448], 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x47200c
mov ecx, dword [ebx + 8]
test ecx, ecx
js 0x47200c
push ecx
push ecx
mov edx, eax
mov ecx, edi
call fcn.00492920
mov edi, eax
add esp, 8
test edi, edi
jns 0x471ff7
or edi, 0xffffffff
jmp 0x472011
jne 0x4720e1
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x44], 1
jmp 0x4720e1
mov edi, 0xffffff53
mov eax, dword [esi + 0x18]
test eax, eax
je 0x471ffd
mov eax, dword [eax + 0x2b8]
cmp eax, 0xfffffebd
je 0x47203d
cmp eax, 0xfffffeb9
je 0x47203d
cmp eax, 0xfffffea9
je 0x471ffd
cmp eax, 2
je 0x47203d
cmp eax, 3
jne 0x471ffd
or dword [esi + 0x48], 0x10
jmp 0x4720e1
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x4720ba
cmp dword [ecx + 0x230], 0
jne 0x472098
mov eax, 0x4fe750
test edx, edx
je 0x472087
add ecx, 0x228
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
nop word [eax + eax]
cmp ecx, dword [eax]
je 0x472082
add eax, 0xc
cmp dword [eax + 8], 0
jne 0x472070
mov eax, dword [ebp - 0x10]
jmp 0x47208d
add eax, 4
jmp 0x47208d
lea eax, [ecx + 0x228]
cmp dword [eax], 0x357
mov ecx, dword [esi + 0x18]
jne 0x4720ba
mov eax, dword [ebp - 8]
test eax, eax
je 0x4720b5
push edi
mov edx, eax
call fcn.0046fd40
add esp, 4
cmp eax, 1
je 0x4720e1
mov edx, dword [0x4fe758]
or edi, 0xffffffff
jmp case.default.0x471efb
mov edx, dword [ebp - 8]
push edi
call fcn.0046ef00
add esp, 4
cmp eax, 1
je 0x4720e1
or edi, 0xffffffff
jmp 0x4720e1
push 0
push ecx
push dword [ebp - 8]
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
mov edx, dword [0x4fe758]
mov ecx, dword [ebp - 4]
cmp esi, dword [ebp - 0xc]
je 0x472104
mov esi, dword [esi + 8]
test edi, edi
mov eax, edi
cmovle eax, ecx
mov dword [ebp - 4], eax
test esi, esi
jne 0x471ec0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
test eax, eax
je 0x472125
push edi
push 0
push dword [ebx + 8]
push dword [ebp - 8]
push 0x82
push dword [ebp - 0xc]
call eax
add esp, 0x18
mov edi, eax
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret