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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5644e7
mov eax, dword fs:[0]
push eax
sub esp, 0xbec
mov eax, dword [0x5d6b10]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0xbf4], ebx
lea ecx, [ebp - 0xbdc]
call fcn.004086d0
cmp byte [ebx + 0xc], 0
mov dword [ebp - 4], 0
jne 0x408f5c
jmp 0x4089f0
lea eax, [ebp - 0xbf8]
mov dword [ebp - 0xbf8], 0x10
push eax
lea eax, [ebp - 0xbec]
push eax
push 0
push 0x5dc
lea eax, [ebp - 0x8bc]
push eax
push dword [0x5de5d4]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov ebx, eax
mov dword [ebp - 0xbf0], ebx
test ebx, ebx
jle 0x408f4c
mov edi, dword [0x5df8d8]
xor esi, esi
test edi, edi
jle 0x408a82
mov ebx, dword [ebp - 0xbe8]
mov edx, 0x5df8e8
lea esp, [esp]
mov ecx, dword [edx]
mov eax, dword [edx - 4]
and eax, ecx
and ecx, ebx
cmp ecx, eax
je 0x408a67
inc esi
add edx, 0xc
cmp esi, edi
jl 0x408a50
jmp 0x408a7c
cmp esi, edi
jge 0x408a7c
lea eax, [esi + esi*2]
cmp dword [eax*4 + 0x5df8e0], 2
je 0x408f4c
mov ebx, dword [ebp - 0xbf0]
cmp ebx, 0x5dc
jae 0x408fdf
mov byte [ebp + ebx - 0x8bc], 0
push dword [ebp - 0x8bc]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
cmp eax, 1
je 0x408ab3
cmp eax, 2
jne 0x408f4c
mov word [ebp - 0xbbc], ax
lea eax, [ebp - 0x178]
push eax
lea eax, [ebp - 0x2e0]
push eax
lea eax, [ebp - 0xa24]
push eax
lea eax, [ebp - 0xb8c]
push eax
lea eax, [ebp - 0x8ba]
push eax
call fcn.00547b40
lea ecx, [ebp - 0x2e0]
add esp, 0x14
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408af0
sub ecx, edx
lea eax, [ebp - 0x2e0]
push ecx
push eax
lea ecx, [ebp - 0xbdc]
call fcn.004036e0
lea ecx, [ebp - 0x178]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408b15
sub ecx, edx
lea eax, [ebp - 0x178]
push ecx
push eax
lea ecx, [ebp - 0xbdc]
call fcn.00402530
lea ecx, [ebp - 0x8ba]
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408b40
sub ecx, edx
lea edi, [ebp - 0x8b9]
add edi, ecx
lea eax, [ebp - 0x8bc]
mov esi, edi
sub esi, eax
cmp esi, ebx
jge 0x408ba8
test edi, edi
jne 0x408b67
xor ecx, ecx
jmp 0x408b79
mov ecx, edi
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408b70
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0xbd4]
call fcn.004036e0
mov ecx, edi
lea edx, [ecx + 1]
jmp 0x408b90
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408b90
sub ecx, edx
lea eax, [ebp - 0x8bc]
inc edi
add edi, ecx
mov esi, edi
sub esi, eax
jmp 0x408bba
push 5
push str.octet
lea ecx, [ebp - 0xbd4]
call fcn.004036e0
mov eax, dword [ebp - 0xbe8]
xorps xmm0, xmm0
mov dword [ebp - 0xbb0], eax
movzx eax, word [ebp - 0xbec]
mov word [ebp - 0xbb4], ax
movzx eax, word [ebp - 0xbea]
mov word [ebp - 0xbb2], ax
movzx eax, word [0x5d5b7a]
mov dword [ebp - 0xbcc], eax
movzx eax, word [0x5d5b7c]
mov dword [ebp - 0xbb8], eax
xor eax, eax
mov dword [ebp - 0xbd0], 0x200
movlpd qword [ebp - 0xbc4], xmm0
mov word [ebp - 0xbba], ax
cmp esi, ebx
jge 0x408da3
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408c27
sub ecx, edx
lea ebx, [ecx + 1]
add ebx, edi
lea ecx, [ebp - 0x8bc]
mov eax, ebx
sub eax, ecx
cmp eax, dword [ebp - 0xbf0]
jge 0x408da3
push edi
mov esi, str.blksize
call fcn.00547570
add esp, 4
lea esp, [esp]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x408c80
test cl, cl
je 0x408c7c
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x408c80
add eax, 2
add esi, 2
test cl, cl
jne 0x408c60
xor eax, eax
jmp 0x408c85
sbb eax, eax
or eax, 1
test eax, eax
jne 0x408cce
push ebx
call fcn.00547b23
add esp, 4
cmp eax, 0xfa00
jbe 0x408cb0
or word [ebp - 0xbba], 1
mov dword [ebp - 0xbd0], 0xfa00
jmp 0x408d86
cmp eax, 0x14
mov ecx, 0x14
cmovb eax, ecx
or word [ebp - 0xbba], 1
mov dword [ebp - 0xbd0], eax
jmp 0x408d86
push edi
mov esi, str.timeout
call fcn.00547570
add esp, 4
lea esp, [esp]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x408d00
test cl, cl
je 0x408cfc
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x408d00
add eax, 2
add esi, 2
test cl, cl
jne 0x408ce0
xor eax, eax
jmp 0x408d05
sbb eax, eax
or eax, 1
test eax, eax
jne 0x408d2f
push ebx
call fcn.00547b23
add esp, 4
mov ecx, 0xff
cmp eax, 0xff
cmova eax, ecx
or word [ebp - 0xbba], 2
mov dword [ebp - 0xbcc], eax
jmp 0x408d86
push edi
mov esi, str.tsize
call fcn.00547570
add esp, 4
lea ecx, [ecx]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x408d60
test cl, cl
je 0x408d5c
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x408d60
add eax, 2
add esi, 2
test cl, cl
jne 0x408d40
xor eax, eax
jmp 0x408d65
sbb eax, eax
or eax, 1
test eax, eax
jne 0x408d86
push ebx
call fcn.00547b0f
add esp, 4
mov dword [ebp - 0xbc4], eax
or word [ebp - 0xbba], 4
mov dword [ebp - 0xbc0], edx
mov ecx, ebx
lea edx, [ecx + 1]
jmp 0x408d90
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408d90
sub ecx, edx
lea edi, [ecx + 1]
add edi, ebx
jmp 0x408c22
push 0x56
lea eax, [ebp - 0xbdc]
push eax
push 0x467
push dword [0x5ebb5c]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jne 0x408f4c
push 0x648
call fcn.0041a33c
add esp, 4
mov dword [ebp - 0xbf0], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x408deb
mov ecx, eax
call fcn.00409110
mov ebx, eax
jmp 0x408ded
xor ebx, ebx
mov byte [ebp - 4], 0
test ebx, ebx
je 0x408f4c
push 0x50
call fcn.0041a33c
add esp, 4
mov dword [ebp - 0xbf0], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x408e1c
mov ecx, eax
call fcn.004086d0
mov esi, eax
jmp 0x408e1e
xor esi, esi
mov byte [ebp - 4], 0
test esi, esi
je 0x408f43
mov eax, dword [ebp - 0xbd0]
lea ecx, [esi + 8]
mov dword [esi + 0xc], eax
lea eax, [ebp - 0xbd4]
push eax
call fcn.00402270
movdqu xmm0, xmmword [ebp - 0xbb4]
push 0x5dee40
movdqu xmmword [esi + 0x28], xmm0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, 0x5df770
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408e62
sub ecx, edx
je 0x408e94
mov al, byte [ecx + 0x5df76f]
cmp al, 0x5c
je 0x408e94
cmp al, 0x2f
je 0x408e94
mov edi, 0x5df770
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x408e81
mov ax, word [0x576d08]
mov word [edi], ax
mov ecx, 0x5df770
lea edi, [esi + 4]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408ea0
sub ecx, edx
push ecx
push 0x5df770
mov ecx, edi
call fcn.004036e0
push 0x5dee40
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
mov ecx, esi
call fcn.00402270
mov eax, dword [ebp - 0xbdc]
mov ecx, esi
push dword [eax - 0xc]
push eax
call fcn.00402530
movzx eax, word [ebp - 0xbbc]
mov word [esi + 0x20], ax
mov eax, dword [ebp - 0xbcc]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0xbc4]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0xbc0]
mov dword [esi + 0x1c], eax
movzx eax, word [ebp - 0xbba]
push 0x78
mov word [esi + 0x22], ax
mov eax, dword [ebp - 0xbb8]
push ebx
mov dword [esi + 0x24], eax
push 0x467
mov dword [ebx + 0x48], esi
push dword [0x5ebb5c]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x5ebb5c]
mov ecx, ebx
mov dword [ebx + 4], eax
mov dword [ebx + 8], 0x466
call fcn.00406900
jmp 0x408f4c
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax + 0x24]
mov eax, dword [ebp - 0xbf4]
cmp byte [eax + 0xc], 0
je 0x4089f0
mov edx, dword [ebp - 0xbd4]
or esi, 0xffffffff
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x408f85
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xbd8]
mov ecx, esi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408fa4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xbdc]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x408fc1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005463d8
mov esp, ebp
pop ebp
ret
call fcn.00547123
int3