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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x609a00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
xor esi, esi
mov eax, dword [ebx + 0xb4]
push edi
cmp eax, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], esi
je 0x54befa
mov eax, dword [eax + 0x10]
jmp 0x54bf03
mov eax, dword [ebx + 0xb0]
mov eax, dword [eax + 0x24]
cmp eax, 2
jne 0x54c118
cmp dword [ebx + 0x8c], 0x10
je 0x54c118
mov eax, dword [ebx + 0x3430]
cmp eax, esi
je 0x54bf39
mov ecx, dword [ebx + 0x3434]
push ecx
push 0xa
push eax
call fcn.005c5b30
add esp, 0xc
test eax, eax
jne 0x54bfad
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx]
cmp eax, 0x2733
je 0x54bf50
mov cl, byte [ebx + 0xc3]
test cl, cl
je 0x54bfa5
cmp esi, 5
jge 0x54bfa5
mov eax, dword [ebx + 0x31d8]
push 0x3c
push eax
mov ecx, ebx
call fcn.00535cd0
mov ecx, dword [ebx + 0x31e0]
test ecx, ecx
je 0x54bf94
mov edx, dword [ecx + 0x38]
test edx, edx
je 0x54bf94
add ecx, 0x48
call fcn.00532f30
mov eax, 0x7540
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x54c107
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx]
inc esi
jmp 0x54bf3f
test eax, eax
jne 0x54c107
mov eax, dword [ebx + 0x3434]
test eax, eax
jne 0x54bfcd
mov eax, 0x7533
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
mov eax, dword [ebx + 0x3430]
push 0xa
push eax
call fcn.005c5b30
add esp, 0xc
test eax, eax
jne 0x54bff9
mov eax, 0x2733
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x3224]
mov edx, dword [ebx + 0x3220]
push ecx
push 0
push edx
call fcn.005c5b30
mov ecx, dword [ebx + 0x3220]
mov edx, dword [ebx + 0x3430]
add esp, 0xc
sub eax, ecx
mov esi, eax
mov al, byte [edx]
mov dword [ebp - 0x1c], edx
mov edi, 1
mov byte [ecx + esi], al
mov eax, dword [ebx + 0x3220]
cmp byte [eax + esi], 0xa
je 0x54c0d8
inc esi
mov byte [eax + esi], 0
mov ecx, dword [ebx + 0x3224]
lea eax, [ecx - 1]
cmp esi, eax
jl 0x54c093
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov ecx, dword [ebx + 0x3220]
mov dword [ebx + 0x3224], eax
inc eax
push eax
push ecx
call fcn.005c6740
add esp, 8
mov dword [ebx + 0x3220], eax
test eax, eax
jne 0x54c090
mov eax, 0x753b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x1c]
cmp edi, dword [ebx + 0x3434]
jne 0x54c0c6
mov edx, dword [ebx + 0x3220]
mov dword [ebx + 0x3434], 0
mov eax, 0x7533
mov byte [edx + esi + 1], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x3220]
mov cl, byte [edx + edi]
inc edi
mov byte [eax + esi], cl
jmp 0x54c02e
mov edx, dword [ebx + 0x3220]
mov byte [edx + esi + 1], 0
mov eax, dword [ebx + 0x3434]
sub eax, edi
mov dword [ebx + 0x3434], eax
mov ebx, dword [ebx + 0x3430]
push eax
lea eax, [ebx + edi]
push eax
push ebx
call fcn.005c5be0
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x3224]
mov edx, dword [ebx + 0x3220]
push ecx
push esi
push edx
call fcn.005c5b30
mov ecx, dword [ebx + 0x3220]
add esp, 0xc
sub eax, ecx
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x1c], eax
mov edx, dword [ebx + 0x384]
test edx, edx
jle 0x54c276
mov ecx, dword [ebx + 0x380]
mov eax, 0x200
sub eax, ecx
mov esi, edx
cmp edx, eax
jl 0x54c161
mov esi, eax
push esi
lea eax, [ecx + ebx + 0x180]
push 0xa
push eax
call fcn.005c5b30
add esp, 0xc
test eax, eax
je 0x54c18e
mov edx, dword [ebx + 0x380]
sub eax, ebx
sub eax, edx
sub eax, 0x17f
mov esi, eax
mov dword [ebp - 0x18], esi
jmp 0x54c191
mov dword [ebp - 0x18], esi
mov eax, dword [ebx + 0x3224]
mov edx, dword [ebp - 0x1c]
mov ecx, eax
sub ecx, edx
dec ecx
cmp esi, ecx
jl 0x54c1de
mov edx, dword [ebx + 0x3220]
lea eax, [eax + esi + 1]
mov dword [ebx + 0x3224], eax
inc eax
push eax
push edx
call fcn.005c6740
add esp, 8
mov dword [ebx + 0x3220], eax
test eax, eax
jne 0x54c1de
mov eax, 0x753b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x380]
mov edi, dword [ebx + 0x3220]
mov ecx, esi
lea esi, [ebx + eax + 0x180]
mov eax, dword [ebp - 0x1c]
mov edx, ecx
add edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebx + 0x380]
mov edx, dword [ebx + 0x384]
add eax, ecx
add esi, ecx
sub edx, ecx
mov ecx, dword [ebx + 0x3220]
mov dword [ebx + 0x380], esi
mov dword [ebx + 0x384], edx
mov dword [ebp - 0x1c], eax
mov byte [ecx + eax], 0
mov edx, dword [ebx + 0x3220]
cmp byte [edx + eax - 1], 0xa
je 0x54c105
mov al, byte [ebp - 0x11]
test al, al
je 0x54c276
mov eax, dword [ebx + 0x31d8]
push 0
push eax
mov ecx, ebx
call fcn.00535cd0
test eax, eax
je 0x54c276
mov eax, 0x7533
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x31d8]
lea edi, [ebx + 0x180]
push 0
push 0x200
push edi
push ecx
call sub.WS2_32.dll_recv
mov esi, eax
push str.recv_next_line
push esi
mov ecx, ebx
call fcn.005349f0
cmp eax, 0x2733
jne 0x54c2b7
mov edx, dword [ebx + 0x31d8]
push 0
push 0x200
push edi
push edx
jmp 0x54c28b
test eax, eax
jne 0x54c107
mov dword [ebx + 0x380], eax
mov dword [ebx + 0x384], esi
mov byte [ebp - 0x11], 1
jmp 0x54c13e