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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2034
call fcn.005cd640
push ebx
mov ebx, dword [0x642eec]
push esi
push edi
xor edi, edi
cmp ebx, edi
je 0x549266
mov eax, dword [ebp + 8]
cmp dword [ebx + 0x200], eax
je 0x548e4f
mov ebx, dword [ebx + 0x208]
cmp ebx, edi
jne 0x548e36
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0x1b0], 2
jne 0x549266
mov eax, dword [ebp + 0xc]
shr eax, 0x10
cmp ax, di
je 0x548ec3
mov esi, dword [ebx + 0x1ac]
movzx eax, ax
mov dword [ebx + 0x1e8], eax
cmp dword [0x63fb90], edi
je 0x548eb4
cmp dword [ebx + 0x1f4], edi
push 3
je 0x548e92
push 0x3b
push ebx
push str.SOCKCLOSE
jmp 0x548eac
cmp dword [ebx + 0x1bc], edi
je 0x548ea4
push 0x45
push ebx
push str.UDPREAD
jmp 0x548eac
push 0x3e
push ebx
push str.SOCKREAD
call fcn.00547140
add esp, 0x10
push esi
push ebx
call fcn.00547000
add esp, 8
jmp 0x549259
push edi
call fcn.005cce76
mov ecx, dword [ebx + 0x200]
push 1
push 1
push ecx
push 0x8038
mov dword [ebx + 0x1e4], eax
call fcn.0058d320
add esp, 0x14
test eax, eax
jne 0x549266
cmp dword [ebx + 0x1fc], edi
jne 0x549266
jmp 0x548f00
mov ecx, dword [ebx + 0x1ec]
inc ecx
mov eax, ecx
cmp eax, 0x14
mov dword [ebx + 0x1ec], ecx
jl 0x548f39
mov edx, dword [ebx + 0x200]
push edi
push 1
push edx
push 0x8038
mov dword [ebx + 0x1ec], edi
call fcn.0058d320
add esp, 0x10
test eax, eax
jne 0x549266
mov edx, dword [ebx + 0x19c]
mov eax, 0x1001
sub eax, edx
cmp eax, 1
jle 0x5490f0
mov ecx, dword [ebx + 0x1bc]
dec eax
cmp ecx, edi
je 0x548fb8
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [ebx + 0x200]
lea edx, [esp + 0x1c]
push edx
push edi
push eax
lea eax, [esp + 0x1048]
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 0x549018
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.WSOCK32.dll_htonl]
mov dword [ebx + 0x1cc], eax
mov eax, dword [esp + 0x1a]
push eax
call dword [sym.imp.WSOCK32.dll_ntohs]
mov word [ebx + 0x1d0], ax
jmp 0x549018
cmp dword [ebx + 0x1f4], edi
je 0x548ff9
mov edx, dword [ebx + 0x200]
push eax
lea ecx, [esp + 0x103c]
push ecx
push edx
call fcn.0054e5f0
add esp, 0xc
cmp eax, edi
mov dword [esp + 0x10], eax
je 0x5491f3
jg 0x549014
cmp eax, 0xfffffffd
jne 0x5491fa
push 0x2747
jmp 0x5491ff
mov ecx, dword [ebx + 0x200]
push edi
push eax
lea eax, [esp + 0x1040]
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 0x549205
cmp esi, edi
jg 0x549039
cmp dword [ebx + 0x1bc], edi
je 0x54921f
cmp esi, edi
jl 0x54921f
cmp dword [0x63fb90], edi
mov eax, dword [ebx + 0x198]
jne 0x549065
cmp eax, edi
je 0x549054
push eax
call fcn.005cc393
add esp, 4
mov dword [ebx + 0x198], edi
mov dword [ebx + 0x19c], edi
jmp 0x5491e0
cmp eax, edi
je 0x54908d
mov edx, dword [ebx + 0x19c]
lea ecx, [edx + esi + 0xa]
push ecx
push eax
call fcn.005ce1f4
add esp, 8
cmp eax, edi
je 0x5491e0
mov dword [ebx + 0x198], eax
jmp 0x5490a7
lea edx, [esi + 0xa]
push edx
call fcn.005cc381
add esp, 4
cmp eax, edi
mov dword [ebx + 0x198], eax
je 0x5491e0
mov edi, dword [ebx + 0x19c]
add edi, dword [ebx + 0x198]
mov ecx, esi
mov eax, ecx
shr ecx, 2
lea esi, [esp + 0x1038]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x19c]
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 0x198]
add eax, ecx
mov dword [ebx + 0x19c], eax
mov byte [eax + edx], 0
xor edi, edi
jmp 0x5490f0
cmp dword [ebx + 0x1bc], edi
mov esi, dword [ebx + 0x1ac]
mov dword [ebx + 0x1b4], edi
mov ecx, 0x202
mov dword [ebx + 0x1b8], edi
je 0x549148
xor eax, eax
lea edi, [esp + 0x830]
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0x204]
lea eax, [esp + 0x830]
push eax
push 0
push 0
push 0x45
push str.UDPREAD
push 0
push 0
mov dword [esp + 0x858], ebx
mov dword [esp + 0x85c], esi
push ecx
jmp 0x54916f
xor eax, eax
lea edx, [esp + 0x28]
push edx
push eax
push eax
push 0x3e
push str.SOCKREAD
push eax
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
push eax
mov eax, dword [ebx + 0x204]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], esi
push eax
call fcn.00532e60
mov eax, dword [0x642eec]
add esp, 0x20
test eax, eax
je 0x549266
cmp ebx, eax
jne 0x549190
cmp esi, dword [eax + 0x1ac]
je 0x5491a1
mov eax, dword [eax + 0x208]
test eax, eax
jne 0x549184
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x1b4]
test eax, eax
je 0x5491b7
xor edi, edi
cmp eax, 2
jne 0x5491e0
jmp 0x5490f0
mov eax, dword [ebx + 0x198]
test eax, eax
je 0x5491ca
push eax
call fcn.005cc393
add esp, 4
mov dword [ebx + 0x198], 0
mov dword [ebx + 0x19c], 0
xor edi, edi
cmp dword [ebx + 0x1fc], edi
je 0x548f00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x2733
jmp 0x5491ff
push 0x2745
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x549266
mov dword [ebx + 0x1e8], eax
mov eax, 3
jmp 0x549221
xor eax, eax
cmp dword [ebx + 0x1f0], edi
jne 0x54925d
mov dword [ebx + 0x1f0], 1
cmp dword [0x63fb90], edi
je 0x54925d
mov esi, dword [ebx + 0x1ac]
push eax
push 0x3b
push ebx
push str.SOCKCLOSE
call fcn.00547140
push esi
push ebx
call fcn.00547000
add esp, 0x18
test eax, eax
je 0x549266
push ebx
call fcn.00546f20
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret