Function at 0x50b5d0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x28
mov eax, dword [0x600088]
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 0x50b61e
mov eax, dword [esi + 0x98]
or eax, dword [esi + 0x9c]
jne 0x50b61e
push 7
push esi
call fcn.00511ef0
add esp, 8
or dword [edi], 2
cmp dword [esi + 0x144], 0
jne 0x50b9aa
mov eax, dword [esi + 0x890]
test eax, eax
jne 0x50b655
push dword [esi + 0x4cc]
call dword [0x600ab0]
add esp, 4
mov dword [esi + 0x890], eax
test eax, eax
je 0x50b8ea
cmp byte [esi + 0x138], 0
mov dword [esi + 0x148], eax
jne 0x50baa7
cmp dword [esi + 0x110], 2
mov ecx, dword [esi + 0x150]
jne 0x50b6d1
cmp dword [ecx + 0x1b0], 2
jne 0x50b6d1
and dword [esi + 0x134], 0xfffffffd
lea eax, [esp + 0x24]
push eax
mov dword [esi + 0x110], 1
call fcn.0050bd10
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.004f4aa0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004ac0cf
add esp, 0x28
ret
mov eax, dword [ebx + 0x2c8]
test dword [eax + 0x40], 0x40003
je 0x50b6ec
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 0x50b710
add dword [edi + 0x148], 0xa
mov ebp, 0xfff4
mov dword [esp + 0x1c], ebp
push 1
push edi
call fcn.004f4fa0
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.004f4fa0
add esp, 0x20
cmp ebp, 0x10000000
jne 0x50b771
mov eax, str.operation_aborted_by_callback
mov esi, 0x2a
push eax
push edi
call fcn.00504840
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004ac0cf
add esp, 0x28
ret
cmp ebp, 0x10000001
jne 0x50b7aa
mov eax, dword [ebx + 0x2c8]
test byte [eax + 0x44], 0x10
je 0x50b78c
mov eax, str.Read_callback_asked_for_PAUSE_when_not_supported_
jmp 0x50b7b5
or dword [edi + 0x134], 0x20
cmp byte [edi + 0x14d], 0
je 0x50b7a3
add dword [edi + 0x148], 0xfffffff6
xor ebp, ebp
jmp 0x50b88f
cmp ebp, dword [esp + 0x1c]
jbe 0x50b7d9
mov eax, str.read_function_returned_funny_value
push eax
push edi
mov esi, 0x1a
call fcn.00504840
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004ac0cf
add esp, 0x28
ret
cmp byte [edi + 0x14f], 0
jne 0x50b88f
cmp byte [edi + 0x14d], 0
je 0x50b88f
cmp byte [edi + 0x3ca], 0
mov eax, 0x5ce2ec
mov ebx, 0x5d0d38
cmovne ebx, eax
lea eax, [esp + 0x24]
push ebx
push ebp
push str._x_s
push 0xb
push eax
call fcn.00507b00
sub dword [edi + 0x148], eax
add ebp, eax
push eax
lea eax, [esp + 0x3c]
push eax
push dword [edi + 0x148]
call fcn.004c2cb0
mov ecx, ebx
add esp, 0x20
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50b840
mov eax, dword [edi + 0x148]
sub ecx, edx
push ecx
add eax, ebp
push ebx
push eax
call fcn.004c2cb0
add esp, 0xc
cmp dword [esp + 0x20], 0
jne 0x50b878
push str.Signaling_end_of_chunked_upload_via_terminating_chunk._n
push edi
mov byte [edi + 0x138], 1
call fcn.00504920
add esp, 8
lea ecx, [ebx + 1]
nop dword [eax + eax]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x50b880
sub ebx, ecx
add ebp, ebx
mov ebx, dword [esp + 0x14]
test ebp, ebp
je 0x50baa7
jle 0x50bab4
cmp byte [esp + 0x13], 0
mov dword [esi + 0x144], ebp
jne 0x50b989
cmp byte [esi + 0x3ca], 0
je 0x50b989
cmp dword [esi + 0x8dc], 0
jne 0x50b902
push 0x20000
call dword [0x600ab0]
add esp, 4
mov dword [esi + 0x8dc], eax
test eax, eax
jne 0x50b902
push str.Failed_to_alloc_scratch_buffer_
push esi
call fcn.00504840
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004ac0cf
add esp, 0x28
ret
xor ecx, ecx
xor edx, edx
test ebp, ebp
jle 0x50b96d
nop word [eax + eax]
mov eax, dword [esi + 0x148]
mov bl, byte [edx + eax]
mov eax, dword [esi + 0x8dc]
cmp bl, 0xa
jne 0x50b964
mov byte [eax + ecx], 0xd
inc ecx
mov eax, dword [esi + 0x8dc]
mov byte [ecx + eax], bl
cmp byte [esi + 0x3ca], 0
jne 0x50b967
mov edi, dword [esi + 0xbd0]
mov eax, edi
mov ebx, dword [esi + 0xbd4]
and eax, ebx
cmp eax, 0xffffffff
je 0x50b967
add edi, 1
mov dword [esi + 0xbd0], edi
adc ebx, 0
mov dword [esi + 0xbd4], ebx
jmp 0x50b967
mov byte [eax + ecx], bl
inc edx
inc ecx
cmp edx, ebp
jl 0x50b910
mov ebx, dword [esp + 0x14]
cmp ecx, ebp
je 0x50b989
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 0x50b9aa
push ebp
push ebx
call fcn.0051f490
add esp, 8
test eax, eax
jne 0x50bb60
lea eax, [esp + 0x18]
push eax
push dword [esi + 0x144]
push dword [esi + 0x148]
push dword [ebx + 0x2d8]
push ebx
call fcn.00504ea0
add esp, 0x14
test eax, eax
jne 0x50bb60
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 0x50ba12
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 0x50ba30
push dword [esp + 0x18]
push dword [esi + 0x148]
push 4
push esi
call fcn.005047b0
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 0x50ba61
cmp byte [esi + 0x14f], 0
je 0x50ba8a
cmp eax, dword [esi + 0xbd0]
jne 0x50ba8a
cmp edx, dword [esi + 0xbd4]
jne 0x50ba8a
push str.We_are_completely_uploaded_and_fine_n
push esi
mov byte [esi + 0x138], 1
call fcn.00504920
mov ecx, dword [esp + 0x20]
add esp, 8
mov eax, dword [esi + 0x144]
cmp eax, ecx
je 0x50baec
sub eax, ecx
add dword [esi + 0x148], ecx
mov dword [esi + 0x144], eax
jmp 0x50bb49
test byte [esi + 0x134], 0x20
jne 0x50bb5e
and dword [esi + 0x134], 0xfffffffd
cmp byte [ebx + 0x293], 0
je 0x50bb5e
push ebx
call fcn.0050a3b0
add esp, 4
test eax, eax
je 0x50bb5e
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004ac0cf
add esp, 0x28
ret
mov eax, dword [esi + 0x890]
test eax, eax
jne 0x50bb13
push dword [esi + 0x4cc]
call dword [0x600ab0]
add esp, 4
mov dword [esi + 0x890], eax
test eax, eax
je 0x50b8ea
cmp byte [esi + 0x138], 0
mov dword [esi + 0x148], eax
mov dword [esi + 0x144], 0
je 0x50bb49
and dword [esi + 0x134], 0xfffffffd
cmp byte [ebx + 0x293], 0
je 0x50bb49
push ebx
call fcn.0050a3b0
add esp, 4
test eax, eax
jne 0x50bb60
push dword [esi + 0x9c]
push dword [esi + 0x98]
push esi
call fcn.00511cf0
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ac0cf
add esp, 0x28
ret