Function at 0x140005b50
Capabilities:
Get http content length

Disassembly:
mov rax, rsp
push rsi
sub rsp, 0x90
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x1400161e0]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov eax, dword [0x140018680]
test eax, eax
jne 0x140005df5
lea edx, [rax + 6]
mov rcx, qword [0x140018270]
call fcn.140002304
mov ecx, 0x1388
call rax
lea rcx, [rsp + 0x60]
call fcn.140001d84
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [0x1400171e8]
call fcn.140006378
nop
cmp qword [rsp + 0x80], 0x10
jb 0x140005bd5
mov rcx, qword [rsp + 0x68]
call fcn.140006d00
mov esi, 0xf
mov qword [rsp + 0x80], rsi
and qword [rsp + 0x78], 0
mov byte [rsp + 0x68], 0
xor ecx, ecx
call qword [0x140018250]
mov r9d, 0x400
lea rbx, [0x140018280]
mov r8, rbx
lea edx, [rsi + 0x56]
mov rcx, rax
call qword [0x140018240]
test eax, eax
je 0x140005c90
mov qword [rsp + 0x80], rsi
and qword [rsp + 0x78], 0
mov byte [rsp + 0x68], 0
mov rcx, rbx
call fcn.140007300
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.1400064ec
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.140002878
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [0x1400171e8]
call fcn.140006378
nop
cmp qword [rsp + 0x50], 0x10
jb 0x140005c7b
mov rcx, qword [rsp + 0x38]
call fcn.140006d00
nop
cmp qword [rsp + 0x80], 0x10
jb 0x140005c90
mov rcx, qword [rsp + 0x68]
call fcn.140006d00
lea rcx, [rsp + 0x30]
call fcn.140001960
cmp qword [rax + 0x20], 0x10
jb 0x140005ca7
mov rcx, qword [rax + 8]
jmp 0x140005cab
lea rcx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x140018248], rax
cmp qword [rsp + 0x50], 0x10
jb 0x140005cca
mov rcx, qword [rsp + 0x38]
call fcn.140006d00
lea rcx, [rsp + 0x30]
call fcn.140001b54
mov rbx, rax
lea rcx, [rsp + 0x60]
call fcn.140001a48
nop
cmp qword [rbx + 0x20], 0x10
jb 0x140005cef
mov rbx, qword [rbx + 8]
jmp 0x140005cf3
add rbx, 8
cmp qword [rax + 0x20], 0x10
jb 0x140005d00
mov rdx, qword [rax + 8]
jmp 0x140005d04
lea rdx, [rax + 8]
mov rcx, qword [0x140018248]
call qword [0x140018220]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov rcx, rbx
call rax
mov qword [0x140018268], rax
cmp qword [rsp + 0x80], 0x10
jb 0x140005d41
mov rcx, qword [rsp + 0x68]
call fcn.140006d00
mov qword [rsp + 0x80], rsi
and qword [rsp + 0x78], 0
mov byte [rsp + 0x68], 0
cmp qword [rsp + 0x50], 0x10
jb 0x140005d66
mov rcx, qword [rsp + 0x38]
call fcn.140006d00
lea rcx, [rsp + 0x30]
call fcn.140001c58
nop
lea rbx, [0x1400171f0]
cmp qword [0x140017208], 0x10
cmovae rbx, qword [0x1400171f0]
cmp qword [rax + 0x20], 0x10
jb 0x140005d95
mov rdx, qword [rax + 8]
jmp 0x140005d99
lea rdx, [rax + 8]
mov rcx, qword [0x140018248]
call qword [0x140018220]
and qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [0x140018268]
call rax
mov qword [0x140018258], rax
cmp qword [rsp + 0x50], 0x10
jb 0x140005ddf
mov rcx, qword [rsp + 0x38]
call fcn.140006d00
mov dword [0x140018688], 4
add dword [0x140018680], 1
jmp 0x140005f12
cmp eax, 1
jne 0x140005eaf
lea edx, [rax + 5]
mov rcx, qword [0x140018270]
call fcn.140002304
mov ecx, 0x1388
call rax
and qword [rsp + 0x20], 0
lea r9, [0x140018688]
lea r8, [0x140018684]
mov edx, 0x20000005
mov rcx, qword [0x140018258]
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
mov ecx, dword [0x140018684]
call fcn.140007570
mov qword [0x140018278], rax
lea rcx, [rsp + 0x30]
call fcn.140001fe8
nop
cmp qword [rax + 0x20], 0x10
jb 0x140005e64
mov rdx, qword [rax + 8]
jmp 0x140005e68
lea rdx, [rax + 8]
mov rcx, qword [0x140018248]
call qword [0x140018220]
lea r9, [0x140018228]
mov r8d, dword [0x140018684]
mov rdx, qword [0x140018278]
mov rcx, qword [0x140018258]
call rax
nop
cmp qword [rsp + 0x50], 0x10
jb 0x140005ea6
mov rcx, qword [rsp + 0x38]
call fcn.140006d00
add dword [0x140018680], 1
jmp 0x140005f12
cmp eax, 2
jne 0x140005f1d
mov edx, dword [0x140018684]
xor ecx, ecx
lea r9d, [rax + 0x3e]
mov r8d, 0x1000
call qword [0x140018230]
mov r11, rax
mov qword [0x140018238], rax
movsxd rax, dword [0x140018684]
test eax, eax
jle 0x140005f00
mov r8, rax
mov rcx, r11
mov rdx, qword [0x140018278]
sub rdx, r11
mov al, byte [rdx + rcx]
mov byte [rcx], al
add rcx, 1
sub r8, 1
jne 0x140005ef1
xor edx, edx
mov rcx, r11
call qword [0x140018260]
add dword [0x140018680], 1
xor ecx, ecx
call fcn.140005b50
xor eax, eax
jmp 0x140005f1f
xor eax, eax
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140006f90
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rsi
ret