Function at 0x140007240
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response
Send data
Send http request
Set http header

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x198
mov rax, qword [0x140036010]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x108], 0
mov dword [rsp + 0xe8], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x50], 0
lea rax, str.text_
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x170], rax
mov qword [rsp + 0x178], 0
mov qword [rsp + 0x98], 0
mov dword [rsp + 0x10c], 0
lea rax, str.1234
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x80], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x14002fde8]
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x14000736e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, [0x14002fe10]
lea rdx, [0x14002fe28]
lea rcx, [0x14002fe58]
call fcn.14000bdf0
jmp 0x140007b57
mov rax, qword [rsp + 0x1b0]
add rax, 0x48
xor r9d, r9d
mov rcx, qword [rsp + 0x1b0]
movzx r8d, word [rcx + 0x458]
mov rdx, rax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x1400073d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, [0x14002fe70]
lea rdx, [0x14002fe88]
lea rcx, [0x14002feb8]
call fcn.14000bdf0
jmp 0x140007b57
mov rax, qword [rsp + 0x1b0]
add rax, 0x250
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0x1b0]
add rcx, 8
call fcn.140005a60
mov dword [rsp + 0x30], 0x800000
lea rcx, [rsp + 0x170]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov rcx, qword [rsp + 0xa8]
mov r8, rcx
mov rdx, rax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x68], 0
jne 0x140007466
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, [0x14002fed0]
lea rdx, [0x14002fee8]
lea rcx, [0x14002ff18]
call fcn.14000bdf0
jmp 0x140007b57
lea rcx, [rsp + 0x10c]
call fcn.14000c160
mov qword [rsp + 0x98], rax
cmp dword [rsp + 0x10c], 0
jg 0x14000748a
jmp 0x140007b57
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x100], rax
mov eax, dword [rsp + 0x10c]
mov dword [rsp + 0xf8], eax
xor r8d, r8d
mov rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0xf8]
call qword [sym.imp.CRYPT32.dll_PFXImportCertStore]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x1400074f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, [0x14002ff30]
lea rdx, [0x14002ff48]
lea rcx, [0x14002ff78]
call fcn.14000bdf0
jmp 0x140007b57
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.CRYPT32.dll_CertEnumCertificatesInStore]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
je 0x1400075c6
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.CRYPT32.dll_CertDuplicateCertificateContext]
mov qword [rsp + 0x80], rax
mov r9d, 0x28
mov r8, qword [rsp + 0x80]
mov edx, 0x2f
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x1400075a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, [0x14002ff90]
lea rdx, [0x14002ffa8]
lea rcx, str._s:_s_error_code:_d_r_n
call fcn.14000bdf0
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
jmp 0x140007b57
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
jmp 0x1400075c6
mov dword [rsp + 0x60], 3
mov dword [rsp + 0x40], 0
lea rcx, [rsp + 0x130]
call fcn.140005bf0
nop
lea r8, [rsp + 0x130]
mov edx, dword [rsp + 0x1c0]
mov rcx, qword [rsp + 0x1b0]
call fcn.140004d20
lea rcx, [rsp + 0x130]
call fcn.140005a60
xor r9d, r9d
mov r8d, 0xffffffff
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x140007641
lea rcx, [rsp + 0x130]
call fcn.140005b30
jmp 0x14000779c
lea rdx, [0x14002fb34]
lea rcx, [rsp + 0x150]
call fcn.140005b60
nop
lea rdx, [rsp + 0x150]
mov rcx, qword [rsp + 0x1b0]
call fcn.140004d90
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x1400076f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x2f8f
jne 0x1400076e3
mov dword [rsp + 0x110], 0x3300
mov r9d, 4
lea r8, [rsp + 0x110]
mov edx, 0x1f
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x60]
dec eax
mov dword [rsp + 0x60], eax
jmp 0x140007776
mov dword [rsp + 0x48], 1
cmp qword [rsp + 0x1b8], 0
je 0x140007759
cmp dword [rsp + 0x1c0], 0
je 0x140007759
mov edx, dword [rsp + 0x1c0]
mov rcx, qword [rsp + 0x1b8]
call fcn.14000c0c0
lea r9, [rsp + 0x108]
mov r8d, dword [rsp + 0x1c0]
mov rdx, qword [rsp + 0x1b8]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpWriteData]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x140007759
mov dword [rsp + 0x48], 0
lea rcx, [rsp + 0x150]
call fcn.140005b30
nop
lea rcx, [rsp + 0x130]
call fcn.140005b30
jmp 0x14000779c
lea rcx, [rsp + 0x150]
call fcn.140005b30
nop
lea rcx, [rsp + 0x130]
call fcn.140005b30
cmp dword [rsp + 0x60], 0
jne 0x1400075ce
cmp dword [rsp + 0x48], 0
je 0x1400077b4
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x140007b17
mov edx, 0x18
lea rcx, [rsp + 0x118]
call fcn.1400027a0
lea rcx, [rsp + 0x118]
call fcn.140005a20
nop
mov dword [rsp + 0x64], 0
lea rdx, [rsp + 0x108]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x108], 0
jbe 0x140007984
cmp dword [rsp + 0x40], 0
je 0x140007984
mov dword [rsp + 0x58], 0x1000
mov ecx, 0x1000
call fcn.14000e09c
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xf0], rax
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x118]
call fcn.1400058a0
cmp dword [rsp + 0x40], 0
je 0x140007984
cmp dword [rsp + 0x108], 0
jbe 0x140007984
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x108], eax
jbe 0x1400078a2
lea r9, [rsp + 0xe8]
mov r8d, dword [rsp + 0x58]
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov dword [rsp + 0x40], eax
jmp 0x1400078c9
lea r9, [rsp + 0xe8]
mov r8d, dword [rsp + 0x108]
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x1400078da
cmp dword [rsp + 0xe8], 0
ja 0x1400078df
jmp 0x140007984
mov eax, dword [rsp + 0xe8]
mov rcx, qword [rsp + 0xf0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xf0], rax
mov eax, dword [rsp + 0xe8]
mov ecx, dword [rsp + 0x58]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0xe8]
mov ecx, dword [rsp + 0x64]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x58], 0
jg 0x140007968
mov dword [rsp + 0x58], 0x1000
mov ecx, 0x1000
call fcn.14000e09c
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0xf0], rax
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x118]
call fcn.1400058a0
lea rdx, [rsp + 0x108]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov dword [rsp + 0x40], eax
jmp 0x140007856
lea rcx, [rsp + 0x118]
call fcn.140005870
test rax, rax
jbe 0x140007b0a
cmp dword [rsp + 0x64], 0
jle 0x140007b0a
mov rax, qword [rsp + 0x1b0]
cmp qword [rax + 0x470], 0
je 0x1400079f3
mov rax, qword [rsp + 0x1b0]
mov rax, qword [rax + 0x470]
mov qword [rsp + 0xc8], rax
mov edx, 1
mov rcx, qword [rsp + 0xc8]
call fcn.14000e068
mov rax, qword [rsp + 0x1b0]
mov qword [rax + 0x470], 0
lea rcx, [rsp + 0x118]
call fcn.140005870
imul rax, rax, 0x1000
add rax, 0x10
mov rcx, rax
call fcn.14000e09c
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0x1b0]
mov rcx, qword [rsp + 0xd0]
mov qword [rax + 0x470], rcx
mov rax, qword [rsp + 0x1b0]
mov rax, qword [rax + 0x470]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x1b0]
mov ecx, dword [rsp + 0x64]
mov dword [rax + 0x468], ecx
mov dword [rsp + 0x5c], 0
jmp 0x140007a6f
mov eax, dword [rsp + 0x5c]
inc eax
mov dword [rsp + 0x5c], eax
movsxd rax, dword [rsp + 0x5c]
mov qword [rsp + 0xd8], rax
lea rcx, [rsp + 0x118]
call fcn.140005870
mov rcx, qword [rsp + 0xd8]
cmp rcx, rax
jae 0x140007b0a
movsxd rax, dword [rsp + 0x5c]
mov rdx, rax
lea rcx, [rsp + 0x118]
call fcn.140005840
mov rdi, qword [rsp + 0x90]
mov rsi, qword [rax]
mov ecx, 0x1000
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x90]
add rax, 0x1000
mov qword [rsp + 0x90], rax
movsxd rax, dword [rsp + 0x5c]
mov rdx, rax
lea rcx, [rsp + 0x118]
call fcn.140005840
mov rax, qword [rax]
mov qword [rsp + 0xe0], rax
mov edx, 1
mov rcx, qword [rsp + 0xe0]
call fcn.14000e068
jmp 0x140007a65
lea rcx, [rsp + 0x118]
call fcn.140005a00
cmp dword [rsp + 0x48], 0
jne 0x140007b41
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str.HttpsProto::httpRequest
lea rdx, str.C:Usersljglocust_clientclienthttps.cpp
lea rcx, str._s__s_Error__d_has_occurred._n
call fcn.14000bdf0
xor r9d, r9d
mov r8d, 0xffffffff
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp qword [rsp + 0x50], 0
je 0x140007b6a
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp qword [rsp + 0x68], 0
je 0x140007b7d
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp qword [rsp + 0x70], 0
je 0x140007b90
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [rsp + 0x48], 0
je 0x140007b9e
mov byte [rsp + 0x44], 1
jmp 0x140007ba3
mov byte [rsp + 0x44], 0
movzx eax, byte [rsp + 0x44]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.14000db20
add rsp, 0x198
pop rdi
pop rsi
ret