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

Disassembly:
mov eax, 0x105f8
call fcn.00405bc0
push ebx
push ebp
push esi
push edi
mov ecx, 0x4001
xor eax, eax
lea edi, [esp + 0x604]
xor ebx, ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x34]
push eax
mov eax, dword [esp + 0x10610]
push ecx
push ebx
lea edx, [esp + 0x610]
push 0x10004
push edx
push eax
mov dword [esp + 0x28], 0x10
call sub.WS2_32.dll_recvfrom
mov ebp, eax
cmp ebp, ebx
je 0x405aa0
cmp ebp, 0xffffffff
je 0x405aa0
mov cl, byte [esp + 0x604]
mov al, 0x79
cmp cl, al
jne 0x40574a
cmp byte [esp + 0x605], al
jne 0x40574a
cmp word [esp + 0x606], 0x7af
jne 0x40574a
cmp byte [esp + 0x608], bl
je 0x40574a
lea edi, [esp + 0x608]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x284]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x144]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x288]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0x18]
lea edx, [esp + 0x48]
dec ecx
push eax
push edx
lea eax, [esp + 0x290]
push ecx
push eax
call fcn.004054e0
add esp, 0x14
dec eax
je 0x40573b
dec eax
je 0x405717
dec eax
jne 0x40574a
lea ecx, [esp + 0x44]
push ecx
call sub.WS2_32.dll_inet_addr
lea edx, [esp + 0x14]
mov dword [0x5c4940], eax
push edx
call fcn.00405ccc
add esp, 4
mov word [0x41e8da], ax
jmp 0x40574a
lea eax, [esp + 0x44]
push eax
call sub.WS2_32.dll_inet_addr
lea ecx, [esp + 0x14]
mov dword [0x5c4940], eax
push ecx
call fcn.00405ccc
add esp, 4
mov word [0x41e8da], ax
jmp 0x40574a
lea edx, [esp + 0x44]
push edx
call sub.WS2_32.dll_inet_addr
mov dword [0x5c4940], eax
mov eax, dword [0x40e058]
cmp eax, ebx
mov eax, dword [0x5c4994]
je 0x40576d
mov ecx, dword [esp + 0x605]
and ecx, 0xff
cmp ecx, eax
jne case.default.0x405826
cmp ebp, 4
jne 0x40580d
mov cl, byte [esp + 0x604]
cmp cl, bl
je 0x4057b3
cmp cl, 7
je 0x4057fc
cmp cl, 0x6e
jne case.default.0x405826
mov edx, dword [esp + 0x606]
pop edi
and edx, 0xffff
pop esi
mov dword [0x5c4990], ebx
pop ebp
mov dword [0x41e8f8], edx
pop ebx
add esp, 0x105f8
ret
mov ecx, dword [0x5c4998]
cmp ecx, ebx
je 0x4057fc
add ax, word [0x41e8da]
mov edx, dword [0x5c4940]
mov word [esp + 0x606], cx
mov ecx, dword [0x50d090]
push ecx
push eax
push edx
lea eax, [esp + 0x610]
push 4
push eax
mov byte [esp + 0x618], 7
mov byte [esp + 0x619], bl
call fcn.00401160
add esp, 0x14
pop edi
pop esi
mov dword [0x5c4990], ebx
pop ebp
pop ebx
add esp, 0x105f8
ret
mov ecx, dword [esp + 0x604]
and ecx, 0xff
lea eax, [ecx - 0x12]
cmp eax, 4
ja case.default.0x405826
jmp dword [eax*4 + 0x405ab4]
cmp ebp, 0xa4
jne case.default.0x405826
cmp dword [0x5c495c], ebx
jne 0x405850
mov edx, dword [0x50d0a0]
push ebx
push ebx
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, 0x28
lea esi, [esp + 0x608]
lea edi, [esp + 0x144]
mov dword [0x5c495c], 1
rep movsd dword es:[edi], dword [esi]
xor edx, edx
lea eax, [esp + 0x608]
lea esi, [esp + 0x608]
movsx cx, byte [esp + edx + 0x144]
mov word [eax], cx
mov cx, word [esi]
shl cx, 8
mov word [eax], cx
mov word [eax + 2], cx
inc edx
add esi, 2
add eax, 4
cmp edx, 0xa0
jl 0x40587f
mov eax, dword [esp + 0x606]
push ebx
lea edx, [esp + 0x60c]
push 0x280
and eax, 0xffff
push edx
push eax
call fcn.00401f30
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x105f8
ret
cmp ebp, 0x144
jne case.default.0x405826
cmp dword [0x5c495c], ebx
jne 0x4058f9
mov ecx, dword [0x50d0a0]
push ebx
push ebx
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, 0x50
lea esi, [esp + 0x608]
lea edi, [esp + 0x144]
mov dword [0x5c495c], 1
rep movsd dword es:[edi], dword [esi]
xor eax, eax
lea ecx, [esp + 0x608]
movsx dx, byte [esp + eax + 0x144]
shl edx, 8
mov word [ecx], dx
inc eax
add ecx, 2
cmp eax, 0x140
jl 0x405921
mov ecx, dword [esp + 0x606]
push ebx
lea eax, [esp + 0x60c]
push 0x280
and ecx, 0xffff
push eax
push ecx
call fcn.00401f30
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x105f8
ret
cmp ebp, 0x18
jne case.default.0x405826
mov esi, str.BELL
lea eax, [esp + 0x608]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4059a3
cmp cl, bl
je 0x40599f
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4059a3
add eax, 2
add esi, 2
cmp cl, bl
jne 0x40597f
xor eax, eax
jmp 0x4059a8
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne case.default.0x405826
pop edi
pop esi
pop ebp
mov dword [0x5c496c], 1
pop ebx
add esp, 0x105f8
ret
cmp ebp, 0x284
jne case.default.0x405826
cmp dword [0x5c495c], ebx
jne 0x4059e7
mov eax, dword [0x50d0a0]
push ebx
push ebx
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [esp + 0x606]
push ebx
lea ecx, [esp + 0x60c]
push 0x280
and edx, 0xffff
push ecx
push edx
mov dword [0x5c495c], 1
call fcn.00401f30
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x105f8
ret
cmp ebp, 0x144
jne case.default.0x405826
cmp dword [0x5c495c], ebx
jne 0x405a3e
mov eax, dword [0x50d0a0]
push ebx
push ebx
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov dword [0x5c495c], 1
xor eax, eax
lea ecx, [esp + 0x384]
xor edx, edx
add ecx, 2
mov dl, byte [esp + eax + 0x608]
inc eax
cmp eax, 0x140
mov dx, word [edx*2 + 0x40e07c]
mov word [ecx - 2], dx
jl 0x405a51
mov ecx, dword [esp + 0x606]
push ebx
lea eax, [esp + 0x388]
push 0x280
and ecx, 0xffff
push eax
push ecx
call fcn.00401f30
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x105f8
ret
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x105f8
ret