Function at 0x4572a0
Capabilities:
Get number of processors
Send data
Send data on socket
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x489d98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
lea ecx, [esp + 0x18]
mov dword [esi + 0xc8], ebp
call fcn.00423da0
mov eax, dword [esi + 0xc0]
mov dword [esp + 0x30], ebp
cmp eax, ebp
mov dword [esp + 0x1c], eax
jne 0x4572e9
mov dword [esp + 0x1c], 0x80befc00
mov eax, dword [esi + 0x54]
cmp eax, 0xffffffff
jne 0x457301
mov ecx, dword [esp + 0x50]
push str.No_socket_exists_for_sending__2a_
mov eax, dword [ecx]
jmp 0x4576bb
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 1
push ecx
push 0x8004667e
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp dword [esp + 0x3c], ebp
je 0x4576d3
mov edi, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x58]
push edi
inc ebp
push edx
push eax
mov ecx, esi
mov dword [esp + 0x30], ebp
call fcn.00457df0
test al, al
je 0x4574f6
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
cmp ebp, eax
jle 0x457357
mov ebx, dword [esp + 0x48]
mov eax, dword [esp + 0x3c]
cmp ebx, eax
jbe 0x457361
mov ebx, eax
xor ebp, ebp
cmp edi, ebp
je 0x457380
mov ecx, dword [esp + 0x4c]
push 0x174
push ecx
mov ecx, edi
call fcn.004293c0
test al, al
jne 0x457520
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x54]
push edx
push edi
lea ecx, [esi + 0x70]
push eax
mov byte [esp + 0x60], 0
call fcn.00465620
mov al, byte [esp + 0x54]
test al, al
jne 0x457550
mov ecx, dword [esp + 0x38]
mov edx, dword [esi + 0x54]
push ebp
push ebx
push ecx
push edx
mov dword [esi + 0xc8], ebp
call dword [sym.imp.WS2_32.dll_send]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x457472
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
mov dword [esi + 0xc8], eax
jne 0x457639
mov ebx, dword [esp + 0x50]
mov eax, dword [esp + 0x58]
push edi
push ebx
push eax
mov ecx, esi
call fcn.00457df0
test al, al
je 0x457560
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], 0
test eax, eax
mov byte [esp + 0x11], 0
mov byte [esp + 0x13], 0
mov byte [esp + 0x12], 0
jbe 0x4575d2
lea ecx, [esp + 0x12]
lea edx, [esp + 0x13]
push ecx
lea eax, [esp + 0x15]
push edx
mov edx, dword [esp + 0x54]
push eax
lea ecx, [esp + 0x24]
push edi
push ecx
push 0x64
push 0
push edx
mov ecx, esi
call fcn.004566b0
test al, al
jne 0x457497
mov eax, dword [esp + 0x58]
push edi
push ebx
push eax
mov ecx, esi
call fcn.00457df0
test al, al
je 0x457599
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
add eax, 0x64
cmp eax, ecx
mov dword [esp + 0x20], eax
jae 0x4575d2
jmp 0x45741a
test ebp, ebp
jle 0x457493
push ebp
lea ecx, [esi + 0x70]
call fcn.004655c0
mov al, byte [esi + 0x12c]
test al, al
je 0x457493
push edi
push ebp
lea ecx, [esi + 0x30]
call fcn.00465990
mov ebx, dword [esp + 0x50]
test edi, edi
je 0x4574bd
test ebp, ebp
jle 0x4574d7
lea ecx, [esp + 0x10]
mov byte [esp + 0x10], 0
push ecx
push ebp
mov ecx, edi
call fcn.00429660
mov al, byte [esp + 0x10]
test al, al
jne 0x457691
test ebp, ebp
jle 0x4574d7
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
sub ecx, ebp
add eax, ebp
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], eax
test ebp, ebp
jne 0x4574e1
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4576d3
mov ebp, dword [esp + 0x24]
jmp 0x457328
mov esi, dword [esi + 0x54]
mov dword [esp + 0x14], 0
cmp esi, 0xffffffff
je 0x4576be
lea edx, [esp + 0x14]
push edx
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
jmp 0x4576be
mov esi, dword [esi + 0x54]
mov dword [esp + 0x14], ebp
cmp esi, 0xffffffff
je 0x45753d
lea eax, [esp + 0x14]
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, dword [esp + 0x50]
push str.Socket_SendBytes2_aborted_by_application.__1_
mov edx, dword [ecx]
call dword [edx + 0x10]
jmp 0x4576be
mov ecx, dword [esp + 0x50]
push str.Aborted_by_application_while_upload_throttling__2_
mov eax, dword [ecx]
jmp 0x4576bb
mov esi, dword [esi + 0x54]
mov dword [esp + 0x14], 0
cmp esi, 0xffffffff
je 0x457581
lea ecx, [esp + 0x14]
push ecx
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.00423de0
xor al, al
jmp 0x457707
mov esi, dword [esi + 0x54]
mov dword [esp + 0x14], 0
cmp esi, 0xffffffff
je 0x4575ba
lea edx, [esp + 0x14]
push edx
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.00423de0
xor al, al
jmp 0x457707
mov esi, dword [esi + 0x54]
mov dword [esp + 0x14], 0
cmp esi, 0xffffffff
je 0x4575f3
lea eax, [esp + 0x14]
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov al, byte [esp + 0x11]
test al, al
je 0x457604
mov edx, dword [ebx]
push str.Socket_send_aborted_by_application
jmp 0x45761c
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebx]
push ecx
push str.idleTimeoutMs
mov ecx, ebx
call dword [eax + 0x2c]
mov edx, dword [ebx]
push str.Socket_send_idle_timeout
mov ecx, ebx
call dword [edx + 0x10]
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.00423de0
xor al, al
jmp 0x457707
mov edi, dword [esp + 0x50]
push edi
push eax
call fcn.00455000
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push str.Error_sending_on_socket
call dword [eax + 0x10]
mov edx, dword [edi]
push ebx
push str.send_size
mov ecx, edi
call dword [edx + 0x2c]
mov eax, dword [esi + 0x54]
push 2
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov ecx, dword [esi + 0x54]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
lea ecx, [esp + 0x18]
mov dword [esi + 0x54], eax
mov byte [esi + 0x50], 0
mov dword [esp + 0x30], eax
call fcn.00423de0
xor al, al
jmp 0x457707
mov esi, dword [esi + 0x54]
mov dword [esp + 0x14], 0
cmp esi, 0xffffffff
je 0x4576b2
lea edx, [esp + 0x14]
push edx
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebx]
push str.Socket_send_aborted_by_application
mov ecx, ebx
call dword [eax + 0x10]
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.00423de0
xor al, al
jmp 0x457707
mov esi, dword [esi + 0x54]
mov dword [esp + 0x14], 0
cmp esi, 0xffffffff
je 0x4576f4
lea ecx, [esp + 0x14]
push ecx
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.00423de0
mov al, 1
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0x24