Function at 0x140058894
Capabilities:
Receive http response

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov r14, rdx
mov rsi, rcx
xor r13d, r13d
cmp byte [rcx + 0x40], r13b
je 0x1400588d5
mov eax, dword [rcx + 0x6c]
mov dword [rdx], eax
mov eax, dword [rcx + 0x70]
mov dword [rdx + 4], eax
jmp 0x140058a8d
cmp byte [rcx + 0x29], r13b
jne 0x1400588e7
mov qword [rdx], 6
jmp 0x140058a8d
mov rdx, qword [rcx + 0x50]
mov rbx, qword [rcx + 0x48]
cmp rbx, rdx
je 0x14005890e
mov rdi, rdx
sub rdi, rdx
mov r8, rdi
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_memmove]
lea r11, [rdi + rbx]
mov qword [rsi + 0x50], r11
mov dword [rsi + 0x68], r13d
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r13
mov edi, r13d
lea r12, [rsi + 0x88]
mov dword [rbp + 0x10], r13d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x38], r13d
mov rcx, qword [r12]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
lock inc dword [rsp + 0x38]
mov rcx, qword [rsi + 0x10]
test rcx, rcx
jne 0x140058956
lea ebx, [rcx + 6]
jmp 0x140058996
lea rdx, [rbp + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
setne al
test al, al
je 0x14005896e
mov ebx, r13d
jmp 0x140058996
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp + 0x28]
call fcn.14005b258
mov ebx, dword [rax]
jmp 0x140058996
lock dec dword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
cmp dword [rsp + 0x38], r13d
ja 0x140058983
test ebx, ebx
jne 0x140058a5f
mov eax, dword [rbp + 0x10]
lea rcx, [rsp + 0x50]
test eax, eax
je 0x140058a47
lea edx, [rdi + rax]
call fcn.140034fa0
mov dword [rbp + 0x20], r13d
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x48], r13d
mov rcx, qword [r12]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
lock inc dword [rsp + 0x48]
mov rcx, qword [rsi + 0x10]
test rcx, rcx
jne 0x1400589e8
lea ebx, [rcx + 6]
jmp 0x140058a34
mov edx, edi
add rdx, qword [rsp + 0x50]
lea r9, [rbp + 0x20]
mov r8d, dword [rbp + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
setne al
test al, al
je 0x140058a0b
mov ebx, r13d
jmp 0x140058a34
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x28]
call fcn.14005b258
mov ebx, dword [rax]
jmp 0x140058a34
lock dec dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
cmp dword [rsp + 0x48], r13d
ja 0x140058a21
test ebx, ebx
jne 0x140058a5f
add edi, dword [rbp + 0x20]
jmp 0x14005892b
mov edx, edi
call fcn.140034fa0
lea rdx, [rsp + 0x50]
lea rcx, [rsi + 0x48]
call fcn.140034e70
mov dword [rsi + 0x68], edi
mov byte [rsi + 0x40], 1
mov dword [rsi + 0x6c], ebx
mov dword [rsi + 0x70], r13d
mov dword [r14], ebx
mov dword [r14 + 4], r13d
cmp qword [rsp + 0x50], r13
je 0x140058a8d
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP100.dll_public:_void___cdecl_std::_Container_base0::_Orphan_all_void____ptr64]
mov rcx, qword [rsp + 0x50]
call fcn.14002d25c
mov rax, r14
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret