Function at 0x100017b0
Capabilities:
Receive data
Receive data on socket
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x4e8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x38], esi
call fcn.10001ea0
mov edi, dword [esp + 0x510]
mov dword [esp + 0x34], eax
test edi, edi
je 0x100017f8
mov edx, dword [edi + 8]
mov ecx, dword [edi + 4]
mov eax, edx
cmp eax, edx
je 0x100017ee
mov ebx, dword [eax]
add eax, 4
mov dword [ecx], ebx
add ecx, 4
cmp eax, edx
jne 0x100017e0
mov eax, dword [edi + 8]
mov dword [edi + 8], ecx
mov dword [esp + 0x3c], eax
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0xf9]
mov byte [esp + 0xf8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x79]
mov byte [esp + 0x78], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [esp + 0x18], 0
lea ebx, [esi + 8]
push 0
push 0xbb8
push 0
push ebx
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp eax, 0x102
je 0x100018f2
mov edx, dword [ebx]
mov eax, dword [esi + 4]
lea ecx, [esp + 0x4c]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test byte [esp + 0x4c], 1
je 0x100018f2
mov ecx, esi
call fcn.10001ea0
lea ecx, [esp + 0x44]
lea edx, [esp + 0x4fc]
push ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x40], eax
push edx
push 0
lea eax, [esp + 0x104]
push 0x400
push eax
push ecx
mov dword [esp + 0x5c], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
je 0x100018f2
mov dx, word [esp + 0xf8]
cmp dx, word [esi + 0xc]
jne 0x100018f2
mov eax, dword [esp + 0xfa]
mov ebp, dword [sym.imp.WS2_32.dll_ntohs]
push eax
call ebp
and eax, 0xfb7f
cmp eax, 0x8100
jne 0x100018f2
mov ecx, dword [esp + 0xfc]
push ecx
call ebp
mov edx, dword [esp + 0xfe]
mov edi, eax
push edx
call ebp
mov ebp, eax
test bp, bp
ja 0x10001915
mov ecx, esi
call fcn.10001ea0
mov edi, dword [esp + 0x34]
mov ecx, eax
mov eax, dword [esp + 0x50c]
sub ecx, edi
cmp ecx, eax
ja 0x10001c46
jmp 0x10001833
xor esi, esi
and edi, 0xffff
lea ebx, [esp + 0x104]
je 0x10001962
mov ecx, dword [esp + 0x38]
push 0
lea edx, [esp + 0x7c]
push 0x80
lea eax, [esp + 0x20]
push edx
push eax
push ebx
call fcn.10001d50
test eax, eax
je 0x10001c50
mov ecx, dword [esp + 0x18]
and ecx, 0xffff
inc esi
cmp esi, edi
lea edx, [ebx + ecx + 4]
mov dword [esp + 0x1c], edx
mov ebx, edx
jne 0x10001926
and ebp, 0xffff
mov dword [esp + 0x30], 0
mov dword [esp + 0x48], ebp
je 0x10001c1d
mov esi, dword [esp + 0x514]
lea eax, [esp + 0xf8]
lea ecx, [esp + 0x78]
push eax
push 0x80
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x44]
push edx
push ebx
call fcn.10001d50
test eax, eax
je 0x10001c50
mov eax, dword [esp + 0x18]
mov ebp, dword [sym.imp.WS2_32.dll_ntohs]
and eax, 0xffff
add ebx, eax
mov cx, word [ebx]
push ecx
call ebp
mov dx, word [ebx + 2]
mov edi, eax
push edx
call ebp
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov cx, word [ebx + 8]
push ecx
call ebp
mov ebp, eax
add ebx, 0xa
cmp di, 1
mov dword [esp + 0x10], ebp
mov dword [esp + 0x1c], ebx
jne 0x10001a18
mov ecx, dword [esp + 0x510]
test ecx, ecx
je 0x10001c00
mov edx, dword [ebx]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], edx
mov edx, dword [ecx + 8]
push eax
push 1
push edx
call fcn.100034c0
jmp 0x10001c00
cmp di, 0x1c
jne 0x10001c00
mov eax, ebx
mov ecx, dword [eax]
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x24], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 0xc]
mov edx, dword [eax + 0xc]
mov eax, dword [esi + 8]
sub ecx, eax
mov dword [esp + 0x2c], edx
sar ecx, 4
cmp ecx, 1
mov edi, eax
jae 0x10001b1d
mov edx, dword [esi + 4]
test edx, edx
je 0x10001a68
mov ecx, eax
sub ecx, edx
sar ecx, 4
cmp ecx, 1
ja 0x10001a6d
mov ecx, 1
test edx, edx
jne 0x10001a75
xor eax, eax
jmp 0x10001a7a
sub eax, edx
sar eax, 4
add eax, ecx
test eax, eax
mov dword [esp + 0x40], eax
jge 0x10001a86
xor eax, eax
shl eax, 4
push eax
call fcn.10005220
mov ebp, dword [esi + 4]
add esp, 4
cmp ebp, edi
mov dword [esp + 0x14], eax
mov ebx, eax
je 0x10001ab3
push ebp
push ebx
call fcn.10003800
add ebp, 0x10
add esp, 8
add ebx, 0x10
cmp ebp, edi
jne 0x10001a9f
lea edx, [esp + 0x20]
mov ecx, esi
push edx
push 1
push ebx
call fcn.100037a0
mov eax, dword [esi + 8]
add ebx, 0x10
push ebx
push eax
push edi
mov ecx, esi
call fcn.10003750
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push ecx
push edx
mov ecx, esi
call fcn.100034b0
mov eax, dword [esi + 4]
push eax
call fcn.10005209
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x18]
shl eax, 4
add eax, edi
add esp, 4
mov ecx, esi
mov dword [esi + 0xc], eax
call fcn.10003730
mov ebp, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
inc eax
mov dword [esi + 4], edi
shl eax, 4
add eax, edi
mov dword [esi + 8], eax
jmp 0x10001c00
mov ecx, eax
sub ecx, edi
sar ecx, 4
cmp ecx, 1
jae 0x10001b86
lea ecx, [edi + 0x10]
push ecx
push eax
push edi
mov ecx, esi
call fcn.10003750
mov eax, dword [esi + 8]
lea edx, [esp + 0x20]
mov ecx, eax
push edx
sub ecx, edi
mov edx, 1
sar ecx, 4
sub edx, ecx
mov ecx, esi
push edx
push eax
call fcn.100037a0
mov eax, dword [esi + 8]
cmp edi, eax
je 0x10001bfc
mov edx, dword [esp + 0x20]
mov ecx, edi
add edi, 0x10
mov dword [ecx], edx
mov edx, dword [esp + 0x24]
cmp edi, eax
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x28]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x2c]
mov dword [ecx + 0xc], edx
jne 0x10001b60
jmp 0x10001bfc
lea ecx, [eax - 0x10]
push eax
push eax
mov dword [esp + 0x1c], ecx
push ecx
mov ecx, esi
call fcn.10003750
mov ecx, dword [esi + 8]
lea eax, [ecx - 0x10]
cmp edi, eax
je 0x10001bd1
jmp 0x10001ba7
mov ecx, dword [esp + 0x14]
sub eax, 0x10
sub ecx, 0x10
mov edx, eax
mov dword [esp + 0x14], ecx
cmp eax, edi
mov ebp, dword [edx]
mov dword [ecx], ebp
mov ebp, dword [edx + 4]
mov dword [ecx + 4], ebp
mov ebp, dword [edx + 8]
mov dword [ecx + 8], ebp
mov edx, dword [edx + 0xc]
mov dword [ecx + 0xc], edx
jne 0x10001ba3
mov ebp, dword [esp + 0x10]
lea eax, [edi + 0x10]
cmp edi, eax
je 0x10001bfc
mov edx, dword [esp + 0x20]
mov ecx, edi
add edi, 0x10
mov dword [ecx], edx
mov edx, dword [esp + 0x24]
cmp edi, eax
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x28]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x2c]
mov dword [ecx + 0xc], edx
jne 0x10001bd8
add dword [esi + 8], 0x10
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x48]
and ebp, 0xffff
add ebx, ebp
inc eax
cmp eax, ecx
mov dword [esp + 0x30], eax
jne 0x10001981
mov ecx, dword [esp + 0x518]
test ecx, ecx
je 0x10001c34
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
sub eax, edx
mov dword [ecx], eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x4e8
ret 0x20
mov ecx, dword [esp + 0x518]
inc eax
mov dword [ecx], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4e8
ret 0x20