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

Disassembly:
sub esp, 0x3ec
push ebx
push esi
push edi
mov edi, edx
call fcn.004e2790
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x54bc68
cmp dword [esi + 0x41c], ebx
je 0x54bc68
cmp di, 2
jne 0x54bc74
cmp dword [esi + 0xcfc], ebx
je 0x54bc68
push esi
xor edx, edx
xor ecx, ecx
call fcn.0054b400
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x3ec
ret
push ebp
mov ecx, 2
call fcn.004e2c60
mov eax, edi
shr eax, 0x10
cmp ax, bx
je 0x54bc91
movzx eax, ax
jmp 0x54bd70
call fcn.004e2970
test eax, eax
je 0x54bcb1
mov dword [esi + 0xd08], 1
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x3ec
ret
mov edx, dword [esi + 4]
push 1
push 1
mov ecx, 0x800e
call fcn.0054c250
test eax, eax
mov dword [esi + 0xd08], ebx
jne 0x54bf7a
mov dword [esi + 0xd04], 1
lea ebx, [ebx]
mov ecx, dword [esi + 0xd10]
inc ecx
mov eax, ecx
cmp eax, 0x14
mov dword [esi + 0xd10], ecx
jl 0x54bd12
mov edx, dword [esi + 4]
push ebx
push 1
mov ecx, 0x800e
mov dword [esi + 0xd10], ebx
call fcn.0054c250
test eax, eax
jne 0x54bf74
cmp dword [esi + 0x241c], ebx
mov ecx, dword [esi + 4]
je 0x54be40
push 0x3e6
lea edx, [esp + 0x18]
call fcn.00521b40
cmp eax, ebx
je 0x54bf60
jg 0x54be52
cmp eax, 0xfffffffd
jne 0x54bf6a
push 0x2747
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
cmp dword [esi + 0x2398], ebx
mov dword [esi + 0xd04], ebx
jne 0x54bdba
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x54bca4
cmp eax, ebx
je 0x54bdba
cmp dword [esi + 0x41c], ebx
je 0x54bdba
mov ecx, eax
call fcn.0054a5a0
push eax
push 0x5860ec
push 0x5ac5e0
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [0x5a5508]
add esp, 0xc
mov dword [0x59bcec], ebx
mov dword [0x5ae23c], 1
mov ecx, dword [esi]
push edx
mov edx, 0x5ac5e0
call fcn.00503ad0
cmp dword [esi + 0x41c], ebx
je 0x54be0d
mov ecx, dword [esi]
call fcn.00542c90
cmp eax, ebx
je 0x54bde2
cmp dword [eax + 0x6cc], ebx
je 0x54bde2
mov edx, dword [0x5a5504]
mov ecx, dword [esi]
call fcn.00502b10
mov eax, dword [0x5a5504]
push eax
xor edx, edx
mov ecx, 0x5e1
mov dword [0x59bcec], ebx
mov dword [0x5ae23c], 1
call fcn.0041d620
mov ecx, dword [esi]
mov edx, eax
call fcn.00502c40
lea ecx, [esi + 0x444]
mov edx, 0x3e7
call fcn.0041ef30
mov ecx, esi
call fcn.0054a7d0
mov edx, esi
mov ecx, 0x583b74
call fcn.0054a630
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x3ec
ret
push ebx
push 0x3e6
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_recv]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x54bd51
cmp ebp, ebx
jle 0x54bdba
xor eax, eax
cmp ebp, ebx
mov byte [esp + ebp + 0x14], bl
mov dword [esp + 0x10], eax
jle 0x54bce0
jmp 0x54be80
mov al, byte [esp + eax + 0x14]
cmp al, 0xd
je 0x54bf4a
cmp al, 0xa
jne 0x54beca
cmp dword [esi + 0xcf8], ebx
lea edi, [esi + 0x90c]
je 0x54bebb
mov dword [esi + 0xcf8], 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 + 0xcf4], ebx
jmp 0x54bf4a
mov edx, dword [esi + 0xcf4]
mov byte [edx + esi + 0x90c], bl
jmp 0x54bf10
mov ecx, dword [esi + 0xcf4]
mov byte [ecx + esi + 0x90c], al
mov edx, dword [esi + 0xcf4]
inc edx
mov eax, edx
cmp eax, 0x258
mov dword [esi + 0xcf4], edx
jle 0x54bf4a
cmp dword [esi + 0xcf8], ebx
lea edi, [esi + 0x90c]
je 0x54bf03
mov dword [esi + 0xcf4], ebx
jmp 0x54bf3e
mov dword [esi + 0xcf8], 1
mov byte [eax + edi], bl
cmp byte [edi], bl
mov dword [esi + 0xcf4], ebx
je 0x54bf3e
mov ecx, edi
mov edx, esi
call fcn.004bd660
mov ecx, esi
call fcn.004e2760
test eax, eax
je 0x54bca4
cmp dword [esi + 0x41c], ebx
je 0x54bca4
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 0x54be80
jmp 0x54bce0
push 0x2733
jmp 0x54bd4b
push 0x2745
jmp 0x54bd4b
mov dword [esi + 0xd08], ebx
pop ebp
pop edi
mov dword [esi + 0xd04], ebx
pop esi
xor eax, eax
pop ebx
add esp, 0x3ec
ret