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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x3ec
push ebx
push esi
push eax
call fcn.00502a90
mov esi, eax
xor ebx, ebx
add esp, 4
cmp esi, ebx
je 0x58cc95
cmp dword [esi + 0x41c], ebx
jne 0x58cca0
pop esi
xor eax, eax
pop ebx
add esp, 0x3ec
ret
push ebp
push edi
mov edi, dword [esp + 0x404]
cmp di, 2
jne 0x58cccf
cmp dword [esi + 0xcf8], ebx
je 0x58ccc2
push esi
push ebx
push ebx
call fcn.0058c390
add esp, 0xc
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x3ec
ret
push 2
call fcn.00502f60
mov eax, edi
shr eax, 0x10
add esp, 4
cmp ax, bx
je 0x58cceb
movzx eax, ax
jmp 0x58cddb
call fcn.00502cc0
test eax, eax
je 0x58cd0b
pop edi
pop ebp
mov dword [esi + 0xd04], 1
pop esi
xor eax, eax
pop ebx
add esp, 0x3ec
ret
mov ecx, dword [esi + 4]
push 1
push 1
push ecx
push 0x800e
call fcn.0058d320
add esp, 0x10
test eax, eax
mov dword [esi + 0xd04], ebx
jne 0x58cfda
mov dword [esi + 0xd00], 1
jmp 0x58cd40
mov ecx, dword [esi + 0xd0c]
inc ecx
mov eax, ecx
cmp eax, 0x14
mov dword [esi + 0xd0c], ecx
jl 0x58cd76
mov edx, dword [esi + 4]
push ebx
push 1
push edx
push 0x800e
mov dword [esi + 0xd0c], ebx
call fcn.0058d320
add esp, 0x10
test eax, eax
jne 0x58cfd4
cmp dword [esi + 0x2690], ebx
je 0x58cea4
mov ecx, dword [esi + 4]
push 0x3e6
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.0054e5f0
mov ebp, eax
add esp, 0xc
cmp ebp, ebx
je 0x58cfc0
jg 0x58cebb
cmp ebp, 0xfffffffd
jne 0x58cfca
push 0x2747
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
cmp dword [esi + 0x24e0], ebx
mov dword [esi + 0xd00], ebx
jne 0x58ce24
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x58ccc2
cmp eax, ebx
je 0x58ce24
cmp dword [esi + 0x41c], ebx
je 0x58ce24
push eax
call fcn.0058b3e0
push eax
push 0x5e9d50
push 0x63dcd8
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [0x6136a0]
push eax
mov dword [0x63f7ac], ebx
mov dword [0x63f7bc], 1
mov ecx, dword [esi]
push 0x63dcd8
push ecx
call fcn.005275f0
add esp, 0x1c
cmp dword [esi + 0x41c], ebx
je 0x58ce6f
mov edx, dword [0x61369c]
mov eax, dword [esi]
push edx
push eax
call fcn.00526700
mov ecx, dword [0x61369c]
add esp, 8
push ecx
push ebx
push 0x5e1
mov dword [0x63f7ac], ebx
mov dword [0x63f7bc], 1
call fcn.00421db0
mov edx, dword [esi]
add esp, 8
push eax
push edx
call fcn.00526870
add esp, 0xc
lea eax, [esi + 0x440]
push 0x3e7
push eax
call fcn.00423a00
push esi
call fcn.0058b6a0
push esi
push 0x5e6c98
call fcn.0058b480
add esp, 0x14
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
add esp, 0x3ec
ret
mov eax, dword [esi + 4]
push ebx
push 0x3e6
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.WSOCK32.dll_recv]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x58cdbc
cmp ebp, ebx
jle 0x58ce24
xor eax, eax
cmp ebp, ebx
mov byte [esp + ebp + 0x14], bl
mov dword [esp + 0x10], eax
jle 0x58cd40
mov edi, edi
mov al, byte [esp + eax + 0x14]
cmp al, 0xd
je 0x58cfaa
cmp al, 0xa
jne 0x58cf2a
cmp dword [esi + 0xcf4], ebx
lea edi, [esi + 0x908]
je 0x58cf1b
mov dword [esi + 0xcf4], ebx
xor eax, eax
mov ecx, 0xf9
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [esi + 0xcf0], ebx
jmp 0x58cfaa
mov ecx, dword [esi + 0xcf0]
mov byte [ecx + esi + 0x908], bl
jmp 0x58cf70
mov edx, dword [esi + 0xcf0]
mov byte [edx + esi + 0x908], al
mov edx, dword [esi + 0xcf0]
inc edx
mov eax, edx
cmp eax, 0x258
mov dword [esi + 0xcf0], edx
jle 0x58cfaa
cmp dword [esi + 0xcf4], ebx
lea edi, [esi + 0x908]
je 0x58cf63
mov dword [esi + 0xcf0], ebx
jmp 0x58cf9e
mov dword [esi + 0xcf4], 1
mov byte [eax + edi], bl
cmp byte [edi], bl
mov dword [esi + 0xcf0], ebx
je 0x58cf9e
push esi
push edi
call fcn.004d63c0
push esi
call fcn.00502a60
add esp, 0xc
test eax, eax
je 0x58ccc2
cmp dword [esi + 0x41c], ebx
je 0x58ccc2
xor eax, eax
mov ecx, 0xf9
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
inc eax
cmp eax, ebp
mov dword [esp + 0x10], eax
jl 0x58cee0
jmp 0x58cd40
push 0x2733
jmp 0x58cdb6
push 0x2745
jmp 0x58cdb6
mov dword [esi + 0xd04], ebx
pop edi
pop ebp
mov dword [esi + 0xd00], ebx
pop esi
xor eax, eax
pop ebx
add esp, 0x3ec
ret