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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c24ab
mov eax, dword fs:[0]
push eax
sub esp, 0x520
mov eax, dword [0x100f7084]
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.1002af40
mov dword [ebp - 0x510], eax
cmp dword [ebp + 0x1c], 0
je 0x1002b120
mov ecx, dword [ebp + 0x1c]
call fcn.1006b710
cmp dword [ebp + 0x20], 0
je 0x1002b12e
mov ecx, dword [ebp + 0x20]
call fcn.1000cc90
mov byte [ebp - 0x490], 0
push 0x3ff
push 0
lea eax, [ebp - 0x48f]
push eax
call fcn.1009ee30
add esp, 0xc
mov byte [ebp - 0x90], 0
push 0x7f
push 0
lea ecx, [ebp - 0x8f]
push ecx
call fcn.1009ee30
add esp, 0xc
xor edx, edx
mov word [ebp - 0x4dc], dx
mov eax, 1
test eax, eax
je 0x1002b600
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 0x1002b5d6
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 0x1002b5d6
mov ecx, dword [ebp - 0x4e0]
call fcn.1002af40
mov dword [ebp - 0x528], eax
mov dword [ebp - 0x51c], 0x10
lea edx, [ebp - 0x51c]
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 0x1002b5d6
lea ecx, [ebp - 0x490]
mov dword [ebp - 0x4f4], ecx
xor edx, edx
mov word [ebp - 0x4e8], dx
xor eax, eax
mov word [ebp - 0x4ec], ax
mov ecx, dword [ebp - 0x4f4]
movzx edx, word [ecx + 2]
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
and eax, 0xfb7f
mov word [ebp - 0x514], ax
mov ecx, dword [ebp - 0x4f4]
movzx edx, word [ecx]
mov eax, dword [ebp - 0x4e0]
movzx ecx, word [eax + 0xc]
cmp edx, ecx
jne 0x1002b5d6
mov edx, dword [ebp - 0x4f4]
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 0x1002b5d6
mov edx, dword [ebp - 0x4f4]
movzx eax, word [edx + 4]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [ebp - 0x4e8], ax
movzx ecx, word [ebp - 0x4e8]
test ecx, ecx
jl 0x1002b5d6
mov edx, dword [ebp - 0x4f4]
movzx eax, word [edx + 6]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [ebp - 0x4ec], ax
movzx ecx, word [ebp - 0x4ec]
test ecx, ecx
jle 0x1002b5d6
lea edx, [ebp - 0x484]
mov dword [ebp - 0x4d8], edx
mov dword [ebp - 0x504], 0
jmp 0x1002b30f
mov eax, dword [ebp - 0x504]
add eax, 1
mov dword [ebp - 0x504], eax
movzx ecx, word [ebp - 0x4e8]
cmp dword [ebp - 0x504], ecx
je 0x1002b40a
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.1002ac20
test eax, eax
jne 0x1002b354
xor eax, eax
jmp 0x1002b605
lea edx, [ebp - 0x90]
mov dword [ebp - 0x4fc], edx
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x4f8], eax
mov ecx, dword [ebp - 0x4f8]
mov dl, byte [ecx]
mov byte [ebp - 0x4e1], dl
mov eax, dword [ebp - 0x4fc]
cmp dl, byte [eax]
jne 0x1002b3c7
cmp byte [ebp - 0x4e1], 0
je 0x1002b3bb
mov ecx, dword [ebp - 0x4f8]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x4e2], dl
mov eax, dword [ebp - 0x4fc]
cmp dl, byte [eax + 1]
jne 0x1002b3c7
add dword [ebp - 0x4f8], 2
add dword [ebp - 0x4fc], 2
cmp byte [ebp - 0x4e2], 0
jne 0x1002b369
mov dword [ebp - 0x50c], 0
jmp 0x1002b3d2
sbb ecx, ecx
or ecx, 1
mov dword [ebp - 0x50c], ecx
mov edx, dword [ebp - 0x50c]
mov dword [ebp - 0x520], edx
cmp dword [ebp - 0x520], 0
je 0x1002b3ee
xor eax, eax
jmp 0x1002b605
movzx eax, word [ebp - 0x4dc]
mov ecx, dword [ebp - 0x4d8]
lea edx, [ecx + eax + 4]
mov dword [ebp - 0x4d8], edx
jmp 0x1002b300
mov dword [ebp - 0x508], 0
jmp 0x1002b425
mov eax, dword [ebp - 0x508]
add eax, 1
mov dword [ebp - 0x508], eax
movzx ecx, word [ebp - 0x4ec]
cmp dword [ebp - 0x508], ecx
je 0x1002b5bd
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.1002ac20
test eax, eax
jne 0x1002b46f
xor eax, eax
jmp 0x1002b605
movzx eax, word [ebp - 0x4dc]
add eax, dword [ebp - 0x4d8]
mov dword [ebp - 0x4d8], eax
mov ecx, dword [ebp - 0x4d8]
movzx edx, word [ecx]
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [ebp - 0x4f0], ax
mov eax, dword [ebp - 0x4d8]
movzx ecx, word [eax + 2]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [ebp - 0x518], ax
mov edx, dword [ebp - 0x4d8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp - 0x52c], eax
mov ecx, dword [ebp - 0x4d8]
movzx edx, word [ecx + 8]
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [ebp - 0x500], ax
mov eax, dword [ebp - 0x4d8]
add eax, 0xa
mov dword [ebp - 0x4d8], eax
movzx ecx, word [ebp - 0x4f0]
cmp ecx, 1
jne 0x1002b522
cmp dword [ebp + 0x1c], 0
je 0x1002b522
mov edx, dword [ebp - 0x4d8]
mov eax, dword [edx]
mov dword [ebp - 0x524], eax
lea ecx, [ebp - 0x524]
push ecx
mov ecx, dword [ebp + 0x1c]
call fcn.1003bff0
jmp 0x1002b5a5
movzx edx, word [ebp - 0x4f0]
cmp edx, 5
jne 0x1002b5a5
cmp dword [ebp + 0x20], 0
je 0x1002b5a5
lea eax, [ebp - 0x490]
push eax
push 0x80
lea ecx, [ebp - 0x90]
push ecx
lea edx, [ebp - 0x4dc]
push edx
mov eax, dword [ebp - 0x4d8]
push eax
mov ecx, dword [ebp - 0x4e0]
call fcn.1002ac20
test eax, eax
jne 0x1002b56b
xor eax, eax
jmp 0x1002b605
lea ecx, [ebp - 0x90]
push ecx
lea ecx, [ebp - 0x4a8]
call fcn.10005de0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x4a8]
push edx
mov ecx, dword [ebp + 0x20]
call fcn.1000cdc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4a8]
call fcn.10005f30
movzx eax, word [ebp - 0x500]
add eax, dword [ebp - 0x4d8]
mov dword [ebp - 0x4d8], eax
jmp 0x1002b416
cmp dword [ebp + 0x24], 0
je 0x1002b5d4
mov ecx, dword [ebp - 0x528]
sub ecx, dword [ebp - 0x510]
mov edx, dword [ebp + 0x24]
mov dword [edx], ecx
jmp 0x1002b600
mov ecx, dword [ebp - 0x4e0]
call fcn.1002af40
sub eax, dword [ebp - 0x510]
cmp eax, dword [ebp + 0x18]
jbe 0x1002b5fb
mov eax, dword [ebp + 0x18]
add eax, 1
mov ecx, dword [ebp + 0x24]
mov dword [ecx], eax
xor eax, eax
jmp 0x1002b605
jmp 0x1002b16e
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.10086b0f
mov esp, ebp
pop ebp
ret 0x24