Function at 0x1800970f0
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response
Set http header

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1288]
mov eax, 0x1388
call fcn.1801532b0
sub rsp, rax
mov qword [rbp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x180272190]
xor rax, rsp
mov qword [rbp + 0x1270], rax
mov rdi, r9
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x58], r8
mov rbx, rdx
mov r12, rcx
lea r13, vtable.WKString.0
mov qword [rbp - 0x68], r13
mov byte [rbp - 0x60], 0
xor esi, esi
mov qword [rbp - 0x58], rsi
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], rsi
lea rdx, str.WKHttpWinHttpSession::DoHttpPostPersistConnection
lea rcx, [rbp - 0x68]
call sym.WebKeyAPICPPDLLx64.dll_protected:_void___cdecl_WKString::Set_char_const____ptr64____ptr64
lea r14, [0x1801ca568]
mov rdx, r14
cmp qword [rbp - 0x48], rsi
cmovne rdx, qword [rbp - 0x58]
lea rcx, str.Entering__s__
call sym.WebKeyAPICPPDLLx64.dll_public:_static_void___cdecl_BKLog::WKLogMsg_char_const____ptr64_
nop
mov rcx, rdi
call sym.WebKeyAPICPPDLLx64.dll_public:_void___cdecl_WKBinary::Clear_void____ptr64
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 1]
lea rcx, str.WEB_key_API
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r15, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1800977bb
imul edx, dword [rbp + 0x12f0], 0x3e8
mov dword [rsp + 0x20], edx
mov r9d, edx
mov r8d, edx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
mov qword [rbp - 0x18], r13
mov byte [rbp - 0x10], sil
mov qword [rbp - 8], rsi
mov qword [rbp], rsi
mov qword [rbp + 8], rsi
mov qword [rbp + 0x10], r13
mov byte [rbp + 0x18], sil
mov qword [rbp + 0x20], rsi
mov qword [rbp + 0x28], rsi
mov qword [rbp + 0x30], rsi
mov qword [rbp - 0x40], r13
mov byte [rbp - 0x38], sil
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x28], rsi
mov qword [rbp - 0x20], rsi
mov qword [rsp + 0x60], r13
mov byte [rsp + 0x68], sil
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x80], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rbp - 0x18]
lea rdx, [rbp + 0x10]
mov rcx, rbx
call fcn.1800cfae0
movzx ebx, al
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x180097269
call fcn.1801525f4
test bl, bl
je 0x1800977f6
mov r13, qword [rbp + 0x20]
test r13, r13
je 0x180097282
mov rcx, r13
call fcn.180168404
mov r8, r14
cmp qword [rbp + 8], 0
cmovne r8, qword [rbp - 8]
mov dword [rsp + 0x28], 0x800
lea rax, [rbp + 0x270]
mov qword [rsp + 0x20], rax
xor edx, edx
xor ecx, ecx
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x180097831
xor r9d, r9d
movzx r8d, word [rsp + 0x50]
lea rdx, [rbp + 0x270]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov rdi, rax
mov qword [rbp - 0x70], rax
test rax, rax
je 0x18009786c
mov r8, r14
cmp qword [rbp - 0x20], 0
cmovne r8, qword [rbp - 0x30]
mov dword [rsp + 0x28], 0x800
lea rax, [rbp + 0xa70]
mov qword [rsp + 0x20], rax
xor edx, edx
xor ecx, ecx
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1800978b0
lea rax, str.image_gif
mov qword [rbp + 0x40], rax
lea rax, str.image_x_xbitmap
mov qword [rbp + 0x48], rax
lea rax, str.image_jpeg
mov qword [rbp + 0x50], rax
lea rax, str.octet_stream
mov qword [rbp + 0x58], rax
lea rax, [0x1801d9bc0]
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x68], rsi
mov r8d, 0x100
lea r9, str.HTTPS
mov rbx, qword [rbp + 0x30]
test rbx, rbx
je 0x180097394
mov rax, rsi
nop dword [rax]
movzx ecx, byte [r13 + rax]
inc rax
cmp cl, byte [r9 + rax - 1]
jne 0x18009738b
cmp rax, 6
jne 0x180097370
cmp cl, byte [r9 + rax - 1]
mov eax, 0x800100
cmove r8d, eax
mov dword [rsp + 0x30], r8d
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea r8, [rbp + 0xa70]
lea rdx, str.POST
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r14, rax
test rax, rax
je 0x1800978eb
test rbx, rbx
je 0x180097419
mov rcx, rsi
lea rdx, str.HTTPS
nop dword [rax]
movzx eax, byte [rcx + r13]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x180097419
cmp rcx, 6
jne 0x1800973e0
mov dword [rsp + 0x50], 0x3300
lea r9d, [rcx - 2]
lea r8, [rsp + 0x50]
lea edx, [rcx + 0x19]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov ecx, gethostname
call fcn.180152604
mov qword [rsp + 0x48], rax
lea r8, str.Cannot_convert_URL_to_wide_characters
mov edx, 0x3f3
mov rcx, rax
call sym.WebKeyAPICPPDLLx64.dll_public:_void___cdecl_WKException::constructor_unsigned_int__char_const____ptr64____ptr64
nop
mov qword [rsp + 0x40], rax
lea rdx, [0x1802460c0]
lea rcx, [rsp + 0x40]
call fcn.180155078
int3
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ecx, gethostname
call fcn.180152604
mov qword [rsp + 0x48], rax
lea r8, str.Cannot_cannot_to_host
mov edx, 0x3f3
mov rcx, rax
call sym.WebKeyAPICPPDLLx64.dll_public:_void___cdecl_WKException::constructor_unsigned_int__char_const____ptr64____ptr64
nop
mov qword [rsp + 0x40], rax
lea rdx, [0x1802460c0]
lea rcx, [rsp + 0x40]
call fcn.180155078
int3
mov ecx, gethostname
call fcn.180152604
mov qword [rsp + 0x48], rax
lea r8, str.Cannot_convert_resource_to_wide_characters
mov edx, 0x3f3
mov rcx, rax
call sym.WebKeyAPICPPDLLx64.dll_public:_void___cdecl_WKException::constructor_unsigned_int__char_const____ptr64____ptr64
nop
mov qword [rsp + 0x40], rax
lea rdx, [0x1802460c0]
lea rcx, [rsp + 0x40]
call fcn.180155078
int3
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]