Function at 0x10065260
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 0x10252348
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.10091800
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.1023d8fc
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 0x10065472
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x50]
lea eax, [esp + 0x18]
push eax
push esi
lea ecx, [edi + 0x84]
call fcn.100674e0
test eax, eax
je 0x10065330
mov ebp, dword [eax + 0xc]
mov eax, dword [ebp + 0x74]
test eax, eax
je 0x100653a6
mov ecx, dword [ebp + 0x64]
test ecx, ecx
je 0x10065356
cmp eax, 1
jne 0x10065356
push esi
lea ecx, [esp + 0x2c]
call fcn.10067520
mov byte [eax], 0
jmp 0x100653a6
lea ecx, [esp + 0x28]
mov byte [esp + 0x48], 0
call fcn.10067600
lea ecx, [esp + 0x1c]
mov dword [esp + 0x48], 0xffffffff
call fcn.10091860
xor eax, eax
jmp 0x100657c9
mov esi, dword [ebp + 0x6c]
add esi, 8
mov ecx, esi
call fcn.10097920
cmp eax, dword [edi]
jae 0x100653a6
mov ecx, esi
call fcn.10097920
mov ecx, dword [edi]
sub ecx, eax
mov eax, dword [esp + 0x58]
cmp eax, ecx
jae 0x1006537e
mov edi, eax
jmp 0x10065389
mov ecx, esi
call fcn.10097920
mov edi, dword [edi]
sub edi, eax
mov ebx, dword [esp + 0x54]
push edi
push ebx
mov ecx, esi
call fcn.10097c80
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 0x10065472
mov edx, dword [esp + 0x10]
add ebp, 0x68
lea edi, [edx + 0xc]
lea ecx, [esp + 0x14]
call fcn.10097720
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 2
mov eax, dword [esi]
push eax
push 0
call fcn.10097930
mov eax, dword [esi]
mov ebx, dword [esp + 0x58]
cmp ebx, eax
jb 0x100653e8
mov ebx, eax
mov ecx, dword [esp + 0x54]
push ebx
push ecx
lea ecx, [esp + 0x1c]
call fcn.100980f0
mov edx, dword [ebp + 4]
push 0
push edx
mov ecx, ebp
call fcn.10067110
mov esi, eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esi + 8]
call fcn.100978b0
mov eax, dword [ebp + 4]
test eax, eax
je 0x1006541e
mov dword [eax], esi
jmp 0x10065421
mov dword [ebp], esi
mov dword [ebp + 4], esi
mov ecx, dword [edi + 4]
push 0
push ecx
mov ecx, edi
call fcn.10067250
mov edx, dword [esp + 0x50]
mov dword [eax + 8], edx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x10065443
mov dword [ecx], eax
jmp 0x10065445
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.10097880
test esi, esi
ja 0x100653bc
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x10065766
jmp 0x10065487
mov esi, dword [esp + 0x10]
mov eax, 0x19000000
xor edx, edx
div dword [esi]
mov edx, dword [esi + 0x24]
mov ebp, dword [ecx]
mov ebx, dword [ecx + 8]
mov dword [esp + 0x50], ebp
mov dword [esp + 0x18], ebx
cmp edx, eax
jae 0x10065766
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 0x100654d3
mov eax, dword [esi + edx*4]
test eax, eax
je 0x100654d3
cmp dword [eax + 8], ebx
je 0x100654e7
mov eax, dword [eax]
test eax, eax
jne 0x100654c8
mov eax, dword [esp + 0x10]
lea esi, [eax + 0xc]
mov eax, dword [eax + 0xc]
cmp ecx, eax
jne 0x10065512
mov edx, dword [ecx]
mov dword [esi], edx
jmp 0x10065519
test eax, eax
je 0x100654d3
mov esi, dword [eax + 0xc]
mov eax, edi
xor edx, edx
div dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x10065574
mov eax, dword [eax + edx*4]
test eax, eax
je 0x10065574
cmp dword [eax + 8], ebx
je 0x10065569
mov eax, dword [eax]
test eax, eax
jne 0x10065505
jmp 0x10065574
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
mov dword [eax], edx
cmp ecx, dword [esi + 4]
jne 0x10065526
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
jmp 0x1006552e
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
cmp edx, eax
jge 0x10065549
mov eax, dword [esi + 8]
mov dword [ecx], eax
mov eax, dword [esi + 0x10]
inc eax
mov dword [esi + 8], ecx
mov dword [esi + 0x10], eax
jmp 0x10065552
push ecx
call fcn.1023d925
add esp, 4
mov eax, dword [esi + 0xc]
dec eax
mov dword [esi + 0xc], eax
jne 0x10065562
mov ecx, esi
call fcn.100671f0
mov ecx, ebp
jmp 0x1006575e
test eax, eax
je 0x10065574
mov ecx, ebp
jmp 0x1006575e
mov edx, dword [esi + 0x64]
lea eax, [esi + 0x64]
test edx, edx
mov dword [esp + 0x54], eax
je 0x100655e3
lea ecx, [esp + 0x58]
push ecx
push ebx
lea ecx, [esp + 0x30]
call fcn.10067660
test eax, eax
jne 0x100655d8
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x100655ad
mov edx, dword [esp + 0x2c]
push 1
push edx
lea ecx, [esp + 0x30]
call fcn.10067040
lea ecx, [esp + 0x28]
call fcn.10067790
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 0x1006575e
mov eax, dword [esp + 0x10]
add eax, 0xc
cmp ecx, dword [eax]
jne 0x100655f2
mov dword [eax], ebp
jmp 0x100655f7
mov edx, dword [ecx + 4]
mov dword [edx], ebp
cmp ecx, dword [eax + 4]
jne 0x10065604
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
jmp 0x1006560c
mov edx, dword [ecx]
mov edi, dword [ecx + 4]
mov dword [edx + 4], edi
push ecx
mov ecx, eax
call fcn.100672a0
cmp dword [esi + 0x74], 1
jge 0x10065621
mov ecx, ebp
jmp 0x1006575e
lea ebp, [esi + 0x44]
xor eax, eax
mov ecx, ebp
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov edi, dword [esi + 0x68]
add edi, 8
mov ecx, edi
call fcn.10098020
mov ecx, edi
mov dword [esi + 0x60], eax
lea ebx, [esi + 0x5c]
call fcn.10097920
mov edx, dword [esp + 0x54]
mov dword [ebx], eax
mov eax, dword [esp + 0x10]
push 1
push edx
inc dword [eax + 0x24]
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
push ebp
lea eax, [esp + 0x1c]
push 0
mov dword [esp + 0x20], 0
mov ecx, dword [esi]
push eax
push 1
push ebx
push ecx
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x10065758
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebp
cmp eax, 0x3e5
je 0x10065758
mov eax, dword [0x102f7658]
xor edi, edi
cmp eax, edi
je 0x100656c9
call ebp
mov edx, dword [esi]
push eax
push edx
push str.CSocketSystem::SendSocket__:_WSASend_failed__SOCKET__d___errno__d__
push str.SocketSystem
push 1
push 0x102f6dc4
call fcn.10098fb0
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 0x100656ff
lea edi, [ebp + 8]
xor ebx, ebx
mov ecx, edi
call fcn.10097880
add edi, 4
mov eax, ebx
dec ebx
test eax, eax
jne 0x100656e5
mov ebp, dword [ebp]
test ebp, ebp
jne 0x100656e0
xor edi, edi
mov eax, dword [esi + 0x68]
cmp eax, edi
je 0x10065717
mov ebx, dword [eax]
push eax
call fcn.1023d925
add esp, 4
cmp ebx, edi
mov eax, ebx
jne 0x10065706
mov eax, dword [esi + 0x70]
mov dword [esi + 0x74], edi
cmp eax, edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
je 0x10065738
mov ebx, dword [eax]
push eax
call fcn.1023d925
add esp, 4
cmp ebx, edi
mov eax, ebx
jne 0x10065727
mov ecx, dword [esp + 0x54]
push edi
push ecx
mov dword [esi + 0x78], edi
mov dword [esi + 0x70], edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push edx
call fcn.100660f0
mov ecx, dword [esp + 0x50]
mov ebp, ecx
test ebp, ebp
jne 0x10065483
mov edi, dword [esp + 0x28]
xor esi, esi
cmp edi, esi
mov byte [esp + 0x48], 0
je 0x10065791
mov edx, dword [esp + 0x2c]
cmp edx, esi
jbe 0x10065791
mov ecx, edi
mov eax, dword [ecx]
cmp eax, esi
je 0x1006578b
mov eax, dword [eax]
cmp eax, esi
jne 0x10065785
add ecx, 4
dec edx
jne 0x1006577f
push edi
call fcn.1023d925
mov ecx, dword [esp + 0x3c]
add esp, 4
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call fcn.10090980
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], esi
mov dword [esp + 0x48], 0xffffffff
call fcn.10091860
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