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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43696b
mov eax, dword fs:[0]
push eax
sub esp, 0x508
mov eax, dword [0x45906c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4e0], ecx
mov ecx, dword [ebp - 0x4e0]
call fcn.00406bb0
mov dword [ebp - 0x500], eax
cmp dword [ebp + 0x1c], 0
je 0x406470
mov ecx, dword [ebp + 0x1c]
call fcn.00407020
cmp dword [ebp + 0x20], 0
je 0x40647e
mov ecx, dword [ebp + 0x20]
call fcn.00406d30
push 0x400
push 0
lea eax, [ebp - 0x490]
push eax
call fcn.00417ec0
add esp, 0xc
push 0x80
push 0
lea ecx, [ebp - 0x90]
push ecx
call fcn.00417ec0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x4dc], dx
mov eax, 1
test eax, eax
je 0x406884
push 0
push 0x64
push 0
mov ecx, dword [ebp - 0x4e0]
add ecx, 8
push ecx
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp eax, 0x102
je 0x40685a
lea edx, [ebp - 0x4d4]
push edx
mov eax, dword [ebp - 0x4e0]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x4e0]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
mov ecx, dword [ebp - 0x4d4]
and ecx, 1
je 0x40685a
mov ecx, dword [ebp - 0x4e0]
call fcn.00406bb0
mov dword [ebp - 0x510], eax
mov dword [ebp - 0x508], 0x10
lea edx, [ebp - 0x508]
push edx
lea eax, [ebp + 8]
push eax
push 0
push 0x400
lea ecx, [ebp - 0x490]
push ecx
mov edx, dword [ebp - 0x4e0]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
je 0x40685a
lea ecx, [ebp - 0x490]
mov dword [ebp - 0x4f0], ecx
xor edx, edx
mov word [ebp - 0x4e4], dx
xor eax, eax
mov word [ebp - 0x4e8], ax
mov ecx, dword [ebp - 0x4f0]
movzx edx, word [ecx]
mov eax, dword [ebp - 0x4e0]
movzx ecx, word [eax + 0xc]
cmp edx, ecx
jne 0x40685a
mov edx, dword [ebp - 0x4f0]
movzx eax, word [edx + 2]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
and ecx, 0xfb7f
cmp ecx, 0x8100
jne 0x40685a
mov edx, dword [ebp - 0x4f0]
movzx eax, word [edx + 4]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [ebp - 0x4e4], ax
movzx ecx, word [ebp - 0x4e4]
test ecx, ecx
jl 0x40685a
mov edx, dword [ebp - 0x4f0]
movzx eax, word [edx + 6]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [ebp - 0x4e8], ax
movzx ecx, word [ebp - 0x4e8]
test ecx, ecx
jle 0x40685a
lea edx, [ebp - 0x484]
mov dword [ebp - 0x4d8], edx
mov dword [ebp - 0x4f8], 0
jmp 0x406634
mov eax, dword [ebp - 0x4f8]
add eax, 1
mov dword [ebp - 0x4f8], eax
movzx ecx, word [ebp - 0x4e4]
cmp dword [ebp - 0x4f8], ecx
je 0x40668e
push 0
push 0x80
lea edx, [ebp - 0x90]
push edx
lea eax, [ebp - 0x4dc]
push eax
mov ecx, dword [ebp - 0x4d8]
push ecx
mov ecx, dword [ebp - 0x4e0]
call fcn.00406a30
test eax, eax
jne 0x406675
xor eax, eax
jmp 0x406889
movzx edx, word [ebp - 0x4dc]
mov eax, dword [ebp - 0x4d8]
lea ecx, [eax + edx + 4]
mov dword [ebp - 0x4d8], ecx
jmp 0x406625
mov dword [ebp - 0x4fc], 0
jmp 0x4066a9
mov edx, dword [ebp - 0x4fc]
add edx, 1
mov dword [ebp - 0x4fc], edx
movzx eax, word [ebp - 0x4e8]
cmp dword [ebp - 0x4fc], eax
je 0x406841
lea ecx, [ebp - 0x490]
push ecx
push 0x80
lea edx, [ebp - 0x90]
push edx
lea eax, [ebp - 0x4dc]
push eax
mov ecx, dword [ebp - 0x4d8]
push ecx
mov ecx, dword [ebp - 0x4e0]
call fcn.00406a30
test eax, eax
jne 0x4066f3
xor eax, eax
jmp 0x406889
movzx edx, word [ebp - 0x4dc]
add edx, dword [ebp - 0x4d8]
mov dword [ebp - 0x4d8], edx
mov eax, dword [ebp - 0x4d8]
movzx ecx, word [eax]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [ebp - 0x4ec], ax
mov edx, dword [ebp - 0x4d8]
movzx eax, word [edx + 2]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [ebp - 0x504], ax
mov ecx, dword [ebp - 0x4d8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp - 0x514], eax
mov eax, dword [ebp - 0x4d8]
movzx ecx, word [eax + 8]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [ebp - 0x4f4], ax
mov edx, dword [ebp - 0x4d8]
add edx, 0xa
mov dword [ebp - 0x4d8], edx
movzx eax, word [ebp - 0x4ec]
cmp eax, 1
jne 0x4067a6
cmp dword [ebp + 0x1c], 0
je 0x4067a6
mov ecx, dword [ebp - 0x4d8]
mov edx, dword [ecx]
mov dword [ebp - 0x50c], edx
lea eax, [ebp - 0x50c]
push eax
mov ecx, dword [ebp + 0x1c]
call fcn.004070a0
jmp 0x406829
movzx ecx, word [ebp - 0x4ec]
cmp ecx, 5
jne 0x406829
cmp dword [ebp + 0x20], 0
je 0x406829
lea edx, [ebp - 0x490]
push edx
push 0x80
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x4dc]
push ecx
mov edx, dword [ebp - 0x4d8]
push edx
mov ecx, dword [ebp - 0x4e0]
call fcn.00406a30
test eax, eax
jne 0x4067ef
xor eax, eax
jmp 0x406889
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x4a8]
call fcn.00403620
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x4a8]
push ecx
mov ecx, dword [ebp + 0x20]
call fcn.00406db0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4a8]
call fcn.00403550
movzx edx, word [ebp - 0x4f4]
add edx, dword [ebp - 0x4d8]
mov dword [ebp - 0x4d8], edx
jmp 0x40669a
cmp dword [ebp + 0x24], 0
je 0x406858
mov eax, dword [ebp - 0x510]
sub eax, dword [ebp - 0x500]
mov ecx, dword [ebp + 0x24]
mov dword [ecx], eax
jmp 0x406884
mov ecx, dword [ebp - 0x4e0]
call fcn.00406bb0
sub eax, dword [ebp - 0x500]
cmp eax, dword [ebp + 0x18]
jbe 0x40687f
mov edx, dword [ebp + 0x18]
add edx, 1
mov eax, dword [ebp + 0x24]
mov dword [eax], edx
xor eax, eax
jmp 0x406889
jmp 0x4064b3
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004151bc
mov esp, ebp
pop ebp
ret 0x20