Function at 0x402600
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1488
call fcn.00406b00
mov eax, dword [0x470360]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1474], 0
mov dword [ebp - 0x1464], 0
mov eax, dword [0x472d38]
mov dword [0x471a84], eax
cmp dword [0x471a84], 0
je 0x402696
mov ecx, dword [ebp - 0x1464]
push ecx
push 0x470018
mov edx, dword [ebp - 0x1488]
push edx
call fcn.00406900
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
call fcn.0040106e
add esp, 4
mov dword [ebp - 0x1474], eax
cmp dword [ebp - 0x1474], 0
je 0x402683
mov ecx, dword [ebp - 0x1464]
add ecx, 1
mov dword [ebp - 0x1464], ecx
mov edx, dword [0x471a84]
mov eax, dword [edx + 0x98]
mov dword [0x471a84], eax
jmp 0x402635
push 0x51
push 0
lea ecx, [ebp - 0x58]
push ecx
call fcn.00405d40
add esp, 0xc
mov edx, dword [ebp - 0x1464]
push edx
push 0x47001c
lea eax, [ebp - 0x58]
push eax
call fcn.00406900
add esp, 0xc
lea ecx, [ebp - 0x58]
push ecx
call fcn.00405f60
add esp, 4
push eax
lea edx, [ebp - 0x58]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004010eb
add esp, 0xc
mov dword [ebp - 0x1480], eax
push 0x51
push 0
lea ecx, [ebp - 0x58]
push ecx
call fcn.00405d40
add esp, 0xc
push 0
push 0x51
lea edx, [ebp - 0x58]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x1468], eax
mov ecx, dword [ebp - 0x1468]
mov dword [ebp - 0x147c], ecx
cmp dword [ebp - 0x147c], 0x51
jae 0x402720
jmp 0x402725
call fcn.00405b20
mov edx, dword [ebp - 0x147c]
mov byte [ebp + edx - 0x58], 0
cmp dword [ebp - 0x1464], 0
jle 0x402983
mov eax, dword [0x472d38]
mov dword [0x471a84], eax
cmp dword [0x471a84], 0
je 0x402983
mov ecx, dword [0x471a84]
cmp dword [ecx + 0x90], 0
je 0x40296d
mov edx, dword [0x471a84]
mov eax, dword [edx + 0x5c]
add eax, 0x600
push eax
call fcn.004066e0
add esp, 4
mov ecx, dword [0x471a84]
mov dword [ecx + 0x8c], eax
mov edx, 4
imul edx, edx, 0
lea eax, [ebp + edx - 0x860]
push eax
mov ecx, 4
imul ecx, ecx, 0
lea edx, [ebp + ecx - 0x1460]
push edx
mov eax, dword [0x471a84]
mov ecx, dword [eax + 0x5c]
push ecx
mov edx, dword [0x471a84]
mov eax, dword [edx + 0x7c]
push eax
call fcn.00401019
add esp, 0x10
mov word [ebp - 0x146c], ax
mov ecx, dword [0x471a84]
mov edx, dword [ecx + 0x8c]
push edx
mov eax, 4
imul eax, eax, 0
lea ecx, [ebp + eax - 0x860]
push ecx
mov edx, 4
imul edx, edx, 0
lea eax, [ebp + edx - 0x1460]
push eax
movzx ecx, word [ebp - 0x146c]
push ecx
mov edx, dword [0x471a84]
mov eax, dword [edx + 0x5c]
push eax
mov ecx, dword [0x471a84]
mov edx, dword [ecx + 0x7c]
push edx
call fcn.004010d2
add esp, 0x18
mov dword [0x471a8c], eax
push 0x51
push 0
lea eax, [ebp - 0x58]
push eax
call fcn.00405d40
add esp, 0xc
mov ecx, dword [0x471a8c]
push ecx
mov edx, dword [0x471a84]
mov eax, dword [edx + 0x5c]
push eax
mov ecx, dword [0x471a84]
mov edx, dword [ecx + 0x60]
push edx
mov eax, dword [0x471a84]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [0x471a84]
mov eax, dword [edx + 0xc]
push eax
push str._d__d__ld__ld__ld_
lea ecx, [ebp - 0x58]
push ecx
call fcn.00406900
add esp, 0x1c
lea edx, [ebp - 0x58]
push edx
call fcn.00405f60
add esp, 4
push eax
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004010eb
add esp, 0xc
mov dword [ebp - 0x1480], eax
push 0x51
push 0
lea edx, [ebp - 0x58]
push edx
call fcn.00405d40
add esp, 0xc
push 0
push 0x51
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x1468], eax
mov edx, dword [ebp - 0x1468]
mov dword [ebp - 0x1478], edx
cmp dword [ebp - 0x1478], 0x51
jae 0x4028d3
jmp 0x4028d8
call fcn.00405b20
mov eax, dword [ebp - 0x1478]
mov byte [ebp + eax - 0x58], 0
mov ecx, dword [0x471a8c]
push ecx
mov edx, dword [0x471a84]
mov eax, dword [edx + 0x8c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004010eb
add esp, 0xc
mov dword [ebp - 0x1484], eax
mov edx, dword [0x471a84]
mov eax, dword [edx + 0x8c]
push eax
call fcn.004066c0
add esp, 4
push 0x51
push 0
lea ecx, [ebp - 0x58]
push ecx
call fcn.00405d40
add esp, 0xc
push 0
push 0x51
lea edx, [ebp - 0x58]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x1468], eax
mov ecx, dword [ebp - 0x1468]
mov dword [ebp - 0x1470], ecx
cmp dword [ebp - 0x1470], 0x51
jae 0x40295d
jmp 0x402962
call fcn.00405b20
mov edx, dword [ebp - 0x1470]
mov byte [ebp + edx - 0x58], 0
mov eax, dword [0x471a84]
mov ecx, dword [eax + 0x98]
mov dword [0x471a84], ecx
jmp 0x402747
mov eax, dword [ebp - 0x1464]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406af0
mov esp, ebp
pop ebp
ret