Function at 0x412610
Capabilities:
Get number of processors
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4634b1
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x411c
call fcn.0044eaf0
mov eax, dword [0x47e820]
xor eax, esp
mov dword [esp + 0x4118], eax
push ebx
push esi
push edi
mov eax, dword [0x47e820]
xor eax, esp
push eax
lea eax, [esp + 0x4130]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x24], eax
xor eax, eax
push 0x884
push eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], edx
call fcn.0044c710
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
call fcn.00412e70
mov edx, dword [esp + 0x8ac]
push edx
lea esi, [esp + 0x30]
mov edi, ebx
call fcn.00412470
test eax, eax
je 0x412871
push 0x2800
lea eax, [esp + 0x1928]
push 0
push eax
call fcn.0044c710
mov edi, dword [esp + 0x30]
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
push edi
push ebx
lea esi, [esp + 0x1930]
lea eax, [esp + 0xb8]
call fcn.004132a0
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4126f0
sub eax, edx
push 0
push eax
mov eax, dword [ebx]
lea edx, [esp + 0x192c]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x41287b
push 0xc6c
lea ecx, [esp + 0x8b8]
push 0
push ecx
call fcn.0044c710
add esp, 0xc
push 0x400
lea edx, [esp + 0x1528]
push 0
push edx
call fcn.0044c710
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x8b8]
push ecx
lea ecx, [esp + 0x152c]
mov edx, ebx
call fcn.00412500
push 0x1400
lea esi, [ebx + 4]
push 0
push esi
call fcn.0044c710
lea eax, [esp + 0x1128]
add esp, 0xc
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x412780
sub eax, edx
cmp eax, 8
jbe 0x4127c0
lea eax, [esp + 0x111c]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4127a0
sub eax, edx
add eax, 0xfffffff8
push eax
lea edx, [esp + 0x1120]
push edx
push esi
call fcn.00449150
add esp, 0xc
lea eax, [esp + 0xd1c]
push 0x46ee7c
push eax
call fcn.0045cb75
add esp, 8
test eax, eax
je 0x412885
cmp dword [esp + 0x151c], 0xc8
je 0x4128a5
mov esi, dword [esp + 0x28]
mov edx, edi
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x4127f8
lea eax, [esp + 0xd1c]
mov edx, esi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x412811
mov edi, dword [esp + 0x14]
mov edx, dword [ebx]
add edi, 1
push edx
mov dword [esp + 0x18], edi
call dword [sym.imp.WS2_32.dll_closesocket]
cmp edi, 0xa
je 0x412885
push 0x884
lea eax, [esp + 0x30]
push 0
push eax
call fcn.0044c710
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
mov edi, esi
call fcn.00412e70
mov edx, dword [esp + 0x8ac]
push edx
lea esi, [esp + 0x30]
mov edi, ebx
call fcn.00412470
test eax, eax
jne 0x4126b0
mov eax, 0x65
jmp 0x412a1f
mov eax, 0x66
jmp 0x412a1f
cmp dword [esp + 0x151c], 0xc8
je 0x4128a5
mov eax, dword [ebx]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0x67
jmp 0x412a1f
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
lea ecx, [esp + 0x1524]
push ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.00412d00
mov esi, dword [esp + 0x20]
lea edx, [esp + 0xcdc]
push edx
lea ecx, [esp + 0x20]
mov dword [esi], eax
call fcn.0040aee0
lea edi, [esp + 0x1c]
mov dword [esp + 0x4138], 0
call fcn.00409270
mov eax, dword [esp + 0x1c]
push str.chunked
push eax
call fcn.0044a428
add esp, 8
test eax, eax
sete al
test al, al
je 0x4129e6
mov ecx, dword [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
call fcn.0040aee0
mov byte [esp + 0x4138], 1
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 0xc], 0
jge 0x412931
or edi, 0xffffffff
jmp 0x412950
push 0x46fc78
push ecx
call fcn.00449d25
mov ecx, dword [esp + 0x18]
add esp, 8
test eax, eax
jne 0x41294c
or edi, 0xffffffff
jmp 0x412950
sub eax, ecx
mov edi, eax
push 0x30
push ecx
call fcn.00449ec5
add esp, 8
test eax, eax
jne 0x412964
or eax, 0xffffffff
jmp 0x412968
sub eax, dword [esp + 0x10]
cmp edi, 0xffffffff
je 0x4129be
sub eax, edi
sub eax, 2
push eax
add edi, 2
push edi
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
call fcn.00409300
mov byte [esp + 0x4138], 2
mov eax, dword [esp + 0x14]
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x18]
call fcn.00409870
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call fcn.0044cb80
mov edx, dword [esp + 0x20]
mov eax, dword [edx - 0xc]
add esp, 0xc
lea ecx, [esp + 0x14]
mov dword [esi], eax
call fcn.0040b0e0
mov byte [esp + 0x4138], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4129e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esp + 0x4138], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412a1a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x64
mov ecx, dword [esp + 0x4130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4118]
xor ecx, esp
call fcn.00448c81
mov esp, ebp
pop ebp
ret 0xc