Function at 0x14005db40
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x140078010]
xor rax, rsp
mov qword [rbp + 0x78], rax
mov r12, r9
mov rdi, r8
mov rbx, rdx
xor r15d, r15d
mov r8, rdx
cmp qword [rdx + 0x18], 0x10
jb 0x14005db83
mov r8, qword [rdx]
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
xor edx, edx
mov ecx, 0xfde9
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rsi, eax
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x10], xmm1
mov r8, rsi
lea rcx, [rbp]
call fcn.14005f700
lea rcx, [rbp]
cmp qword [rbp + 0x18], 8
cmovae rcx, qword [rbp]
cmp qword [rbx + 0x18], 0x10
jb 0x14005dbd4
mov rbx, qword [rbx]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rcx
mov r9d, 0xffffffff
mov r8, rbx
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
nop
mov r8, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14005dc01
mov r8, qword [rdi]
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
xor edx, edx
mov ecx, 0xfde9
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x28], r15
mov r8, rbx
lea rcx, [rbp - 0x40]
call fcn.14005f700
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae rdx, qword [rbp - 0x40]
cmp qword [rdi + 0x18], 0x10
jb 0x14005dc52
mov rdi, qword [rdi]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdx
mov r9d, 0xffffffff
mov r8, rdi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
nop
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.Chrome
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rbx, rax
mov qword [rbp + 0x60], rax
test rax, rax
jne 0x14005dcac
lea rcx, str.Failed_to_open_session_n
call fcn.14005d240
xor r14b, r14b
jmp 0x14005e142
mov dword [rsp + 0x50], 0x68
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rbp - 0x78], xmm0
movups xmmword [rbp - 0x68], xmm0
movups xmmword [rbp - 0x58], xmm0
movups xmmword [rbp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x50], xmm1
mov r8d, 0x100
lea rcx, [rbp + 0x40]
call fcn.14005f700
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x30], xmm1
mov r8d, 0x100
lea rcx, [rbp + 0x20]
call fcn.14005f700
nop
lea rax, [rbp + 0x40]
cmp qword [rbp + 0x58], 8
cmovae rax, qword [rbp + 0x40]
mov qword [rsp + 0x68], rax
mov eax, dword [rbp + 0x50]
mov dword [rsp + 0x70], eax
lea rax, [rbp + 0x20]
cmp qword [rbp + 0x38], 8
cmovae rax, qword [rbp + 0x20]
mov qword [rbp - 0x68], rax
mov eax, dword [rbp + 0x30]
mov dword [rbp - 0x60], eax
lea rcx, [rbp]
cmp qword [rbp + 0x18], 8
cmovae rcx, qword [rbp]
lea r9, [rsp + 0x50]
xor r8d, r8d
mov edx, dword [rbp + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
mov rcx, rbx
test eax, eax
jne 0x14005dd73
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor r14b, r14b
jmp 0x14005e098
xor r9d, r9d
movzx r8d, word [rsp + 0x74]
mov rdx, qword [rsp + 0x68]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov rdi, rax
mov qword [rbp + 0x68], rax
test rax, rax
jne 0x14005dda4
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor r14b, r14b
jmp 0x14005e089
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov r8, qword [rbp - 0x68]
lea rdx, str.POST
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rsi, rax
mov qword [rbp + 0x70], rax
test rax, rax
jne 0x14005ddf3
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor r14b, r14b
jmp 0x14005e07a
mov rdx, qword [rbp - 0x30]
mov qword [rsp + 0x40], rdx
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
sub rax, rdx
cmp rax, 0xe
jb 0x14005e219
lea r9, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae r9, qword [rbp - 0x40]
mov qword [rsp + 0x48], r9
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x10], xmm1
lea r13, [rdx + 0xe]
mov r15d, 7
lea r14, [rbp - 0x20]
cmp r13, r15
jbe 0x14005def3
mov r15, r13
or r15, 7
cmp r15, rcx
jbe 0x14005de6e
mov r15, rcx
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x14005de9d
mov eax, 0xa
cmp r15, rax
cmovb r15, rax
lea rcx, [r15 + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x14005e213
add rcx, rcx
cmp rcx, 0x1000
jb 0x14005ded3
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14005e213
mov rcx, rax
call fcn.140060544
test rax, rax
je 0x14005e05c
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
mov rdx, qword [rsp + 0x40]
mov r9, qword [rsp + 0x48]
jmp 0x14005deef
test rcx, rcx
je 0x14005deec
call fcn.140060544
mov r14, rax
mov rdx, qword [rsp + 0x40]
mov r9, qword [rsp + 0x48]
jmp 0x14005deef
xor r14d, r14d
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x10], r13
mov qword [rbp - 8], r15
movups xmm0, xmmword [str.Content_Type:]
movups xmmword [r14], xmm0
movsd xmm0, qword [0x14006b640]
movsd qword [r14 + 0x10], xmm0
mov eax, dword [0x14006b648]
mov dword [r14 + 0x18], eax
lea rcx, [r14 + 0x1c]
lea r8, [rdx + rdx]
mov rdx, r9
call sub.VCRUNTIME140.dll_memcpy
xor r15d, r15d
mov word [r14 + r13*2], r15w
mov eax, dword [r12 + 0x10]
cmp qword [r12 + 0x18], 0x10
jb 0x14005df47
mov r12, qword [r12]
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 8
cmovae rdx, qword [rbp - 0x20]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov r9, r12
mov r8d, 0xffffffff
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x14005dfd8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x400
mov r8d, r14d
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov r8, qword [rsp + 0x48]
mov edx, r14d
lea rcx, str.Error_code:__lu_nMessage:__ls_n
call fcn.14005d240
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rcx, str.Failed_to_send_request_n
call fcn.14005d240
jmp 0x14005dfe7
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x14005e007
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor r14b, r14b
jmp 0x14005e025
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov r14b, 1
mov rdx, qword [rbp - 8]
cmp rdx, 8
jb 0x14005e068
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005e063
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005e063
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140060350
movdqa xmm0, xmmword [0x14006b9b0]
movdqu xmmword [rbp - 0x10], xmm0
mov word [rbp - 0x20], r15w
test rsi, rsi
je 0x14005e089
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
test rdi, rdi
je 0x14005e098
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rdx, qword [rbp + 0x38]
cmp rdx, 8
jb 0x14005e0db
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005e0d6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005e0d6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140060350
movdqa xmm0, xmmword [0x14006b9b0]
movdqu xmmword [rbp + 0x30], xmm0
mov word [rbp + 0x20], r15w
mov rdx, qword [rbp + 0x58]
cmp rdx, 8
jb 0x14005e130
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005e12b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005e12b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140060350
movdqa xmm0, xmmword [0x14006b9b0]
movdqu xmmword [rbp + 0x50], xmm0
mov word [rbp + 0x40], r15w
test rbx, rbx
je 0x14005e151
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x14005e194
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005e18f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005e18f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140060350
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], r15w
mov rdx, qword [rbp + 0x18]
cmp rdx, 8
jb 0x14005e1e8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005e1e3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005e1e3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140060350
movzx eax, r14b
mov rcx, qword [rbp + 0x78]
xor rcx, rsp
call fcn.14005fef0
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140038580
nop
call fcn.140045b70
int3