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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
xor edi, edi
mov edx, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], edi
test esi, esi
je 0x471e7b
mov ecx, dword [ebp + 8]
lea eax, [esi + 0x2c]
mov dword [ebp - 0x14], eax
mov eax, dword [eax]
test eax, eax
je 0x471c40
push 1
push edi
push ecx
push ebx
push 2
push esi
call eax
mov edi, eax
add esp, 0x18
test edi, edi
jle 0x471e7d
mov ecx, dword [ebp + 8]
mov edx, esi
nop word [eax + eax]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x471c54
cmp byte [esi + 0x4c], 3
je 0x471c54
mov esi, eax
jmp 0x471c40
mov ecx, dword [ebp + 8]
test edi, edi
js 0x471e5e
mov eax, dword [esi + 4]
test eax, eax
je 0x471c7a
mov eax, dword [eax + 0x108]
test eax, eax
je 0x471c7a
push ecx
push ebx
push esi
call eax
add esp, 0xc
jmp 0x471e3d
movzx eax, byte [esi + 0x4c]
add eax, 0xfffffffe
cmp eax, 6
ja case.default.0x471c8a
jmp dword [eax*4 + 0x471e84]
mov ecx, dword [ebp - 4]
test ecx, ecx
jle 0x471e45
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ecx
push eax
mov edx, ecx
mov ecx, ebx
push ebx
call fcn.004b61b0
mov edi, dword [ebp - 0xc]
add esp, 8
test eax, eax
mov eax, 0xffffffff
cmovne edi, eax
jmp 0x471e3f
push ecx
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.004652d0
mov edi, eax
add esp, 4
test edi, edi
jle 0x471e3f
push edi
push dword [ebp - 0x10]
push ebx
call fcn.0041d170
add esp, 0xc
jmp 0x471e3f
push ecx
mov edx, ebx
mov ecx, esi
call fcn.004659e0
add esp, 4
jmp 0x471e3d
mov eax, dword [esi + 0x18]
test eax, eax
je 0x471d17
push eax
push ecx
push 1
push ebx
call fcn.0043042e
add esp, 0x10
jmp 0x471e3d
mov edi, 0xffffff52
jmp case.default.0x471c8a
cmp dword [edx + 0x44], 0
jne 0x471dc4
and dword [esi + 0x48], 0xffffffef
mov edi, dword [esi + 0x18]
test edi, edi
je 0x471d8d
mov eax, dword [edi + 0x444]
test eax, eax
je 0x471d54
push 1
push 4
push edi
call eax
add esp, 0xc
mov dword [edi + 0x448], 4
test ebx, ebx
je 0x471d8d
mov eax, dword [ebp + 8]
test eax, eax
js 0x471d8d
push ecx
push eax
mov edx, ebx
mov ecx, edi
call fcn.00492640
mov edi, eax
add esp, 8
test edi, edi
jns 0x471d78
or edi, 0xffffffff
jmp 0x471d92
jne 0x471e3f
mov eax, dword [ebp - 8]
mov dword [eax + 0x44], 1
jmp 0x471e3f
mov edi, 0xffffff53
mov eax, dword [esi + 0x18]
test eax, eax
je 0x471d7e
mov eax, dword [eax + 0x2b8]
cmp eax, 0xfffffebd
je 0x471dbe
cmp eax, 0xfffffeb9
je 0x471dbe
cmp eax, 0xfffffea9
je 0x471d7e
cmp eax, 2
je 0x471dbe
cmp eax, 3
jne 0x471d7e
or dword [esi + 0x48], 0x10
jmp 0x471e3f
or edi, 0xffffffff
jmp case.default.0x471c8a
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x471e26
cmp dword [ecx + 0x230], 0
jne 0x471e0d
cmp dword [0x4fd758], 0
lea edx, [ecx + 0x228]
mov eax, 0x4fd750
je 0x471e02
mov ecx, dword [edx]
nop
cmp ecx, dword [eax]
je 0x471dff
add eax, 0xc
cmp dword [eax + 8], 0
jne 0x471df0
jmp 0x471e02
lea edx, [eax + 4]
cmp dword [edx], 0x357
mov ecx, dword [esi + 0x18]
jne 0x471e26
test ebx, ebx
je 0x471e21
push edi
mov edx, ebx
call fcn.0046faf0
add esp, 4
cmp eax, 1
je 0x471e3f
or edi, 0xffffffff
jmp 0x471e3f
push edi
mov edx, ebx
call fcn.0046ecb0
jmp 0x471e19
push 0
push ecx
push ebx
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
cmp esi, edx
je 0x471e5e
mov esi, dword [esi + 8]
test edi, edi
mov eax, edi
cmovle eax, ecx
mov dword [ebp - 4], eax
test esi, esi
jne 0x471c51
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
test eax, eax
je 0x471e7b
push edi
push 0
push dword [ebp + 8]
push ebx
push 0x82
push edx
call eax
add esp, 0x18
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret