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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc14
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00412649
mov ebx, eax
test ebx, ebx
jne 0x528607
xor eax, eax
jmp 0x528980
cmp dword [ebx + 0x41c], 0
jne 0x528617
xor eax, eax
jmp 0x528980
cmp si, 2
jne 0x528637
cmp dword [ebx + 0x908], 0
je 0x528630
push ebx
push 0
push 0
call fcn.00527eaf
xor eax, eax
jmp 0x528980
push 2
call fcn.00412ac8
mov eax, esi
shr eax, 0x10
and ax, 0xffff
test ax, ax
je 0x528656
movzx edx, ax
mov esi, edx
jmp 0x52873d
call fcn.004127a8
test eax, eax
je 0x528670
mov dword [ebx + 0x914], 1
xor eax, eax
jmp 0x528980
push 1
push 1
push dword [ebx + 4]
push 0x800e
call fcn.00528a48
test eax, eax
je 0x52869c
xor edx, edx
mov dword [ebx + 0x914], edx
xor ecx, ecx
mov dword [ebx + 0x910], ecx
xor eax, eax
jmp 0x528980
xor edx, edx
mov dword [ebx + 0x914], edx
mov dword [ebx + 0x910], 1
inc dword [ebx + 0x91c]
cmp dword [ebx + 0x91c], 0x14
jl 0x5286f1
xor ecx, ecx
mov dword [ebx + 0x91c], ecx
push 0
push 1
push dword [ebx + 4]
push 0x800e
call fcn.00528a48
test eax, eax
je 0x5286f1
xor eax, eax
mov dword [ebx + 0x914], eax
xor edx, edx
mov dword [ebx + 0x910], edx
xor eax, eax
jmp 0x528980
push 0
push 0x3e6
lea edx, [ebp - 0x3ec]
push edx
push dword [ebx + 4]
call sub.WSOCK32.dll_recv
mov edi, eax
cmp edi, 0xffffffff
jne 0x528794
xor eax, eax
mov dword [ebx + 0x910], eax
cmp dword [ebx + 0x1da8], 0
jne 0x528930
call sub.WSOCK32.dll_WSAGetLastError
mov esi, eax
cmp esi, 0x2733
jne 0x52873d
xor eax, eax
jmp 0x528980
test esi, esi
je 0x528930
cmp dword [ebx + 0x41c], 0
je 0x528930
push esi
call fcn.0052898c
push eax
push str.__s
push 0x585ce2
call sub.USER32.dll_wsprintfA
add esp, 0xc
xor edx, edx
mov dword [0x56cd18], edx
mov dword [0x56cd28], 1
push dword [0x5618ec]
push 0x585ce2
push dword [ebx]
call fcn.004f0245
jmp 0x528930
test edi, edi
jle 0x528930
mov byte [ebp + edi - 0x3ec], 0
xor ecx, ecx
mov dword [ebp - 4], ecx
lea esi, [ebp - 0x3ec]
cmp edi, dword [ebp - 4]
jle 0x5286ae
mov al, byte [esi]
cmp al, 0xd
je 0x52891e
cmp al, 0xa
jne 0x528866
cmp dword [ebx + 0x904], 0
je 0x5287fe
xor edx, edx
mov dword [ebx + 0x904], edx
push 0x3e7
push 0
lea ecx, [ebx + 0x518]
push ecx
call fcn.0054e10c
add esp, 0xc
xor eax, eax
mov dword [ebx + 0x900], eax
jmp 0x52891e
mov edx, dword [ebx + 0x900]
mov byte [ebx + edx + 0x518], 0
xor ecx, ecx
mov dword [ebx + 0x900], ecx
cmp byte [ebx + 0x518], 0
je 0x52884b
push ebx
lea eax, [ebx + 0x518]
push eax
call fcn.004bc3df
push ebx
call fcn.0041261f
test eax, eax
jne 0x52883b
xor eax, eax
jmp 0x528980
cmp dword [ebx + 0x41c], 0
jne 0x52884b
xor eax, eax
jmp 0x528980
push 0x3e7
push 0
lea edx, [ebx + 0x518]
push edx
call fcn.0054e10c
add esp, 0xc
jmp 0x52891e
mov ecx, dword [ebx + 0x900]
mov al, byte [esi]
mov byte [ebx + ecx + 0x518], al
inc dword [ebx + 0x900]
cmp dword [ebx + 0x900], 0x258
jle 0x52891e
cmp dword [ebx + 0x904], 0
je 0x5288b4
xor edx, edx
mov dword [ebx + 0x900], edx
push 0x3e7
push 0
lea ecx, [ebx + 0x518]
push ecx
call fcn.0054e10c
add esp, 0xc
jmp 0x52891e
mov dword [ebx + 0x904], 1
mov eax, dword [ebx + 0x900]
mov byte [ebx + eax + 0x518], 0
xor edx, edx
mov dword [ebx + 0x900], edx
cmp byte [ebx + 0x518], 0
je 0x528908
push ebx
lea ecx, [ebx + 0x518]
push ecx
call fcn.004bc3df
push ebx
call fcn.0041261f
test eax, eax
jne 0x5288fb
xor eax, eax
jmp 0x528980
cmp dword [ebx + 0x41c], 0
jne 0x528908
xor eax, eax
jmp 0x528980
push 0x3e7
push 0
lea edx, [ebx + 0x518]
push edx
call fcn.0054e10c
add esp, 0xc
inc dword [ebp - 4]
inc esi
cmp edi, dword [ebp - 4]
jg 0x5287b8
jmp 0x5286ae
cmp dword [ebx + 0x41c], 0
je 0x52896a
push dword [0x5618e8]
push dword [ebx]
call fcn.004ef455
mov dword [0x56cd28], 1
push dword [0x5618e8]
push 0
push 0x5e4
call fcn.0042c771
push eax
push dword [ebx]
call fcn.004ef55b
push ebx
call fcn.00527096
push ebx
push 0x56f7de
call fcn.00526f48
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8