Function at 0x1400057e0
Capabilities:
Read http header
Receive http response

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1400a3020]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rdi, rdx
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
xor r15d, r15d
mov qword [rbp - 0x50], r15
movdqu xmmword [rbp - 0x78], xmm1
mov qword [rbp - 0x68], r15
xor ecx, ecx
call fcn.1400011d0
mov rsi, rax
mov dword [rbp - 0x80], r15d
mov dword [rbp - 0x7c], 4
mov qword [rsp + 0x28], r15
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x80]
xor r8d, r8d
mov edx, 0x20000013
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x140005ea0
mov eax, 0x51eb851f
mov r8d, dword [rbp - 0x80]
mul r8d
shr edx, 5
cmp edx, 3
ja 0x140005eb9
nop word [rax + rax]
mov dword [rbp - 0x7c], r15d
lea rdx, [rbp - 0x7c]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x140005e87
mov eax, dword [rbp - 0x7c]
test eax, eax
je 0x1400059a3
mov r8d, eax
mov rcx, qword [rbp - 0x70]
mov r9, rcx
mov rdx, qword [rbp - 0x78]
sub r9, rdx
cmp rax, r9
jae 0x1400058d4
lea rcx, [rdx + rax]
mov qword [rbp - 0x70], rcx
jmp 0x14000590d
jbe 0x14000590d
mov rax, qword [rbp - 0x68]
sub rax, rdx
cmp r8, rax
jbe 0x1400058f4
mov rdx, r8
lea rcx, [rbp - 0x78]
call fcn.140007d60
mov rcx, qword [rbp - 0x70]
jmp 0x140005909
sub r8, r9
lea rbx, [r8 + rcx]
xor edx, edx
call fcn.14004a2e0
mov rcx, rbx
mov qword [rbp - 0x70], rbx
mov rdx, qword [rbp - 0x78]
mov dword [rbp - 0x18], r15d
sub rcx, rdx
lea r9, [rbp - 0x18]
mov r8d, ecx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x140005f1c
mov r8d, dword [rbp - 0x18]
mov r9, qword [rbp - 0x70]
mov rdx, r9
mov rcx, qword [rbp - 0x78]
sub rdx, rcx
cmp r8, rdx
jae 0x14000594d
lea r9, [r8 + rcx]
mov qword [rbp - 0x70], r9
jmp 0x140005989
jbe 0x140005989
mov rax, qword [rbp - 0x68]
sub rax, rcx
cmp r8, rax
jbe 0x14000596d
mov rdx, r8
lea rcx, [rbp - 0x78]
call fcn.140007d60
mov r9, qword [rbp - 0x70]
jmp 0x140005985
sub r8, rdx
lea rbx, [r8 + r9]
xor edx, edx
mov rcx, r9
call fcn.14004a2e0
mov r9, rbx
mov qword [rbp - 0x70], rbx
mov rcx, qword [rbp - 0x78]
mov r8, rcx
mov rdx, qword [rbp - 0x58]
lea rcx, [rbp - 0x60]
call fcn.140007b30
cmp dword [rbp - 0x7c], 0
ja 0x140005890
mov byte [rsp + 0x30], 0
mov rax, qword [rbp - 0x58]
mov rdi, qword [rbp - 0x50]
cmp rax, rdi
je 0x1400059c1
mov byte [rax], 0
inc rax
mov qword [rbp - 0x58], rax
jmp 0x1400059da
lea r8, [rsp + 0x30]
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.140007250
mov rdi, qword [rbp - 0x50]
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x28], r15
mov qword [rbp + 0x38], r15
mov qword [rbp + 0x40], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x28], 0
mov rbx, qword [rbp - 0x60]
sub rax, rbx
cmp rax, 1
jbe 0x140005a00
mov rdx, rbx
jmp 0x140005a0c
lea rdx, str.empty
mov eax, 5
mov r8, rax
lea rcx, [rbp + 0x28]
call fcn.140006c20
lea r8, [rbp + 0x28]
cmp qword [rbp + 0x40], 0x10
cmovae r8, qword [rbp + 0x28]
lea rdx, str.DbApi::readJsonResponse:__S
mov rcx, rsi
call fcn.140022090
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], r15
mov ecx, 0x48
call fcn.140047d0c
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x38], r15
movdqa xmm0, xmmword [0x140095740]
movdqu xmmword [rbp - 0x28], xmm0
mov byte [rbp - 0x38], 0
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x38], 0
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rbx + r8], 0
jne 0x140005aa0
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.140006ac0
nop
xor edx, edx
mov r8d, 0xf0
lea rcx, [rbp + 0x80]
call fcn.14004a2e0
lea rdx, [rsp + 0x38]
lea rcx, [rbp + 0x80]
call fcn.14000b510
nop
lea rdx, [rbp - 0x48]
lea rcx, [rbp + 0x80]
call fcn.140008cf0
nop
mov rax, qword [rbp + 0x80]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx + 0x80], rax
mov rax, qword [rbp + 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rbp + rcx + 0x7c], edx
lea rcx, [rbp + 0x90]
call fcn.14000bbc0
mov rax, qword [rbp + 0x80]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x80], rax
mov rax, qword [rbp + 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rbp + rcx + 0x7c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x110], rax
lea rcx, [rbp + 0x110]
call fcn.140044eec
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x140005bae
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005ba9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005f56
call fcn.1400477f0
mov qword [rbp - 0x10], r15
mov qword [rbp], r15
mov qword [rbp + 8], reloc.WS2_32.dll_ntohs
mov r8d, 6
lea rdx, str.status
lea rcx, [rbp - 0x10]
call fcn.140006ac0
lea r8, [rbp - 0x10]
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x48]
call fcn.140007ea0
mov rsi, qword [rsp + 0x48]
cmp byte [rsi + 0x19], 0
jne 0x140005c16
lea r8, [rsi + 0x20]
lea rdx, [rbp - 0x10]
call fcn.140007f60
test al, al
jne 0x140005c16
cmp rsi, qword [rbp - 0x48]
je 0x140005c16
mov rax, qword [rsi + 0x40]
cmp dword [rax], 1
jne 0x140005c16
xor sil, sil
jmp 0x140005c19
mov sil, 1
mov rdx, qword [rbp + 8]
cmp rdx, 0x10
jb 0x140005c54
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005c4f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005f56
call fcn.1400477f0
test sil, sil
jne 0x140005f35
mov qword [rbp - 0x10], r15
mov qword [rbp], r15
mov qword [rbp + 8], reloc.WS2_32.dll_ntohs
mov r8d, 6
lea rdx, str.status
lea rcx, [rbp - 0x10]
call fcn.140006ac0
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x48]
call fcn.1400070c0
mov r14, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x140005c9e
mov rax, qword [rax]
mov r8, r14
mov ecx, 2
cmp r14, rcx
cmova r8, rcx
lea rdx, [0x14008ccf8]
mov rcx, rax
call fcn.14004a500
mov esi, eax
test eax, eax
jne 0x140005cd4
cmp r14, 2
jae 0x140005ccd
lea esi, [rax - 1]
jmp 0x140005cd4
mov esi, r15d
seta sil
mov rdx, qword [rbp + 8]
cmp rdx, 0x10
jb 0x140005d0f
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005d0a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005f56
call fcn.1400477f0
test esi, esi
jne 0x140005f5c
lea rcx, [rbp - 0x48]
call fcn.14000b010
mov rdx, qword [rbp - 0x20]
cmp rdx, 0x10
jb 0x140005d5b
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005d56
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005ff8
call fcn.1400477f0
movdqa xmm0, xmmword [0x140095740]
movdqu xmmword [rbp - 0x28], xmm0
mov byte [rbp - 0x38], 0
mov r8, qword [rbp - 0x48]
mov r8, qword [r8 + 8]
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x48]
call fcn.14000f950
mov edx, 0x48
mov rcx, qword [rbp - 0x48]
call fcn.1400477f0
nop
mov rdx, qword [rbp + 0x40]
cmp rdx, 0x10
jb 0x140005dcb
inc rdx
mov rcx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005dc6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005ffe
call fcn.1400477f0
mov qword [rbp + 0x38], r15
mov qword [rbp + 0x40], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x28], 0
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140005e21
mov rdx, qword [rbp - 0x68]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005e10
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006004
call fcn.1400477f0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], r15
test rbx, rbx
je 0x140005e55
sub rdi, rbx
mov rax, rbx
cmp rdi, 0x1000
jb 0x140005e4a
add rdi, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005e81
mov rdx, rdi
mov rcx, rbx
call fcn.1400477f0
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1400477d0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.14004e14c
nop
lea rdx, [0x14008c770]
lea rcx, [rbp + 0x48]
call fcn.140006750
mov rcx, rax
call fcn.1400046e0
int3
lea rdx, [0x14008cc10]
lea rcx, [rbp - 0x10]
call fcn.140006750
mov rcx, rax
call fcn.1400046e0
int3
lea rdx, str.DbApi::readJsonResponse__:_HTTP_status__d
mov rcx, rsi
call fcn.1400220c0
lea rdx, str.HTTP_status:
lea rcx, [rbp - 0x10]
call fcn.140006750
nop
mov edx, dword [rbp - 0x80]
lea rcx, [rsp + 0x38]
call fcn.140004460
nop
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.1400066d0
nop
lea rcx, [rsp + 0x38]
call fcn.1400066f0
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x48]
call fcn.140004500
lea rdx, [0x1400a13e8]
lea rcx, [rbp + 0x48]
call fcn.140049b34
nop
lea rdx, [0x14008c790]
lea rcx, [rbp - 0x10]
call fcn.140006750
mov rcx, rax
call fcn.1400046e0
nop
lea rdx, str.Invalid_json_response
lea rcx, [rbp + 0x48]
call fcn.140004540
lea rdx, [0x1400a13e8]
lea rcx, [rbp + 0x48]
call fcn.140049b34
int3
call fcn.14004e14c
int3
lea rdx, str.message
lea rcx, [rsp + 0x38]
call fcn.140006750
nop
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x48]
call fcn.1400070c0
mov rbx, rax
lea rdx, str.error
lea rcx, [rbp - 0x10]
call fcn.140006750
nop
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x48]
call fcn.1400070c0
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140007000
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp + 0x48]
call fcn.1400071f0
nop
lea rcx, [rsp + 0x60]
call fcn.1400066f0
nop
lea rcx, [rbp - 0x10]
call fcn.1400066f0
nop
lea rcx, [rsp + 0x38]
call fcn.1400066f0
lea rdx, [rbp + 0x48]
lea rcx, [rbp - 0x10]
call fcn.140004500
lea rdx, [0x1400a13e8]
lea rcx, [rbp - 0x10]
call fcn.140049b34
nop
call fcn.14004e14c
nop
call fcn.14004e14c
nop
call fcn.14004e14c
int3