Function at 0x5acfa0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x28
mov eax, dword [0x7ec06c]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
mov ebx, dword [esp + 0x34]
push ebp
push esi
mov esi, dword [esp + 0x38]
push edi
mov edi, dword [esp + 0x44]
mov dword [esp + 0x14], ebx
mov eax, dword [esi + 0x90]
or eax, dword [esi + 0x94]
mov byte [esp + 0x13], 0
jne 0x5acfee
mov eax, dword [esi + 0x98]
or eax, dword [esi + 0x9c]
jne 0x5acfee
push 7
push esi
call fcn.005adae0
add esp, 8
or dword [edi], 2
cmp dword [esi + 0x144], 0
jne 0x5ad37a
mov eax, dword [esi + 0x890]
test eax, eax
jne 0x5ad025
push dword [esi + 0x4cc]
call dword [0x7eca8c]
add esp, 4
mov dword [esi + 0x890], eax
test eax, eax
je 0x5ad2ba
cmp byte [esi + 0x138], 0
mov dword [esi + 0x148], eax
jne 0x5ad477
cmp dword [esi + 0x110], 2
mov ecx, dword [esi + 0x150]
jne 0x5ad0a1
cmp dword [ecx + 0x1b0], 2
jne 0x5ad0a1
and dword [esi + 0x134], 0xfffffffd
lea eax, [esp + 0x24]
push eax
mov dword [esi + 0x110], 1
call fcn.005910c0
push 0
movups xmm0, xmmword [eax]
movups xmmword [esi + 0x100], xmm0
and dword [edi], 0xfffffffd
mov eax, dword [esi + 0x684]
cdq
push edx
push eax
push esi
call fcn.00591890
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0053bd3e
add esp, 0x28
ret
mov eax, dword [ebx + 0x2c8]
test dword [eax + 0x40], 0x40003
je 0x5ad0bc
cmp dword [ecx + 0x1b0], 1
sete byte [esp + 0x13]
mov edi, dword [ebx]
mov ebp, 0x10000
mov dword [esp + 0x1c], ebp
cmp byte [edi + 0x14d], 0
je 0x5ad0e0
add dword [edi + 0x148], 0xa
mov ebp, 0xfff4
mov dword [esp + 0x1c], ebp
push 1
push edi
call fcn.00591d90
push dword [edi + 0xbe4]
mov eax, dword [edi + 0xbe0]
push ebp
push 1
push dword [edi + 0x148]
call eax
mov ebp, eax
push 0
push edi
mov dword [esp + 0x40], ebp
call fcn.00591d90
add esp, 0x20
cmp ebp, 0x10000000
jne 0x5ad141
mov eax, str.operation_aborted_by_callback
mov esi, 0x2a
push eax
push edi
call fcn.0058e2d0
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0053bd3e
add esp, 0x28
ret
cmp ebp, 0x10000001
jne 0x5ad17a
mov eax, dword [ebx + 0x2c8]
test byte [eax + 0x44], 0x10
je 0x5ad15c
mov eax, str.Read_callback_asked_for_PAUSE_when_not_supported_
jmp 0x5ad185
or dword [edi + 0x134], 0x20
cmp byte [edi + 0x14d], 0
je 0x5ad173
add dword [edi + 0x148], 0xfffffff6
xor ebp, ebp
jmp 0x5ad25f
cmp ebp, dword [esp + 0x1c]
jbe 0x5ad1a9
mov eax, str.read_function_returned_funny_value
push eax
push edi
mov esi, 0x1a
call fcn.0058e2d0
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0053bd3e
add esp, 0x28
ret
cmp byte [edi + 0x14f], 0
jne 0x5ad25f
cmp byte [edi + 0x14d], 0
je 0x5ad25f
cmp byte [edi + 0x3ca], 0
mov eax, 0x784930
mov ebx, 0x78aab0
cmovne ebx, eax
lea eax, [esp + 0x24]
push ebx
push ebp
push str._x_s
push 0xb
push eax
call fcn.0058fda0
sub dword [edi + 0x148], eax
add ebp, eax
push eax
lea eax, [esp + 0x3c]
push eax
push dword [edi + 0x148]
call fcn.00552b30
mov ecx, ebx
add esp, 0x20
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5ad210
mov eax, dword [edi + 0x148]
sub ecx, edx
push ecx
add eax, ebp
push ebx
push eax
call fcn.00552b30
add esp, 0xc
cmp dword [esp + 0x20], 0
jne 0x5ad248
push str.Signaling_end_of_chunked_upload_via_terminating_chunk._n
push edi
mov byte [edi + 0x138], 1
call fcn.0058e3b0
add esp, 8
lea ecx, [ebx + 1]
nop dword [eax + eax]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x5ad250
sub ebx, ecx
add ebp, ebx
mov ebx, dword [esp + 0x14]
test ebp, ebp
je 0x5ad477
jle 0x5ad484
cmp byte [esp + 0x13], 0
mov dword [esi + 0x144], ebp
jne 0x5ad359
cmp byte [esi + 0x3ca], 0
je 0x5ad359
cmp dword [esi + 0x8dc], 0
jne 0x5ad2d2
push 0x20000
call dword [0x7eca8c]
add esp, 4
mov dword [esi + 0x8dc], eax
test eax, eax
jne 0x5ad2d2
push str.Failed_to_alloc_scratch_buffer_
push esi
call fcn.0058e2d0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0053bd3e
add esp, 0x28
ret
xor ecx, ecx
xor edx, edx
test ebp, ebp
jle 0x5ad33d
nop word [eax + eax]
mov eax, dword [esi + 0x148]
mov bl, byte [edx + eax]
mov eax, dword [esi + 0x8dc]
cmp bl, 0xa
jne 0x5ad334
mov byte [eax + ecx], 0xd
inc ecx
mov eax, dword [esi + 0x8dc]
mov byte [ecx + eax], bl
cmp byte [esi + 0x3ca], 0
jne 0x5ad337
mov edi, dword [esi + 0xbd0]
mov eax, edi
mov ebx, dword [esi + 0xbd4]
and eax, ebx
cmp eax, 0xffffffff
je 0x5ad337
add edi, 1
mov dword [esi + 0xbd0], edi
adc ebx, 0
mov dword [esi + 0xbd4], ebx
jmp 0x5ad337
mov byte [eax + ecx], bl
inc edx
inc ecx
cmp edx, ebp
jl 0x5ad2e0
mov ebx, dword [esp + 0x14]
cmp ecx, ebp
je 0x5ad359
mov eax, dword [esi + 0x8dc]
mov ebp, ecx
mov dword [esi + 0x148], eax
mov dword [esi + 0x144], ecx
mov eax, dword [ebx + 0x2c8]
test dword [eax + 0x40], 0x30000
je 0x5ad37a
push ebp
push ebx
call fcn.0059d100
add esp, 8
test eax, eax
jne 0x5ad530
lea eax, [esp + 0x18]
push eax
push dword [esi + 0x144]
push dword [esi + 0x148]
push dword [ebx + 0x2d8]
push ebx
call fcn.0058e930
add esp, 0x14
test eax, eax
jne 0x5ad530
mov edi, dword [ebx + 0x2d8]
push eax
push eax
lea eax, [esp + 0x24]
push eax
push 4
lea eax, [esp + 0x30]
push eax
push 0
push 0
push 0x4004747b
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x5ad3e2
push 4
lea eax, [esp + 0x24]
push eax
push 0x1001
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp byte [esi + 0x510], 0
je 0x5ad400
push dword [esp + 0x18]
push dword [esi + 0x148]
push 4
push esi
call fcn.0058e240
add esp, 0x10
mov ecx, dword [esp + 0x18]
mov eax, ecx
cdq
add eax, dword [esi + 0x98]
mov dword [esi + 0x98], eax
adc edx, dword [esi + 0x9c]
cmp byte [esi + 0x14d], 0
mov dword [esi + 0x9c], edx
je 0x5ad431
cmp byte [esi + 0x14f], 0
je 0x5ad45a
cmp eax, dword [esi + 0xbd0]
jne 0x5ad45a
cmp edx, dword [esi + 0xbd4]
jne 0x5ad45a
push str.We_are_completely_uploaded_and_fine_n
push esi
mov byte [esi + 0x138], 1
call fcn.0058e3b0
mov ecx, dword [esp + 0x20]
add esp, 8
mov eax, dword [esi + 0x144]
cmp eax, ecx
je 0x5ad4bc
sub eax, ecx
add dword [esi + 0x148], ecx
mov dword [esi + 0x144], eax
jmp 0x5ad519
test byte [esi + 0x134], 0x20
jne 0x5ad52e
and dword [esi + 0x134], 0xfffffffd
cmp byte [ebx + 0x293], 0
je 0x5ad52e
push ebx
call fcn.005abd80
add esp, 4
test eax, eax
je 0x5ad52e
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0053bd3e
add esp, 0x28
ret
mov eax, dword [esi + 0x890]
test eax, eax
jne 0x5ad4e3
push dword [esi + 0x4cc]
call dword [0x7eca8c]
add esp, 4
mov dword [esi + 0x890], eax
test eax, eax
je 0x5ad2ba
cmp byte [esi + 0x138], 0
mov dword [esi + 0x148], eax
mov dword [esi + 0x144], 0
je 0x5ad519
and dword [esi + 0x134], 0xfffffffd
cmp byte [ebx + 0x293], 0
je 0x5ad519
push ebx
call fcn.005abd80
add esp, 4
test eax, eax
jne 0x5ad530
push dword [esi + 0x9c]
push dword [esi + 0x98]
push esi
call fcn.005ad8e0
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0053bd3e
add esp, 0x28
ret