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

Disassembly:
push 0xffffffffffffffff
push 0x10261fd8
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.1009ee90
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 0x100726ad
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x1c]
push edx
push 0x8004667e
push eax
call ebp
cmp eax, 0xffffffff
je 0x100726ad
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 0x10071ffc
cmp dword [0x1030ceb0], ebx
je 0x10071ffc
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 0x1030c61c
call fcn.100a65e0
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 0x1007203c
cmp dword [0x1030ceb0], ebx
je 0x1007203c
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 0x1030c61c
call fcn.100a65e0
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.1024cbd1
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x10072699
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.10071e60
push 0xa0
call fcn.1024cbd1
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x10072274
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.10071e60
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 0x10072593
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 0x10072593
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 0x10072376
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x10072376
cmp dword [0x1030ceb0], ebx
je 0x100721c8
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 0x1030c61c
call fcn.100a65e0
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 0x10072210
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x58], ebx
lea edi, [ecx + 8]
mov ecx, edi
call fcn.100a4f10
mov eax, dword [esp + 0x58]
add edi, 4
mov edx, eax
dec eax
test edx, edx
mov dword [esp + 0x58], eax
jne 0x100721e9
mov eax, dword [esp + 0x60]
mov eax, dword [eax]
cmp eax, ebx
mov dword [esp + 0x60], eax
jne 0x100721de
mov eax, dword [esi + 0x68]
cmp eax, ebx
je 0x10072228
mov edi, dword [eax]
push eax
call fcn.1024cbfa
add esp, 4
cmp edi, ebx
mov eax, edi
jne 0x10072217
mov eax, dword [esi + 0x70]
mov dword [esi + 0x74], ebx
cmp eax, ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
je 0x10072249
mov edi, dword [eax]
push eax
call fcn.1024cbfa
add esp, 4
cmp edi, ebx
mov eax, edi
jne 0x10072238
push esi
mov dword [esi + 0x78], ebx
mov dword [esi + 0x70], ebx
call fcn.1024cbfa
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 0x10072317
jmp 0x100722f3
mov edi, dword [esi + 0x68]
cmp edi, ebx
mov dword [esp + 0x60], edi
je 0x100722aa
jmp 0x10072285
mov edi, dword [esp + 0x60]
add edi, 8
xor ebp, ebp
push ebx
mov ecx, edi
call fcn.1001bea0
add edi, 4
mov edx, ebp
dec ebp
test edx, edx
jne 0x1007228a
mov eax, dword [esp + 0x60]
mov eax, dword [eax]
cmp eax, ebx
mov dword [esp + 0x60], eax
jne 0x10072281
mov eax, dword [esi + 0x68]
cmp eax, ebx
je 0x100722c2
mov edi, dword [eax]
push eax
call fcn.1024cbfa
add esp, 4
cmp edi, ebx
mov eax, edi
jne 0x100722b1
mov eax, dword [esi + 0x70]
mov dword [esi + 0x74], ebx
cmp eax, ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
je 0x100722e3
mov edi, dword [eax]
push eax
call fcn.1024cbfa
add esp, 4
cmp edi, ebx
mov eax, edi
jne 0x100722d2
mov dword [esi + 0x78], ebx
mov dword [esi + 0x70], ebx
push esi
jmp 0x100724c7
mov esi, dword [esp + 0x60]
add esi, 8
xor edi, edi
mov ecx, esi
call fcn.100a4f10
add esi, 4
mov edx, edi
dec edi
test edx, edx
jne 0x100722f8
mov eax, dword [esp + 0x60]
mov eax, dword [eax]
cmp eax, ebx
mov dword [esp + 0x60], eax
jne 0x100722ef
mov eax, dword [ebp + 0x68]
cmp eax, ebx
je 0x1007232f
mov esi, dword [eax]
push eax
call fcn.1024cbfa
add esp, 4
cmp esi, ebx
mov eax, esi
jne 0x1007231e
mov eax, dword [ebp + 0x70]
mov dword [ebp + 0x74], ebx
cmp eax, ebx
mov dword [ebp + 0x68], ebx
mov dword [ebp + 0x6c], ebx
je 0x10072350
mov esi, dword [eax]
push eax
call fcn.1024cbfa
add esp, 4
cmp esi, ebx
mov eax, esi
jne 0x1007233f
push ebp
mov dword [ebp + 0x78], ebx
mov dword [ebp + 0x70], ebx
call fcn.1024cbfa
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 0x100726ab
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 0x100723b0
mov eax, dword [edx + edi*4]
test eax, eax
je 0x100723ac
cmp dword [eax + 8], ecx
je 0x100723a8
mov eax, dword [eax]
test eax, eax
jne 0x1007239b
jmp 0x100723ac
test eax, eax
jne 0x100723da
test edx, edx
jne 0x100723bd
mov eax, dword [ebx + 4]
push 1
push eax
mov ecx, ebx
call fcn.100745c0
mov ecx, ebx
call fcn.10074c90
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 0x100724e6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x100724e6
mov eax, dword [0x1030ceb0]
test eax, eax
je 0x10072457
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 0x1030c61c
call fcn.100a65e0
add esp, 0x18
push 0
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edi, dword [ebp + 0x68]
test edi, edi
je 0x10072483
lea esi, [edi + 8]
xor ebx, ebx
mov ecx, esi
call fcn.100a4f10
add esi, 4
mov eax, ebx
dec ebx
test eax, eax
jne 0x1007246c
mov edi, dword [edi]
test edi, edi
jne 0x10072467
mov eax, dword [ebp + 0x68]
test eax, eax
je 0x1007249b
mov esi, dword [eax]
push eax
call fcn.1024cbfa
add esp, 4
mov eax, esi
test esi, esi
jne 0x1007248a
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 0x100724be
mov esi, dword [eax]
push eax
call fcn.1024cbfa
add esp, 4
mov eax, esi
test esi, esi
jne 0x100724ad
xor eax, eax
push ebp
mov dword [ebp + 0x78], eax
mov dword [ebp + 0x70], eax
call fcn.1024cbfa
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 0x100726ab
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 0x10072520
mov eax, dword [ecx + esi*4]
test eax, eax
je 0x1007251c
mov edx, dword [eax + 8]
cmp edx, dword [esp + 0x14]
je 0x10072518
mov eax, dword [eax]
test eax, eax
jne 0x10072507
jmp 0x1007251c
test eax, eax
jne 0x10072568
test ecx, ecx
jne 0x1007254b
shl edi, 2
push edi
call fcn.1024cbd1
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.10074c90
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 0x10072579
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x44], 0xffffffff
call fcn.1009eef0
mov eax, dword [esp + 0x18]
jmp 0x100726c0
mov edi, dword [esi + 0x68]
cmp edi, ebx
mov dword [esp + 0x60], edi
je 0x100725d3
jmp 0x100725a4
mov edi, dword [esp + 0x60]
add edi, 8
mov dword [esp + 0x58], ebx
push ebx
mov ecx, edi
call fcn.1001bea0
mov eax, dword [esp + 0x58]
add edi, 4
mov edx, eax
dec eax
test edx, edx
mov dword [esp + 0x58], eax
jne 0x100725ab
mov eax, dword [esp + 0x60]
mov eax, dword [eax]
cmp eax, ebx
mov dword [esp + 0x60], eax
jne 0x100725a0
mov eax, dword [esi + 0x68]
cmp eax, ebx
je 0x100725eb
mov edi, dword [eax]
push eax
call fcn.1024cbfa
add esp, 4
cmp edi, ebx
mov eax, edi
jne 0x100725da
mov eax, dword [esi + 0x70]
mov dword [esi + 0x74], ebx
cmp eax, ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
je 0x1007260c
mov edi, dword [eax]
push eax
call fcn.1024cbfa
add esp, 4
cmp edi, ebx
mov eax, edi
jne 0x100725fb
push esi
mov dword [esi + 0x78], ebx
mov dword [esi + 0x70], ebx
call fcn.1024cbfa
mov esi, dword [ebp + 0x68]
add esp, 4
cmp esi, ebx
mov dword [esp + 0x60], esi
je 0x10072651
jmp 0x1007262c
mov esi, dword [esp + 0x60]
add esi, 8
xor edi, edi
push ebx
mov ecx, esi
call fcn.1001bea0
add esi, 4
mov ecx, edi
dec edi
test ecx, ecx
jne 0x10072631
mov edx, dword [esp + 0x60]
mov eax, dword [edx]
cmp eax, ebx
mov dword [esp + 0x60], eax
jne 0x10072628
mov eax, dword [ebp + 0x68]
cmp eax, ebx
je 0x10072669
mov esi, dword [eax]
push eax
call fcn.1024cbfa
add esp, 4
cmp esi, ebx
mov eax, esi
jne 0x10072658
mov eax, dword [ebp + 0x70]
mov dword [ebp + 0x74], ebx
cmp eax, ebx
mov dword [ebp + 0x68], ebx
mov dword [ebp + 0x6c], ebx
je 0x1007268a
mov esi, dword [eax]
push eax
call fcn.1024cbfa
add esp, 4
cmp esi, ebx
mov eax, esi
jne 0x10072679
push ebp
mov dword [ebp + 0x78], ebx
mov dword [ebp + 0x70], ebx
call fcn.1024cbfa
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.1009eef0
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