Function at 0x1400581f4
Capabilities:
Receive http response
Send data
Send http request

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
mov qword [r11 + 0x10], rdx
push rbp
mov rbp, rsp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1a0
mov qword [r11 - 0x130], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov r14, r9
mov r12, r8
mov rbx, rdx
mov rdi, rcx
mov rax, qword [rcx + 0xb8]
xor esi, esi
mov qword [r11 - 0xc0], rsi
lea rcx, [0x1400d33c0]
mov qword [r11 - 0xc8], rcx
mov qword [r11 - 0xb8], rax
mov qword [r11 - 0xb0], rsi
mov dword [rsp + 0x130], esi
mov qword [r11 - 0xa0], rsi
mov dword [rsp + 0x140], esi
mov qword [r11 - 0x90], rsi
mov dword [rbp - 0x80], esi
mov qword [r11 - 0x80], rsi
mov dword [r11 - 0x78], esi
mov qword [r11 - 0x70], rsi
mov dword [r11 - 0x68], esi
mov qword [r11 - 0x60], rsi
mov dword [r11 - 0x58], esi
mov qword [r11 - 0x50], rsi
mov dword [r11 - 0x48], esi
lea rcx, [r11 - 0xc8]
call fcn.140018cfc
test eax, eax
jns 0x1400582c6
mov qword [rbx], 5
lea rcx, [rsp + 0x110]
call fcn.14000f92c
mov rax, rbx
jmp 0x140058878
mov rax, qword [rbp - 0x68]
mov qword [rsp + 0x100], rax
lea r8, [rsp + 0x100]
lea rdx, str.HttpWin:_Sending_request_for_url_s
mov ecx, 3
call fcn.14005b550
cmp byte [rdi + 0x29], sil
jne 0x14005885a
cmp byte [rdi + 0x28], sil
je 0x14005885a
mov r13b, sil
mov rcx, rdi
call fcn.140058aa8
mov r15d, dword [rbp + 0x30]
test r13b, r13b
jne 0x140058670
lea rcx, [rdi + 0x88]
mov qword [rsp + 0x58], rcx
xor esi, esi
mov dword [rsp + 0x60], esi
xor eax, eax
mov byte [rbp + 0x10], al
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
lock inc dword [rsp + 0x60]
mov rcx, qword [rdi + 0x10]
test rcx, rcx
jne 0x14005837c
mov qword [rbx], 6
cmp dword [rsp + 0x60], esi
jbe 0x140058367
lock dec dword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
jmp 0x14005834c
lea rcx, [rsp + 0x110]
call fcn.14000f92c
mov rax, rbx
jmp 0x140058878
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
mov r9, r14
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
setne sil
cmp dword [rsp + 0x60], 0
jbe 0x1400583bb
lock dec dword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
jmp 0x14005839f
test sil, sil
je 0x140058657
test r12, r12
je 0x1400585b7
test r15d, r15d
je 0x1400585b7
mov rcx, r12
call fcn.14008f6ac
xor eax, eax
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], rax
mov esi, 0x2000
mov edx, esi
cmp r15d, esi
cmovb edx, r15d
lea rcx, [rsp + 0x88]
call fcn.140034fa0
mov r14d, r15d
jmp 0x14005841d
mov esi, 0x2000
mov r8d, esi
cmp r14d, esi
cmovb r8d, r14d
mov rax, qword [r12]
lea r9, [rsp + 0x40]
mov rdx, qword [rsp + 0x88]
mov rcx, r12
call qword [rax + 0x18]
test eax, eax
setns sil
test sil, sil
je 0x140058572
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x140058572
sub r14d, eax
lea rcx, [rdi + 0x88]
mov qword [rsp + 0x78], rcx
and dword [rsp + 0x80], 0
xor eax, eax
mov byte [rsp + 0x45], al
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
lock inc dword [rsp + 0x80]
mov rcx, qword [rdi + 0x10]
xor esi, esi
test rcx, rcx
jne 0x14005850c
mov qword [rbx], 6
cmp dword [rsp + 0x80], esi
jbe 0x1400584ba
lock dec dword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
jmp 0x140058499
cmp qword [rsp + 0x88], rsi
je 0x1400584df
lea rcx, [rsp + 0x88]
call qword [sym.imp.MSVCP100.dll_public:_void___cdecl_std::_Container_base0::_Orphan_all_void____ptr64]
mov rcx, qword [rsp + 0x88]
call fcn.14002d25c
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x98], rsi
lea rcx, [rsp + 0x110]
call fcn.14000f92c
mov rax, rbx
jmp 0x140058878
lea r9, [rsp + 0xe8]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x88]
call qword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
setne sil
cmp dword [rsp + 0x80], 0
jbe 0x14005854f
lock dec dword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
jmp 0x14005852d
test sil, sil
je 0x14005856f
mov eax, dword [rsp + 0xe8]
cmp dword [rsp + 0x40], eax
jne 0x14005856f
mov sil, 1
test r14d, r14d
jne 0x140058418
jmp 0x140058572
xor sil, sil
cmp qword [rsp + 0x88], 0
je 0x140058598
lea rcx, [rsp + 0x88]
call qword [sym.imp.MSVCP100.dll_public:_void___cdecl_std::_Container_base0::_Orphan_all_void____ptr64]
mov rcx, qword [rsp + 0x88]
call fcn.14002d25c
and qword [rsp + 0x88], 0
and qword [rsp + 0x90], 0
and qword [rsp + 0x98], 0
mov r14, qword [rbp + 0x28]
test sil, sil
je 0x140058657
lea rcx, [rdi + 0x88]
mov qword [rsp + 0x68], rcx
and dword [rsp + 0x70], 0
xor eax, eax
mov byte [rsp + 0x46], al
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
lock inc dword [rsp + 0x70]
mov rcx, qword [rdi + 0x10]
test rcx, rcx
jne 0x140058628
mov dword [rbx], 6
and dword [rbx + 4], ecx
cmp dword [rsp + 0x70], 0
jbe 0x140058613
lock dec dword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
jmp 0x1400585f7
lea rcx, [rsp + 0x110]
call fcn.14000f92c
mov rax, rbx
jmp 0x140058878
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
setne sil
cmp dword [rsp + 0x70], 0
jbe 0x140058652
lock dec dword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
jmp 0x140058636
test sil, sil
jne 0x140058668
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f00
je 0x14005830e
mov r13b, 1
jmp 0x14005830e
mov byte [rdi + 0x29], sil
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0xdc], eax
xor r14d, r14d
test sil, sil
je 0x14005868e
mov esi, r14d
jmp 0x14005869f
mov edx, eax
lea rcx, [rsp + 0xb0]
call fcn.14005b258
mov esi, dword [rax]
cmp byte [rdi + 0x29], r14b
jne 0x1400586d2
mov rax, qword [rbp - 0x68]
mov qword [rsp + 0x108], rax
lea r9, [rsp + 0xdc]
lea r8, [rsp + 0x108]
lea rdx, str.HttpWin:_Error:_Failed_to_send_request_for__s__error0x_08x
mov ecx, 2
call fcn.14005b5e0
mov dword [rsp + 0xf0], esi
mov dword [rsp + 0xf4], r14d
cmp esi, 7
jne 0x14005883b
mov qword [rsp + 0xe0], r14
lea rcx, [rdi + 0x88]
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x50], r14d
xor eax, eax
mov byte [rsp + 0x44], al
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
lock inc dword [rsp + 0x50]
mov rcx, qword [rdi + 0x10]
test rcx, rcx
jne 0x140058758
mov qword [rbx], 6
cmp dword [rsp + 0x50], r14d
jbe 0x140058743
lock dec dword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
jmp 0x140058727
lea rcx, [rsp + 0x110]
call fcn.14000f92c
mov rax, rbx
jmp 0x140058878
mov dword [rsp + 0xd8], 8
lea r9, [rsp + 0xd8]
lea r8, [rsp + 0xe0]
mov edx, 0x4e
call qword [sym.imp.WINHTTP.dll_WinHttpQueryOption]
cmp dword [rsp + 0x50], r14d
jbe 0x14005879a
lock dec dword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
jmp 0x14005877e
cmp qword [rsp + 0xe0], r14
je 0x14005883b
lea rdx, [0x1401794b0]
mov ecx, 0x18
call fcn.140005ba8
mov rdx, rax
test rax, rax
jne 0x14005880d
lea rax, str.bad_allocation
mov qword [rsp + 0xf8], rax
lea r8d, [rdx + 1]
lea rdx, [rsp + 0xf8]
lea rcx, [rsp + 0xb8]
call qword [sym.imp.MSVCR100.dll_public:_void___cdecl_std::exception::constructor_char_const__const___ptr64_const____ptr64__int____ptr64]
lea rax, vtable.std::bad_alloc.0
mov qword [rsp + 0xb8], rax
lea rdx, [0x14010c3d8]
lea rcx, [rsp + 0xb8]
call sub.MSVCR100.dll__CxxThrowException
mov rax, qword [rsp + 0xe0]
lea rcx, [0x1400fcc08]
mov qword [rdx], rcx
mov dword [rdx + 8], r14d
lea rcx, [0x1400fcc28]
mov qword [rdx], rcx
mov qword [rdx + 0x10], rax
mov rcx, qword [rdi + 0x18]
mov rax, qword [rcx]
call qword [rax + 0x30]
mov dword [rdi + 0x2c], esi
mov dword [rdi + 0x30], r14d
mov dword [rbx], esi
mov dword [rbx + 4], r14d
lea rcx, [rsp + 0x110]
call fcn.14000f92c
mov rax, rbx
jmp 0x140058878
mov qword [rbx], 6
lea rcx, [rsp + 0x110]
call fcn.14000f92c
mov rax, rbx
jmp 0x140058878
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret