Function at 0x10070780
Capabilities:
Access peb ldr_data
Get number of processors
Resolve function by parsing pe exports
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x1025fe28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push ebp
push esi
mov dword [esp + 0xc], ecx
push edi
add ecx, 0x64
push 1
push ecx
lea ecx, [esp + 0x24]
call fcn.1009cf30
xor esi, esi
mov dword [esp + 0x2c], 0x11
mov dword [esp + 0x48], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], 0xa
push 0x4e1c
mov byte [esp + 0x4c], 1
call fcn.1024ac71
mov edi, eax
mov ecx, 0x1387
xor eax, eax
mov dword [esp + 0x2c], edi
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x5c]
add esp, 4
cmp eax, esi
mov dword [esp + 0x2c], 0x1387
je 0x100709b8
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x50]
lea eax, [esp + 0x18]
push eax
push esi
lea ecx, [edi + 0x84]
call fcn.10072ae0
test eax, eax
je 0x10070853
mov ebp, dword [eax + 0xc]
mov eax, dword [ebp + 0x74]
test eax, eax
je 0x100708ec
mov ecx, dword [ebp + 0x64]
test ecx, ecx
je 0x1007089c
cmp eax, 1
jne 0x1007089c
push esi
lea ecx, [esp + 0x2c]
call fcn.10072b20
mov byte [eax], 0
jmp 0x100708ec
mov eax, dword [0x1030aa70]
test eax, eax
je 0x10070876
push esi
push str.SendSocket:_Can_not_find_socket__completekey__d_
push str.SocketSystem
push 1
push 0x1030a1dc
call fcn.100a4680
add esp, 0x14
lea ecx, [esp + 0x28]
mov byte [esp + 0x48], 0
call fcn.10072c00
lea ecx, [esp + 0x1c]
mov dword [esp + 0x48], 0xffffffff
call fcn.1009cf90
xor eax, eax
jmp 0x10070d72
mov esi, dword [ebp + 0x6c]
add esi, 8
mov ecx, esi
call fcn.100a3050
cmp eax, dword [edi]
jae 0x100708ec
mov ecx, esi
call fcn.100a3050
mov ecx, dword [edi]
sub ecx, eax
mov eax, dword [esp + 0x58]
cmp eax, ecx
jae 0x100708c4
mov edi, eax
jmp 0x100708cf
mov ecx, esi
call fcn.100a3050
mov edi, dword [edi]
sub edi, eax
mov ebx, dword [esp + 0x54]
push edi
push ebx
mov ecx, esi
call fcn.100a33b0
mov eax, dword [esp + 0x58]
add ebx, edi
sub eax, edi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x58]
test eax, eax
jbe 0x100709b8
mov edx, dword [esp + 0x10]
add ebp, 0x68
lea edi, [edx + 0xc]
lea ecx, [esp + 0x14]
call fcn.100a2e50
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 2
mov eax, dword [esi]
push eax
push 0
call fcn.100a3060
mov eax, dword [esi]
mov ebx, dword [esp + 0x58]
cmp ebx, eax
jb 0x1007092e
mov ebx, eax
mov ecx, dword [esp + 0x54]
push ebx
push ecx
lea ecx, [esp + 0x1c]
call fcn.100a3820
mov edx, dword [ebp + 4]
push 0
push edx
mov ecx, ebp
call fcn.100727a0
mov esi, eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esi + 8]
call fcn.100a2fe0
mov eax, dword [ebp + 4]
test eax, eax
je 0x10070964
mov dword [eax], esi
jmp 0x10070967
mov dword [ebp], esi
mov dword [ebp + 4], esi
mov ecx, dword [edi + 4]
push 0
push ecx
mov ecx, edi
call fcn.100728e0
mov edx, dword [esp + 0x50]
mov dword [eax + 8], edx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x10070989
mov dword [ecx], eax
jmp 0x1007098b
mov dword [edi], eax
mov edx, dword [esp + 0x54]
mov esi, dword [esp + 0x58]
add edx, ebx
sub esi, ebx
lea ecx, [esp + 0x14]
mov dword [edi + 4], eax
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], esi
mov byte [esp + 0x48], 1
call fcn.100a2fb0
test esi, esi
ja 0x10070902
mov eax, dword [esp + 0x10]
xor edi, edi
add eax, 0xc
mov ecx, dword [eax]
cmp ecx, edi
je 0x10070d11
mov esi, dword [esp + 0x10]
mov eax, 0x19000000
xor edx, edx
mov ebp, dword [ecx]
div dword [esi]
mov edx, dword [esi + 0x24]
mov ebx, dword [ecx + 8]
mov dword [esp + 0x50], ebp
mov dword [esp + 0x18], ebx
cmp edx, eax
jae 0x10070ce9
mov edi, ebx
xor edx, edx
shr edi, 4
mov eax, edi
div dword [esi + 0x88]
mov esi, dword [esi + 0x84]
test esi, esi
je 0x10070a1b
mov eax, dword [esi + edx*4]
test eax, eax
je 0x10070a1b
cmp dword [eax + 8], ebx
je 0x10070a2f
mov eax, dword [eax]
test eax, eax
jne 0x10070a10
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0xc]
lea esi, [edx + 0xc]
cmp ecx, eax
jne 0x10070a5a
mov eax, dword [ecx]
mov dword [esi], eax
jmp 0x10070a61
test eax, eax
je 0x10070a1b
mov esi, dword [eax + 0xc]
mov eax, edi
xor edx, edx
div dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x10070abc
mov eax, dword [eax + edx*4]
test eax, eax
je 0x10070abc
cmp dword [eax + 8], ebx
je 0x10070ab1
mov eax, dword [eax]
test eax, eax
jne 0x10070a4d
jmp 0x10070abc
mov edx, dword [ecx + 4]
mov eax, dword [ecx]
mov dword [edx], eax
cmp ecx, dword [esi + 4]
jne 0x10070a6e
mov edx, dword [ecx + 4]
mov dword [esi + 4], edx
jmp 0x10070a76
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
cmp eax, edx
jge 0x10070a91
mov edx, dword [esi + 8]
mov dword [ecx], edx
mov eax, dword [esi + 0x10]
inc eax
mov dword [esi + 8], ecx
mov dword [esi + 0x10], eax
jmp 0x10070a9a
push ecx
call fcn.1024ac9a
add esp, 4
mov eax, dword [esi + 0xc]
dec eax
mov dword [esi + 0xc], eax
jne 0x10070aaa
mov ecx, esi
call fcn.10072880
mov ecx, ebp
jmp 0x10070cdd
test eax, eax
je 0x10070abc
mov ecx, ebp
jmp 0x10070cdd
mov edx, dword [esi + 0x64]
lea eax, [esi + 0x64]
test edx, edx
mov dword [esp + 0x54], eax
je 0x10070b2b
lea ecx, [esp + 0x58]
push ecx
push ebx
lea ecx, [esp + 0x30]
call fcn.10072c60
test eax, eax
jne 0x10070b20
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x10070af5
mov edx, dword [esp + 0x2c]
push 1
push edx
lea ecx, [esp + 0x30]
call fcn.100726d0
lea ecx, [esp + 0x28]
call fcn.10072d90
mov ecx, dword [esp + 0x58]
mov dword [eax + 8], ebx
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x58]
mov edx, dword [edx + ecx*4]
mov dword [eax], edx
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x58]
mov dword [ecx + edx*4], eax
mov byte [eax + 0xc], 0
mov ecx, ebp
jmp 0x10070cdd
mov eax, dword [esp + 0x10]
lea edi, [eax + 0xc]
mov eax, dword [eax + 0xc]
cmp ecx, eax
jne 0x10070b3f
mov edx, dword [ecx]
mov dword [edi], edx
jmp 0x10070b46
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
mov dword [eax], edx
cmp ecx, dword [edi + 4]
jne 0x10070b53
mov eax, dword [ecx + 4]
mov dword [edi + 4], eax
jmp 0x10070b5b
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov edx, dword [edi + 0x10]
mov eax, dword [edi + 0x14]
cmp edx, eax
jge 0x10070b76
mov eax, dword [edi + 8]
mov dword [ecx], eax
mov eax, dword [edi + 0x10]
inc eax
mov dword [edi + 8], ecx
mov dword [edi + 0x10], eax
jmp 0x10070b7f
push ecx
call fcn.1024ac9a
add esp, 4
mov eax, dword [edi + 0xc]
dec eax
mov dword [edi + 0xc], eax
jne 0x10070b8f
mov ecx, edi
call fcn.10072880
cmp dword [esi + 0x74], 1
jge 0x10070b9c
mov ecx, ebp
jmp 0x10070cdd
lea ebp, [esi + 0x44]
xor ecx, ecx
mov edx, ebp
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov edi, dword [esi + 0x68]
add edi, 8
mov ecx, edi
call fcn.100a3750
mov ecx, edi
mov dword [esi + 0x60], eax
lea ebx, [esi + 0x5c]
call fcn.100a3050
mov dword [ebx], eax
mov eax, dword [esp + 0x10]
push 1
mov ecx, dword [eax + 0x24]
inc ecx
mov dword [eax + 0x24], ecx
mov eax, dword [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
push ebp
lea ecx, [esp + 0x1c]
push 0
mov dword [esp + 0x20], 0
mov edx, dword [esi]
push ecx
push 1
push ebx
push edx
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x10070cd7
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebp
cmp eax, 0x3e5
je 0x10070cd7
mov eax, dword [0x1030aa70]
xor edi, edi
cmp eax, edi
je 0x10070c48
call ebp
push eax
mov eax, dword [esi]
push eax
push str.CSocketSystem::SendSocket__:_WSASend_failed__SOCKET__d___errno__d__
push str.SocketSystem
push 1
push 0x1030a1dc
call fcn.100a4680
add esp, 0x18
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x24]
dec ecx
mov dword [eax + 0x24], ecx
mov dword [esi + 0x60], edi
mov dword [ebx], edi
mov ebp, dword [esi + 0x68]
cmp ebp, edi
je 0x10070c7e
lea edi, [ebp + 8]
xor ebx, ebx
mov ecx, edi
call fcn.100a2fb0
add edi, 4
mov ecx, ebx
dec ebx
test ecx, ecx
jne 0x10070c64
mov ebp, dword [ebp]
test ebp, ebp
jne 0x10070c5f
xor edi, edi
mov eax, dword [esi + 0x68]
cmp eax, edi
je 0x10070c96
mov ebx, dword [eax]
push eax
call fcn.1024ac9a
add esp, 4
cmp ebx, edi
mov eax, ebx
jne 0x10070c85
mov eax, dword [esi + 0x70]
mov dword [esi + 0x74], edi
cmp eax, edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
je 0x10070cb7
mov ebx, dword [eax]
push eax
call fcn.1024ac9a
add esp, 4
cmp ebx, edi
mov eax, ebx
jne 0x10070ca6
mov edx, dword [esp + 0x54]
push edi
push edx
mov dword [esi + 0x78], edi
mov dword [esi + 0x70], edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push eax
call fcn.10071710
mov ecx, dword [esp + 0x50]
mov ebp, ecx
test ebp, ebp
jne 0x100709cb
xor edi, edi
jmp 0x10070d11
mov eax, dword [0x1030aa70]
xor edi, edi
cmp eax, edi
je 0x10070d11
mov ecx, dword [esi + 0x24]
push ecx
push str.CSocketSystem::SendSocket:_Forbid_to_send__m_nSending___d__
push str.SocketSystem
push 1
push 0x1030a1dc
call fcn.100a4680
add esp, 0x14
mov esi, dword [esp + 0x28]
mov byte [esp + 0x48], 0
cmp esi, edi
je 0x10070d3a
mov edx, dword [esp + 0x2c]
cmp edx, edi
jbe 0x10070d3a
mov ecx, esi
mov eax, dword [ecx]
cmp eax, edi
je 0x10070d34
mov eax, dword [eax]
cmp eax, edi
jne 0x10070d2e
add ecx, 4
dec edx
jne 0x10070d28
push esi
call fcn.1024ac9a
mov ecx, dword [esp + 0x3c]
add esp, 4
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
call fcn.1009c0b0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], edi
mov dword [esp + 0x48], 0xffffffff
call fcn.1009cf90
mov eax, 1
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret 0xc