Function at 0x10059320
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 0x1018fc18
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.10084010
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.1017c342
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 0x10059532
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x50]
lea eax, [esp + 0x18]
push eax
push esi
lea ecx, [edi + 0x84]
call fcn.1005b4b0
test eax, eax
je 0x100593f0
mov ebp, dword [eax + 0xc]
mov eax, dword [ebp + 0x74]
test eax, eax
je 0x10059466
mov ecx, dword [ebp + 0x64]
test ecx, ecx
je 0x10059416
cmp eax, 1
jne 0x10059416
push esi
lea ecx, [esp + 0x2c]
call fcn.1005b4f0
mov byte [eax], 0
jmp 0x10059466
lea ecx, [esp + 0x28]
mov byte [esp + 0x48], 0
call fcn.1005b5d0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x48], 0xffffffff
call fcn.10084070
xor eax, eax
jmp 0x10059889
mov esi, dword [ebp + 0x6c]
add esi, 8
mov ecx, esi
call fcn.1008a0d0
cmp eax, dword [edi]
jae 0x10059466
mov ecx, esi
call fcn.1008a0d0
mov ecx, dword [edi]
sub ecx, eax
mov eax, dword [esp + 0x58]
cmp eax, ecx
jae 0x1005943e
mov edi, eax
jmp 0x10059449
mov ecx, esi
call fcn.1008a0d0
mov edi, dword [edi]
sub edi, eax
mov ebx, dword [esp + 0x54]
push edi
push ebx
mov ecx, esi
call fcn.1008a430
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 0x10059532
mov edx, dword [esp + 0x10]
add ebp, 0x68
lea edi, [edx + 0xc]
lea ecx, [esp + 0x14]
call fcn.10089ed0
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 2
mov eax, dword [esi]
push eax
push 0
call fcn.1008a0e0
mov eax, dword [esi]
mov ebx, dword [esp + 0x58]
cmp ebx, eax
jb 0x100594a8
mov ebx, eax
mov ecx, dword [esp + 0x54]
push ebx
push ecx
lea ecx, [esp + 0x1c]
call fcn.1008a8a0
mov edx, dword [ebp + 4]
push 0
push edx
mov ecx, ebp
call fcn.1005b0e0
mov esi, eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esi + 8]
call fcn.1008a060
mov eax, dword [ebp + 4]
test eax, eax
je 0x100594de
mov dword [eax], esi
jmp 0x100594e1
mov dword [ebp], esi
mov dword [ebp + 4], esi
mov ecx, dword [edi + 4]
push 0
push ecx
mov ecx, edi
call fcn.1005b220
mov edx, dword [esp + 0x50]
mov dword [eax + 8], edx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x10059503
mov dword [ecx], eax
jmp 0x10059505
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.1008a030
test esi, esi
ja 0x1005947c
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x10059826
jmp 0x10059547
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 0x10059826
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 0x10059593
mov eax, dword [esi + edx*4]
test eax, eax
je 0x10059593
cmp dword [eax + 8], ebx
je 0x100595a7
mov eax, dword [eax]
test eax, eax
jne 0x10059588
mov eax, dword [esp + 0x10]
lea esi, [eax + 0xc]
mov eax, dword [eax + 0xc]
cmp ecx, eax
jne 0x100595d2
mov edx, dword [ecx]
mov dword [esi], edx
jmp 0x100595d9
test eax, eax
je 0x10059593
mov esi, dword [eax + 0xc]
mov eax, edi
xor edx, edx
div dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x10059634
mov eax, dword [eax + edx*4]
test eax, eax
je 0x10059634
cmp dword [eax + 8], ebx
je 0x10059629
mov eax, dword [eax]
test eax, eax
jne 0x100595c5
jmp 0x10059634
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
mov dword [eax], edx
cmp ecx, dword [esi + 4]
jne 0x100595e6
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
jmp 0x100595ee
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 0x10059609
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 0x10059612
push ecx
call fcn.1017c36b
add esp, 4
mov eax, dword [esi + 0xc]
dec eax
mov dword [esi + 0xc], eax
jne 0x10059622
mov ecx, esi
call fcn.1005b1c0
mov ecx, ebp
jmp 0x1005981e
test eax, eax
je 0x10059634
mov ecx, ebp
jmp 0x1005981e
mov edx, dword [esi + 0x64]
lea eax, [esi + 0x64]
test edx, edx
mov dword [esp + 0x54], eax
je 0x100596a3
lea ecx, [esp + 0x58]
push ecx
push ebx
lea ecx, [esp + 0x30]
call fcn.1005b630
test eax, eax
jne 0x10059698
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x1005966d
mov edx, dword [esp + 0x2c]
push 1
push edx
lea ecx, [esp + 0x30]
call fcn.1005b010
lea ecx, [esp + 0x28]
call fcn.1005b760
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 0x1005981e
mov eax, dword [esp + 0x10]
add eax, 0xc
cmp ecx, dword [eax]
jne 0x100596b2
mov dword [eax], ebp
jmp 0x100596b7
mov edx, dword [ecx + 4]
mov dword [edx], ebp
cmp ecx, dword [eax + 4]
jne 0x100596c4
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
jmp 0x100596cc
mov edx, dword [ecx]
mov edi, dword [ecx + 4]
mov dword [edx + 4], edi
push ecx
mov ecx, eax
call fcn.1005b270
cmp dword [esi + 0x74], 1
jge 0x100596e1
mov ecx, ebp
jmp 0x1005981e
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.1008a7d0
mov ecx, edi
mov dword [esi + 0x60], eax
lea ebx, [esi + 0x5c]
call fcn.1008a0d0
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 0x10059818
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebp
cmp eax, 0x3e5
je 0x10059818
mov eax, dword [0x10201328]
xor edi, edi
cmp eax, edi
je 0x10059789
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 0x10200a94
call fcn.1008b760
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 0x100597bf
lea edi, [ebp + 8]
xor ebx, ebx
mov ecx, edi
call fcn.1008a030
add edi, 4
mov eax, ebx
dec ebx
test eax, eax
jne 0x100597a5
mov ebp, dword [ebp]
test ebp, ebp
jne 0x100597a0
xor edi, edi
mov eax, dword [esi + 0x68]
cmp eax, edi
je 0x100597d7
mov ebx, dword [eax]
push eax
call fcn.1017c36b
add esp, 4
cmp ebx, edi
mov eax, ebx
jne 0x100597c6
mov eax, dword [esi + 0x70]
mov dword [esi + 0x74], edi
cmp eax, edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
je 0x100597f8
mov ebx, dword [eax]
push eax
call fcn.1017c36b
add esp, 4
cmp ebx, edi
mov eax, ebx
jne 0x100597e7
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.1005a1b0
mov ecx, dword [esp + 0x50]
mov ebp, ecx
test ebp, ebp
jne 0x10059543
mov edi, dword [esp + 0x28]
xor esi, esi
cmp edi, esi
mov byte [esp + 0x48], 0
je 0x10059851
mov edx, dword [esp + 0x2c]
cmp edx, esi
jbe 0x10059851
mov ecx, edi
mov eax, dword [ecx]
cmp eax, esi
je 0x1005984b
mov eax, dword [eax]
cmp eax, esi
jne 0x10059845
add ecx, 4
dec edx
jne 0x1005983f
push edi
call fcn.1017c36b
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.10083190
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], esi
mov dword [esp + 0x48], 0xffffffff
call fcn.10084070
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