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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x5234
call fcn.005d9990
push ebx
mov ebx, dword [0x69362c]
push esi
push edi
xor edi, edi
cmp ebx, edi
je 0x551dc6
mov eax, dword [ebp + 8]
cmp dword [ebx + 0x544], eax
je 0x5519af
mov ebx, dword [ebx + 0x54c]
cmp ebx, edi
jne 0x551996
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0x4e8], 2
jne 0x551dc6
mov eax, dword [ebp + 0xc]
shr eax, 0x10
cmp ax, di
je 0x551a23
mov esi, dword [ebx + 0x4e4]
movzx eax, ax
mov dword [ebx + 0x52c], eax
cmp dword [0x68758c], edi
je 0x551a14
cmp dword [ebx + 0x538], edi
push 3
je 0x5519f2
push 0x3b
push ebx
push str.SOCKCLOSE
jmp 0x551a0c
cmp dword [ebx + 0x4f4], edi
je 0x551a04
push 0x45
push ebx
push str.UDPREAD
jmp 0x551a0c
push 0x3e
push ebx
push str.SOCKREAD
call fcn.0054fc90
add esp, 0x10
push esi
push ebx
call fcn.0054fb50
add esp, 8
jmp 0x551db9
push edi
call fcn.005daa26
mov ecx, dword [ebx + 0x544]
push 1
push 1
push ecx
push 0x8038
mov dword [ebx + 0x528], eax
call fcn.00599d90
add esp, 0x14
test eax, eax
jne 0x551dc6
cmp dword [ebx + 0x540], edi
jne 0x551dc6
jmp 0x551a60
mov ecx, dword [ebx + 0x530]
inc ecx
mov eax, ecx
cmp eax, 0x14
mov dword [ebx + 0x530], ecx
jl 0x551a99
mov edx, dword [ebx + 0x544]
push edi
push 1
push edx
push 0x8038
mov dword [ebx + 0x530], edi
call fcn.00599d90
add esp, 0x10
test eax, eax
jne 0x551dc6
mov edx, dword [ebx + 0x4d4]
mov eax, 0x1001
sub eax, edx
cmp eax, 1
jle 0x551c50
mov ecx, dword [ebx + 0x4f4]
dec eax
cmp ecx, edi
je 0x551b18
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [ebx + 0x544]
lea edx, [esp + 0x1c]
push edx
push edi
push eax
lea eax, [esp + 0x2140]
push eax
push ecx
mov dword [esp + 0x2c], 0x10
call dword [sym.imp.WSOCK32.dll_recvfrom]
mov esi, eax
cmp dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
jle 0x551b78
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.WSOCK32.dll_htonl]
mov dword [ebx + 0x504], eax
mov eax, dword [esp + 0x1a]
push eax
call dword [sym.imp.WSOCK32.dll_ntohs]
mov word [ebx + 0x508], ax
jmp 0x551b78
cmp dword [ebx + 0x538], edi
je 0x551b59
mov edx, dword [ebx + 0x544]
push eax
lea ecx, [esp + 0x2134]
push ecx
push edx
call fcn.00557210
add esp, 0xc
cmp eax, edi
mov dword [esp + 0x10], eax
je 0x551d53
jg 0x551b74
cmp eax, 0xfffffffd
jne 0x551d5a
push 0x2747
jmp 0x551d5f
mov ecx, dword [ebx + 0x544]
push edi
push eax
lea eax, [esp + 0x2138]
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_recv]
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x10]
cmp esi, 0xffffffff
je 0x551d65
cmp esi, edi
jg 0x551b99
cmp dword [ebx + 0x4f4], edi
je 0x551d7f
cmp esi, edi
jl 0x551d7f
cmp dword [0x68758c], edi
mov eax, dword [ebx + 0x4d0]
jne 0x551bc5
cmp eax, edi
je 0x551bb4
push eax
call fcn.005d9fa3
add esp, 4
mov dword [ebx + 0x4d0], edi
mov dword [ebx + 0x4d4], edi
jmp 0x551d40
cmp eax, edi
je 0x551bed
mov edx, dword [ebx + 0x4d4]
lea ecx, [edx + esi + 0xa]
push ecx
push eax
call fcn.005dbd64
add esp, 8
cmp eax, edi
je 0x551d40
mov dword [ebx + 0x4d0], eax
jmp 0x551c07
lea edx, [esi + 0xa]
push edx
call fcn.005d9f91
add esp, 4
cmp eax, edi
mov dword [ebx + 0x4d0], eax
je 0x551d40
mov edi, dword [ebx + 0x4d4]
add edi, dword [ebx + 0x4d0]
mov ecx, esi
mov eax, ecx
shr ecx, 2
lea esi, [esp + 0x2130]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x4d4]
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 0x4d0]
add eax, ecx
mov dword [ebx + 0x4d4], eax
mov byte [eax + edx], 0
xor edi, edi
jmp 0x551c50
cmp dword [ebx + 0x4f4], edi
mov esi, dword [ebx + 0x4e4]
mov dword [ebx + 0x4ec], edi
mov ecx, 0x842
mov dword [ebx + 0x4f0], edi
je 0x551c9c
xor eax, eax
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0x548]
lea eax, [esp + 0x28]
push eax
push 0
push 0
push 0x45
push str.UDPREAD
push 0
push 0
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], esi
push ecx
jmp 0x551ccf
xor eax, eax
lea edx, [esp + 0x3138]
push edx
push eax
push eax
push 0x3e
push str.SOCKREAD
push eax
lea edi, [esp + 0x3150]
rep stosd dword es:[edi], eax
push eax
mov eax, dword [ebx + 0x548]
mov dword [esp + 0x3160], ebx
mov dword [esp + 0x3164], esi
push eax
call fcn.0053a710
mov eax, dword [0x69362c]
add esp, 0x20
test eax, eax
je 0x551dc6
cmp ebx, eax
jne 0x551cf0
cmp esi, dword [eax + 0x4e4]
je 0x551d01
mov eax, dword [eax + 0x54c]
test eax, eax
jne 0x551ce4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x4ec]
test eax, eax
je 0x551d17
xor edi, edi
cmp eax, 2
jne 0x551d40
jmp 0x551c50
mov eax, dword [ebx + 0x4d0]
test eax, eax
je 0x551d2a
push eax
call fcn.005d9fa3
add esp, 4
mov dword [ebx + 0x4d0], 0
mov dword [ebx + 0x4d4], 0
xor edi, edi
cmp dword [ebx + 0x540], edi
je 0x551a60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x2733
jmp 0x551d5f
push 0x2745
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x551dc6
mov dword [ebx + 0x52c], eax
mov eax, 3
jmp 0x551d81
xor eax, eax
cmp dword [ebx + 0x534], edi
jne 0x551dbd
mov dword [ebx + 0x534], 1
cmp dword [0x68758c], edi
je 0x551dbd
mov esi, dword [ebx + 0x4e4]
push eax
push 0x3b
push ebx
push str.SOCKCLOSE
call fcn.0054fc90
push esi
push ebx
call fcn.0054fb50
add esp, 0x18
test eax, eax
je 0x551dc6
push ebx
call fcn.0054fa70
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret