Function at 0x1006ffe0
Capabilities:
Receive data
Receive data on socket
Resolve function by parsing pe exports
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x1025fdf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov edi, ecx
push 1
lea ecx, [esp + 0x34]
lea eax, [edi + 0x64]
push eax
call fcn.1009cf30
mov esi, dword [esp + 0x4c]
mov ebp, dword [sym.imp.WS2_32.dll_ioctlsocket]
lea ecx, [esp + 0x1c]
xor ebx, ebx
push ecx
push 0x8004667e
push esi
mov dword [esp + 0x50], ebx
mov dword [esp + 0x28], 1
call ebp
cmp eax, 0xffffffff
je 0x1007074d
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x1c]
push edx
push 0x8004667e
push eax
call ebp
cmp eax, 0xffffffff
je 0x1007074d
mov ebp, dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [esp + 0x13]
push 1
push ecx
push 1
push 6
push esi
mov byte [esp + 0x27], 1
call ebp
cmp eax, 0xffffffff
jne 0x1007009c
cmp dword [0x1030aa70], ebx
je 0x1007009c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
push str.Setsockopt_failed_SOCKET__d___errno__d_
push str.SocketSystem
push 1
push 0x1030a1dc
call fcn.100a4680
add esp, 0x18
mov esi, dword [esp + 0x50]
lea edx, [esp + 0x13]
push 1
push edx
push 1
push 6
push esi
call ebp
cmp eax, 0xffffffff
jne 0x100700dc
cmp dword [0x1030aa70], ebx
je 0x100700dc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
push str.Setsockopt_failed_SOCKET__d___errno__d_
push str.SocketSystem
push 1
push 0x1030a1dc
call fcn.100a4680
add esp, 0x18
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
lea esi, [edi + 4]
push 2
push esi
call ebp
push 2
push esi
mov dword [esp + 0x20], eax
call ebp
push 0xa0
mov dword [esp + 0x18], eax
call fcn.1024ac71
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x10070739
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
push edx
mov edx, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x60]
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x64]
push 1
push edx
push eax
push ecx
push esi
mov ecx, edi
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], 0x1e
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
call fcn.1006ff00
push 0xa0
call fcn.1024ac71
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x10070314
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x68]
push ebx
push ecx
push edx
push eax
push ebp
mov ecx, edi
mov dword [ebp + 0x74], ebx
mov dword [ebp + 0x78], ebx
mov dword [ebp + 0x7c], 0x1e
mov dword [ebp + 0x68], ebx
mov dword [ebp + 0x6c], ebx
mov dword [ebp + 0x70], ebx
call fcn.1006ff00
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + 8]
mov eax, dword [esp + 0x4c]
push ebx
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
je 0x10070633
mov ecx, dword [esp + 0x14]
mov edx, dword [edi + 8]
mov eax, dword [esp + 0x50]
push ebx
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
je 0x10070633
lea eax, [esi + 0x40]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ecx, [esi + 0x20]
push ebx
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x2c]
push edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
mov edx, dword [esi]
push eax
lea ecx, [esi + 0x38]
push 1
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x10070416
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x10070416
cmp dword [0x1030aa70], ebx
je 0x10070268
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [esi]
push eax
push str.CSocketSystem::AddSocket__:_WSARecv_failed__SOKCET__d___errno__d__
push str.SocketSystem
push 1
push 0x1030a1dc
call fcn.100a4680
add esp, 0x18
lea eax, [esi + 0x40]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [esi + 0x68]
cmp eax, ebx
mov dword [esp + 0x60], eax
je 0x100702b0
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x58], ebx
lea edi, [ecx + 8]
mov ecx, edi
call fcn.100a2fb0
mov eax, dword [esp + 0x58]
add edi, 4
mov edx, eax
dec eax
test edx, edx
mov dword [esp + 0x58], eax
jne 0x10070289
mov eax, dword [esp + 0x60]
mov eax, dword [eax]
cmp eax, ebx
mov dword [esp + 0x60], eax
jne 0x1007027e
mov eax, dword [esi + 0x68]
cmp eax, ebx
je 0x100702c8
mov edi, dword [eax]
push eax
call fcn.1024ac9a
add esp, 4
cmp edi, ebx
mov eax, edi
jne 0x100702b7
mov eax, dword [esi + 0x70]
mov dword [esi + 0x74], ebx
cmp eax, ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
je 0x100702e9
mov edi, dword [eax]
push eax
call fcn.1024ac9a
add esp, 4
cmp edi, ebx
mov eax, edi
jne 0x100702d8
push esi
mov dword [esi + 0x78], ebx
mov dword [esi + 0x70], ebx
call fcn.1024ac9a
add esp, 4
lea ecx, [ebp + 0x40]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov esi, dword [ebp + 0x68]
cmp esi, ebx
mov dword [esp + 0x60], esi
je 0x100703b7
jmp 0x10070393
mov edi, dword [esi + 0x68]
cmp edi, ebx
mov dword [esp + 0x60], edi
je 0x1007034a
jmp 0x10070325
mov edi, dword [esp + 0x60]
add edi, 8
xor ebp, ebp
push ebx
mov ecx, edi
call fcn.1001bb00
add edi, 4
mov edx, ebp
dec ebp
test edx, edx
jne 0x1007032a
mov eax, dword [esp + 0x60]
mov eax, dword [eax]
cmp eax, ebx
mov dword [esp + 0x60], eax
jne 0x10070321
mov eax, dword [esi + 0x68]
cmp eax, ebx
je 0x10070362
mov edi, dword [eax]
push eax
call fcn.1024ac9a
add esp, 4
cmp edi, ebx
mov eax, edi
jne 0x10070351
mov eax, dword [esi + 0x70]
mov dword [esi + 0x74], ebx
cmp eax, ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
je 0x10070383
mov edi, dword [eax]
push eax
call fcn.1024ac9a
add esp, 4
cmp edi, ebx
mov eax, edi
jne 0x10070372
mov dword [esi + 0x78], ebx
mov dword [esi + 0x70], ebx
push esi
jmp 0x10070567
mov esi, dword [esp + 0x60]
add esi, 8
xor edi, edi
mov ecx, esi
call fcn.100a2fb0
add esi, 4
mov edx, edi
dec edi
test edx, edx
jne 0x10070398
mov eax, dword [esp + 0x60]
mov eax, dword [eax]
cmp eax, ebx
mov dword [esp + 0x60], eax
jne 0x1007038f
mov eax, dword [ebp + 0x68]
cmp eax, ebx
je 0x100703cf
mov esi, dword [eax]
push eax
call fcn.1024ac9a
add esp, 4
cmp esi, ebx
mov eax, esi
jne 0x100703be
mov eax, dword [ebp + 0x70]
mov dword [ebp + 0x74], ebx
cmp eax, ebx
mov dword [ebp + 0x68], ebx
mov dword [ebp + 0x6c], ebx
je 0x100703f0
mov esi, dword [eax]
push eax
call fcn.1024ac9a
add esp, 4
cmp esi, ebx
mov eax, esi
jne 0x100703df
push ebp
mov dword [ebp + 0x78], ebx
mov dword [ebp + 0x70], ebx
call fcn.1024ac9a
mov ecx, dword [esp + 0x50]
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
add esp, 4
push ecx
call esi
mov edx, dword [esp + 0x50]
push edx
jmp 0x1007074b
mov ecx, dword [esp + 0x18]
lea ebx, [edi + 0x84]
mov eax, ecx
xor edx, edx
mov edi, dword [ebx + 4]
shr eax, 4
div edi
mov edi, edx
mov edx, dword [ebx]
test edx, edx
je 0x10070450
mov eax, dword [edx + edi*4]
test eax, eax
je 0x1007044c
cmp dword [eax + 8], ecx
je 0x10070448
mov eax, dword [eax]
test eax, eax
jne 0x1007043b
jmp 0x1007044c
test eax, eax
jne 0x1007047a
test edx, edx
jne 0x1007045d
mov eax, dword [ebx + 4]
push 1
push eax
mov ecx, ebx
call fcn.10072660
mov ecx, ebx
call fcn.10072d30
mov ecx, dword [esp + 0x18]
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov edx, dword [ebx]
mov ecx, dword [edx + edi*4]
mov dword [eax], ecx
mov edx, dword [ebx]
mov dword [edx + edi*4], eax
lea edi, [ebp + 0x40]
push 1
push edi
mov dword [eax + 0xc], esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
xor eax, eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
push eax
lea eax, [ebp + 0x20]
push eax
lea edx, [esp + 0x34]
push ecx
mov ecx, dword [ebp]
push edx
lea eax, [ebp + 0x38]
push 1
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x10070586
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x10070586
mov eax, dword [0x1030aa70]
test eax, eax
je 0x100704f7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esi]
push eax
push edx
push str.CSocketSystem::AddSocket__:_WSARecv_failed2__SOKCET__d___errno__d__
push str.SocketSystem
push 1
push 0x1030a1dc
call fcn.100a4680
add esp, 0x18
push 0
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edi, dword [ebp + 0x68]
test edi, edi
je 0x10070523
lea esi, [edi + 8]
xor ebx, ebx
mov ecx, esi
call fcn.100a2fb0
add esi, 4
mov eax, ebx
dec ebx
test eax, eax
jne 0x1007050c
mov edi, dword [edi]
test edi, edi
jne 0x10070507
mov eax, dword [ebp + 0x68]
test eax, eax
je 0x1007053b
mov esi, dword [eax]
push eax
call fcn.1024ac9a
add esp, 4
mov eax, esi
test esi, esi
jne 0x1007052a
mov eax, dword [ebp + 0x70]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp + 0x74], ecx
mov dword [ebp + 0x68], ecx
mov dword [ebp + 0x6c], ecx
je 0x1007055e
mov esi, dword [eax]
push eax
call fcn.1024ac9a
add esp, 4
mov eax, esi
test esi, esi
jne 0x1007054d
xor eax, eax
push ebp
mov dword [ebp + 0x78], eax
mov dword [ebp + 0x70], eax
call fcn.1024ac9a
mov ecx, dword [esp + 0x50]
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
add esp, 4
push ecx
call esi
mov edx, dword [esp + 0x50]
push edx
jmp 0x1007074b
mov eax, dword [esp + 0x14]
mov edi, dword [ebx + 4]
shr eax, 4
xor edx, edx
mov ecx, dword [ebx]
div edi
test ecx, ecx
mov dword [esp + 0x50], edi
mov esi, edx
je 0x100705c0
mov eax, dword [ecx + esi*4]
test eax, eax
je 0x100705bc
mov edx, dword [eax + 8]
cmp edx, dword [esp + 0x14]
je 0x100705b8
mov eax, dword [eax]
test eax, eax
jne 0x100705a7
jmp 0x100705bc
test eax, eax
jne 0x10070608
test ecx, ecx
jne 0x100705eb
shl edi, 2
push edi
call fcn.1024ac71
mov edx, eax
mov ecx, edi
mov dword [ebx], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x50]
mov dword [ebx + 4], eax
mov ecx, ebx
call fcn.10072d30
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], esi
mov dword [eax + 8], ecx
mov edx, dword [ebx]
mov ecx, dword [edx + esi*4]
mov dword [eax], ecx
mov edx, dword [ebx]
mov dword [edx + esi*4], eax
mov dword [eax + 0xc], ebp
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x10070619
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x44], 0xffffffff
call fcn.1009cf90
mov eax, dword [esp + 0x18]
jmp 0x10070760
mov edi, dword [esi + 0x68]
cmp edi, ebx
mov dword [esp + 0x60], edi
je 0x10070673
jmp 0x10070644
mov edi, dword [esp + 0x60]
add edi, 8
mov dword [esp + 0x58], ebx
push ebx
mov ecx, edi
call fcn.1001bb00
mov eax, dword [esp + 0x58]
add edi, 4
mov edx, eax
dec eax
test edx, edx
mov dword [esp + 0x58], eax
jne 0x1007064b
mov eax, dword [esp + 0x60]
mov eax, dword [eax]
cmp eax, ebx
mov dword [esp + 0x60], eax
jne 0x10070640
mov eax, dword [esi + 0x68]
cmp eax, ebx
je 0x1007068b
mov edi, dword [eax]
push eax
call fcn.1024ac9a
add esp, 4
cmp edi, ebx
mov eax, edi
jne 0x1007067a
mov eax, dword [esi + 0x70]
mov dword [esi + 0x74], ebx
cmp eax, ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
je 0x100706ac
mov edi, dword [eax]
push eax
call fcn.1024ac9a
add esp, 4
cmp edi, ebx
mov eax, edi
jne 0x1007069b
push esi
mov dword [esi + 0x78], ebx
mov dword [esi + 0x70], ebx
call fcn.1024ac9a
mov esi, dword [ebp + 0x68]
add esp, 4
cmp esi, ebx
mov dword [esp + 0x60], esi
je 0x100706f1
jmp 0x100706cc
mov esi, dword [esp + 0x60]
add esi, 8
xor edi, edi
push ebx
mov ecx, esi
call fcn.1001bb00
add esi, 4
mov ecx, edi
dec edi
test ecx, ecx
jne 0x100706d1
mov edx, dword [esp + 0x60]
mov eax, dword [edx]
cmp eax, ebx
mov dword [esp + 0x60], eax
jne 0x100706c8
mov eax, dword [ebp + 0x68]
cmp eax, ebx
je 0x10070709
mov esi, dword [eax]
push eax
call fcn.1024ac9a
add esp, 4
cmp esi, ebx
mov eax, esi
jne 0x100706f8
mov eax, dword [ebp + 0x70]
mov dword [ebp + 0x74], ebx
cmp eax, ebx
mov dword [ebp + 0x68], ebx
mov dword [ebp + 0x6c], ebx
je 0x1007072a
mov esi, dword [eax]
push eax
call fcn.1024ac9a
add esp, 4
cmp esi, ebx
mov eax, esi
jne 0x10070719
push ebp
mov dword [ebp + 0x78], ebx
mov dword [ebp + 0x70], ebx
call fcn.1024ac9a
add esp, 4
mov eax, dword [esp + 0x4c]
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push eax
call esi
mov ecx, dword [esp + 0x50]
push ecx
call esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x44], 0xffffffff
call fcn.1009cf90
xor eax, eax
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 0x24