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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1f0
lea rbp, [rsp + 0x60]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x14005d040]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov r15, rdx
mov rdi, rcx
mov qword [rbp + 0x130], rcx
mov qword [rbp + 0xf0], rdx
xor ebx, ebx
mov dword [rbp + 8], ebx
mov dword [rbp + 0xe0], ebx
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rbx
mov qword [rcx + 0x18], rbx
xor r8d, r8d
lea rdx, [0x140051cae]
call fcn.1400078f0
mov dword [rbp + 8], 1
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.Winhttp_API
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r13, rax
test rax, rax
je 0x14003ffa5
movabs rax, 0xed1e03539a0af3e2
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x80], rax
movabs rax, 0x32f9956a9f7991e9
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x88], rax
movabs rax, 0x742c1fa2c3db65f4
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x90], rax
movabs rax, 0xeb702d48606163ba
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x98], rax
movabs rax, 0x846a763ff5799989
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x160], rax
movabs rsi, 0x5a8dfa0eb10aff86
mov qword [rbp], rsi
mov rax, qword [rbp]
mov qword [rbp + 0x168], rax
movabs rax, 0x1f0270c1edbe089b
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x170], rax
movabs rax, 0xeb702d48606163c8
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x178], rax
vmovdqu ymm0, ymmword [rbp + 0x80]
vpxor ymm1, ymm0, ymmword [rbp + 0x160]
vmovdqa ymmword [rbp + 0x80], ymm1
vxorps xmm0, xmm0, xmm0
vmovups xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], rbx
mov qword [rbp + 0x28], rbx
lea rax, [rbp + 0x80]
mov r8, 0xffffffffffffffff
vzeroupper
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14003f9e0
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0x10]
call fcn.1400078f0
nop
cmp qword [rbp + 0x20], 0
jne 0x14003fa1f
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
movdqa xmm1, xmmword [0x140052df0]
movdqu xmmword [rbp + 0x40], xmm1
mov word [rbp + 0x30], bx
jmp 0x14003fadc
lea r8, [rbp + 0x10]
cmp qword [rbp + 0x28], 0xf
cmova r8, qword [rbp + 0x10]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
mov r9d, dword [rbp + 0x20]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
xorps xmm0, xmm0
movups xmmword [rbp + 0x100], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x110], xmm1
mov r8, rbx
lea rcx, [rbp + 0x100]
call fcn.140047e40
lea rax, [rbp + 0x100]
cmp qword [rbp + 0x118], 7
cmova rax, qword [rbp + 0x100]
lea r8, [rbp + 0x10]
cmp qword [rbp + 0x28], 0xf
cmova r8, qword [rbp + 0x10]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp + 0x20]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movups xmm0, xmmword [rbp + 0x100]
movups xmmword [rbp + 0x30], xmm0
movups xmm1, xmmword [rbp + 0x110]
movups xmmword [rbp + 0x40], xmm1
movdqa xmm0, xmmword [0x140052df0]
movdqu xmmword [rbp + 0x110], xmm0
xor ebx, ebx
mov word [rbp + 0x100], bx
mov dword [rbp + 8], 3
mov r8d, 0x50
lea rdx, [rbp + 0x30]
cmp qword [rbp + 0x48], 7
cmova rdx, qword [rbp + 0x30]
xor r9d, r9d
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r12, rax
mov rdx, qword [rbp + 0x48]
cmp rdx, 7
jbe 0x14003fb49
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003fb44
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003fb44
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400498a0
movdqa xmm0, xmmword [0x140052df0]
movdqu xmmword [rbp + 0x40], xmm0
mov word [rbp + 0x30], bx
mov rdx, qword [rbp + 0x28]
cmp rdx, 0xf
jbe 0x14003fb98
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003fb93
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003fb93
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400498a0
mov qword [rbp + 0x20], rbx
mov qword [rbp + 0x28], 0xf
mov byte [rbp + 0x10], 0
test r12, r12
je 0x14003ff9b
mov rdx, r15
lea rcx, [rbp + 0xc0]
call fcn.14003f740
cmp qword [rax + 0x18], 7
jbe 0x14003fbca
mov rax, qword [rax]
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov r8, rax
lea rdx, [0x140052b38]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r14, rax
mov rdx, qword [rbp + 0xd8]
cmp rdx, 7
jbe 0x14003fc3a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003fc35
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003fc35
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400498a0
movdqa xmm0, xmmword [0x140052df0]
movdqu xmmword [rbp + 0xd0], xmm0
mov word [rbp + 0xc0], bx
test r14, r14
je 0x14003ff92
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x14003ff89
xor edx, edx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x14003ff89
nop dword [rax]
nop word [rax + rax]
mov dword [rbp + 0xe0], ebx
lea rdx, [rbp + 0xe0]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x14003fd26
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
movabs rax, 0xf14f564d9a0bebcc
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x50], rax
mov qword [rbp], rsi
mov rax, qword [rbp]
mov qword [rbp + 0x58], rax
movabs rax, 0x846a763ff5799989
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x140], rax
mov qword [rbp], rsi
mov rax, qword [rbp]
mov qword [rbp + 0x148], rax
movdqa xmm0, xmmword [rbp + 0x50]
xorps xmm0, xmmword [rbp + 0x140]
movdqa xmmword [rbp + 0x50], xmm0
lea rcx, [rbp + 0x50]
call fcn.140001f10
mov ecx, dword [rbp + 0xe0]
add ecx, 1
mov rax, 0xffffffffffffffff
cmovb rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x14003fefc
mov r8d, dword [rbp + 0xe0]
inc r8d
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea r9, [rbp + 0x120]
mov r8d, dword [rbp + 0xe0]
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x14003fdf9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
movabs rax, 0xf14f564d9a0bebcc
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x60], rax
movabs rcx, 0x5a8dfa0eb10aff86
mov qword [rbp], rcx
mov rax, qword [rbp]
mov qword [rbp + 0x68], rax
movabs rax, 0x846a763ff5799989
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x150], rax
mov qword [rbp], rcx
mov rax, qword [rbp]
mov qword [rbp + 0x158], rax
movdqa xmm0, xmmword [rbp + 0x60]
xorps xmm0, xmmword [rbp + 0x150]
movdqa xmmword [rbp + 0x60], xmm0
lea rcx, [rbp + 0x60]
call fcn.140001f10
jmp 0x14003fed0
mov r8, rsi
mov rdx, rdi
lea rcx, [rbp + 0xa0]
call fcn.140047ac0
mov rbx, rax
cmp rdi, rax
je 0x14003fe79
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x14003fe4d
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x14003fe48
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14003fef5
mov rcx, r8
call fcn.1400498a0
xor eax, eax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], 0xf
mov byte [rdi], al
movups xmm0, xmmword [rbx]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], 0xf
mov byte [rbx], al
mov rdx, qword [rbp + 0xb8]
cmp rdx, 0xf
jbe 0x14003feb6
inc rdx
mov rcx, qword [rbp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003feb1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003fef5
call fcn.1400498a0
xor ebx, ebx
mov qword [rbp + 0xb0], rbx
mov qword [rbp + 0xb8], 0xf
mov byte [rbp + 0xa0], bl
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp dword [rbp + 0xe0], 0
jbe 0x14003ff89
movabs rsi, 0x5a8dfa0eb10aff86
jmp 0x14003fca0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
movabs rax, 0xe94a1050d50decc6
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0xf0], rax
movabs rax, 0x5a8df077c36592e3
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0xf8], rax
movabs rax, 0x846a763ff5799989
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x130], rax
movabs rcx, 0x5a8dfa0eb10aff86
mov qword [rbp], rcx
mov rax, qword [rbp]
mov qword [rbp + 0x138], rax
movdqa xmm0, xmmword [rbp + 0xf0]
xorps xmm0, xmmword [rbp + 0x130]
movdqa xmmword [rbp + 0xf0], xmm0
lea rcx, [rbp + 0xf0]
call fcn.140001f10
mov dword [rbp + 0xe0], ebx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rdx, qword [r15 + 0x18]
cmp rdx, 0xf
jbe 0x14003ffdb
inc rdx
mov rcx, qword [r15]
cmp rdx, 0x1000
jb 0x14003ffd6
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140040018
mov rcx, r8
call fcn.1400498a0
mov qword [r15 + 0x10], rbx
mov qword [r15 + 0x18], 0xf
mov byte [r15], 0
mov rax, rdi
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140049880
mov rbx, qword [rsp + 0x240]
add rsp, 0x1f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3