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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x82a0]
mov eax, 0x83a0
call fcn.1400cf640
sub rsp, rax
mov rax, qword [0x1400fe4a8]
xor rax, rsp
mov qword [rbp + 0x8290], rax
xor esi, esi
mov qword [rbp - 0x70], rdx
mov r13d, esi
mov dword [rsp + 0x64], esi
mov rdi, rcx
mov qword [rbp - 0x78], rcx
call fcn.14003b630
test al, al
lea rcx, [rbp + 0x140]
mov ebx, esi
mov r15d, 4
cmovne ebx, r15d
call fcn.14003b8a0
mov rcx, rax
cmp qword [rax + 0x18], 0x10
jb 0x14003a701
mov rcx, qword [rax]
mov rax, qword [rax + 0x10]
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x50], rcx
lea rcx, [rbp + 0x180]
mov qword [rsp + 0x58], rax
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x70], xmm0
call fcn.140029280
cmp qword [rax + 0x18], 8
jb 0x14003a735
mov rax, qword [rax]
xor r9d, r9d
mov dword [rsp + 0x20], esi
xor r8d, r8d
mov edx, ebx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rdx, qword [rbp + 0x198]
mov r14, rax
cmp rdx, 8
jb 0x14003a78f
mov rcx, qword [rbp + 0x180]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003a78a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003a7e0
call fcn.1400ceafc
mov rdx, qword [rbp + 0x158]
mov qword [rbp + 0x190], rsi
mov qword [rbp + 0x198], 7
mov word [rbp + 0x180], si
cmp rdx, 0x10
jb 0x14003a7ec
mov rcx, qword [rbp + 0x140]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003a7e7
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003a7e7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ceafc
mov qword [rsp + 0x83f0], r12
mov qword [rbp + 0x150], rsi
mov qword [rbp + 0x158], 0xf
mov byte [rbp + 0x140], sil
test r14, r14
jne 0x14003a819
xor bl, bl
jmp 0x14003b363
movsd xmm0, qword [rdi + 0x80]
mov rcx, r14
mulsd xmm0, qword [0x1400d9ae0]
cvttsd2si edx, xmm0
mov r9d, edx
mov dword [rsp + 0x20], edx
mov r8d, edx
call qword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x14003a854
xor bl, bl
test r14, r14
je 0x14003b363
jmp 0x14003b35a
call fcn.14003b630
test al, al
jne 0x14003a87b
mov r9d, r15d
mov dword [rsp + 0x50], 0xaa0
lea r8, [rsp + 0x50]
mov edx, 0x54
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
xorps xmm0, xmm0
lea rcx, [rdi + 8]
xor eax, eax
cmp qword [rdi + 0x20], 0x10
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp], rax
movups xmmword [rbp - 0x40], xmm0
mov dword [rbp - 0x60], 0x68
movups xmmword [rbp - 0x10], xmm0
mov dword [rbp - 0x40], 1
mov dword [rbp - 0x10], 1
mov dword [rbp], 1
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
jb 0x14003a8c7
mov rcx, qword [rdi + 8]
mov rax, qword [rdi + 0x18]
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x50], rcx
lea rcx, [rbp + 0x200]
mov qword [rsp + 0x58], rax
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x70], xmm0
call fcn.140029280
cmp qword [rbp + 0x218], 8
lea rcx, [rbp + 0x200]
lea r9, [rbp - 0x60]
cmovae rcx, qword [rbp + 0x200]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x14003a922
xor bl, bl
jmp 0x14003b31e
mov esi, dword [rbp - 0x40]
lea rcx, [rbp + 0x1c0]
mov r12, qword [rbp - 0x48]
xor ebx, ebx
mov qword [rbp + 0x1c0], rbx
mov qword [rbp + 0x1d0], rbx
mov qword [rbp + 0x1d8], 7
lea r15, [rsi + rsi]
lea eax, [rbx + 0xa]
cmp rsi, 7
ja 0x14003a975
mov r8, r15
mov qword [rbp + 0x1d0], rsi
mov rdx, r12
call sub.VCRUNTIME140.dll_memmove
mov word [rbp + r15 + 0x1c0], bx
jmp 0x14003a9bb
mov rdi, rsi
or rdi, 7
cmp rdi, rax
cmovb rdi, rax
lea rdx, [rdi + 1]
call fcn.14001e3a0
mov r8, r15
mov qword [rbp + 0x1d0], rsi
mov rdx, r12
mov qword [rbp + 0x1d8], rdi
mov rcx, rax
mov rbx, rax
call sub.VCRUNTIME140.dll_memcpy
xor eax, eax
mov word [r15 + rbx], ax
mov qword [rbp + 0x1c0], rbx
xor ebx, ebx
mov esi, dword [rbp - 0x10]
lea rcx, [rbp + 0x1e0]
mov r12, qword [rbp - 0x18]
mov qword [rbp + 0x1e0], rbx
mov qword [rbp + 0x1f0], rbx
mov qword [rbp + 0x1f8], 7
lea r15, [rsi + rsi]
cmp rsi, 7
ja 0x14003aa09
mov r8, r15
mov qword [rbp + 0x1f0], rsi
mov rdx, r12
call sub.VCRUNTIME140.dll_memmove
mov word [rbp + r15 + 0x1e0], bx
jmp 0x14003aa55
mov eax, 0xa
mov rdi, rsi
or rdi, 7
cmp rdi, 0xa
cmovb rdi, rax
lea rdx, [rdi + 1]
call fcn.14001e3a0
mov r8, r15
mov qword [rbp + 0x1f0], rsi
mov rdx, r12
mov qword [rbp + 0x1f8], rdi
mov rcx, rax
mov rbx, rax
call sub.VCRUNTIME140.dll_memcpy
xor eax, eax
mov word [r15 + rbx], ax
mov qword [rbp + 0x1e0], rbx
xor ebx, ebx
mov edi, dword [rbp]
lea rcx, [rbp + 0x160]
mov r12, qword [rbp - 8]
mov qword [rbp + 0x160], rbx
mov qword [rbp + 0x170], rbx
mov qword [rbp + 0x178], 7
lea r15, [rdi + rdi]
cmp rdi, 7
ja 0x14003aaaa
mov r8, r15
mov qword [rbp + 0x170], rdi
mov rdx, r12
call sub.VCRUNTIME140.dll_memmove
mov word [rbp + r15 + 0x160], bx
mov rsi, qword [rbp + 0x160]
jmp 0x14003aaf4
mov eax, 0xa
mov rbx, rdi
or rbx, 7
cmp rbx, 0xa
cmovb rbx, rax
lea rdx, [rbx + 1]
call fcn.14001e3a0
mov r8, r15
mov qword [rbp + 0x170], rdi
mov rdx, r12
mov qword [rbp + 0x178], rbx
mov rcx, rax
mov rsi, rax
call sub.VCRUNTIME140.dll_memcpy
xor ebx, ebx
mov word [r15 + rsi], bx
mov qword [rbp + 0x160], rsi
mov r9, qword [rbp + 0x178]
lea rcx, [rbp + 0x160]
mov rdx, qword [rbp + 0x170]
cmp r9, 8
mov r12, 0xffffffffffffffff
cmovae rcx, rsi
test rdx, rdx
je 0x14003ab38
mov rax, rdx
mov r8, rcx
cmp word [r8], 0x23
je 0x14003abe3
add r8, 2
sub rax, 1
jne 0x14003ab23
mov r8, r12
cmp rdx, r8
mov qword [rbp + 0x140], rbx
lea rcx, [rbp + 0x140]
mov qword [rbp + 0x150], rbx
cmovb r8, rdx
mov qword [rbp + 0x158], 7
cmp r9, 8
lea rdx, [rbp + 0x160]
cmovae rdx, rsi
call fcn.14001e4a0
cmp qword [rbp + 0x158], 8
lea rdx, [rbp + 0x140]
mov r8, qword [rbp + 0x150]
lea rcx, [rbp + 0x1e0]
cmovae rdx, qword [rbp + 0x140]
call fcn.14002a720
mov qword [rbp + 0x1a0], rbx
mov rdi, rax
mov qword [rbp + 0x1b0], rbx
mov qword [rbp + 0x1b8], rbx
cmp qword [rax + 0x18], 8
mov rsi, qword [rax + 0x10]
jb 0x14003abc6
mov rdi, qword [rax]
cmp rsi, 8
jae 0x14003abee
movups xmm0, xmmword [rdi]
mov qword [rbp + 0x1b8], 7
movups xmmword [rbp + 0x1a0], xmm0
jmp 0x14003ac37
sub r8, rcx
sar r8, 1
jmp 0x14003ab3b
movabs rax, 0x7ffffffffffffffe
lea rcx, [rbp + 0x1a0]
mov rbx, rsi
or rbx, 7
cmp rbx, rax
cmova rbx, rax
lea rdx, [rbx + 1]
call fcn.14001e3a0
lea r8, [rsi*2 + 2]
mov qword [rbp + 0x1a0], rax
mov rdx, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp + 0x1b8], rbx
mov rdx, qword [rbp + 0x158]
mov qword [rbp + 0x1b0], rsi
cmp rdx, 8
jb 0x14003ac87
mov rcx, qword [rbp + 0x140]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003ac82
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003ac82
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ceafc
movzx r8d, word [rbp - 0x3c]
lea rdx, [rbp + 0x1c0]
xor esi, esi
mov qword [rbp + 0x158], 7
cmp qword [rbp + 0x1d8], 8
mov rcx, r14
mov qword [rbp + 0x150], rsi
cmovae rdx, qword [rbp + 0x1c0]
xor r9d, r9d
mov word [rbp + 0x140], si
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r15, rax
test rax, rax
jne 0x14003acd9
xor bl, bl
jmp 0x14003b22e
mov rsi, qword [rbp - 0x78]
cmp qword [rsi + 0x40], 0x10
lea rcx, [rsi + 0x28]
jb 0x14003acec
mov rcx, qword [rsi + 0x28]
mov rax, qword [rsi + 0x38]
lea rbx, [rbp + 0x1a0]
cmp qword [rbp + 0x1b8], 8
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x50], rcx
lea rcx, [rbp + 0x180]
cmovae rbx, qword [rbp + 0x1a0]
mov qword [rsp + 0x58], rax
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x70], xmm0
call fcn.140029280
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x14003ad3a
mov rdx, qword [rax]
xor ecx, ecx
mov r8d, 0x800000
cmp dword [rbp - 0x4c], 2
mov eax, ecx
cmove eax, r8d
xor r9d, r9d
mov dword [rsp + 0x30], eax
mov r8, rbx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rcx
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r8, qword [rbp + 0x198]
mov rdi, rax
cmp r8, 8
jb 0x14003ad8f
mov rdx, qword [rbp + 0x180]
lea rcx, [rbp + 0x180]
inc r8
call fcn.14003bd00
xor ecx, ecx
mov qword [rbp + 0x198], 7
mov qword [rbp + 0x190], rcx
mov word [rbp + 0x180], cx
test rdi, rdi
jne 0x14003adb6
xor bl, bl
jmp 0x14003b223
mov rbx, qword [rsi + 0x68]
xor eax, eax
mov qword [rbp - 0x80], rcx
mov byte [rsp + 0x41], al
mov eax, 0xffffffff
mov byte [rsp + 0x40], 1
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], cl
jne 0x14003b1b6
movzx esi, byte [rsp + 0x41]
lea r9, str.Content_Length
mov rax, 0xffffffffffffffff
lea r12, [rbx + 0x20]
inc rax
cmp byte [r9 + rax], 0
jne 0x14003adf1
mov r8, qword [r12 + 0x18]
mov rcx, r12
cmp r8, 0x10
jb 0x14003ae0d
mov rcx, qword [r12]
mov rdx, qword [r12 + 0x10]
mov qword [rsp + 0x50], rdx
cmp rdx, rax
jne 0x14003ae8a
mov r8, rdx
mov rdx, r9
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14003ae80
cmp qword [r12 + 0x38], 0x10
lea rcx, [r12 + 0x20]
jb 0x14003ae3d
mov rcx, qword [r12 + 0x20]
mov rax, qword [r12 + 0x30]
lea rdx, [rbp - 0x80]
mov qword [rbp + 0x10], rcx
lea rcx, [rbp + 0x10]
mov qword [rbp + 0x18], rax
call fcn.140049d50
test al, al
sete r12b
mov byte [rsp + 0x40], r12b
bt r13d, 0xb
jae 0x14003b0ab
btr r13d, 0xb
lea rcx, [rbp + 0x40]
call fcn.14002ae10
jmp 0x14003b0ab
mov rdx, qword [rsp + 0x50]
mov r8, qword [r12 + 0x18]
cmp qword [r12 + 0x38], 0x10
lea rcx, [r12 + 0x20]
jb 0x14003ae9c
mov rcx, qword [r12 + 0x20]
mov rax, qword [r12 + 0x30]
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x20], rcx
movaps xmm0, xmmword [rbp + 0x20]
movdqa xmmword [rbp + 0x30], xmm0
cmp r8, 0x10
jb 0x14003aebc
mov r12, qword [r12]
mov qword [rsp + 0x78], rdx
lea rcx, [rbp + 0x260]
mov qword [rsp + 0x70], r12
lea rdx, [rsp + 0x50]
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x50], xmm0
call fcn.140029280
mov r8d, 2
lea rdx, [0x1400d9acc]
mov rcx, rax
call fcn.14002a720
xor r12d, r12d
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x220]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
mov qword [rax + 0x10], r12
movups xmmword [rbp + 0x180], xmm0
mov qword [rax + 0x18], 7
movups xmmword [rbp + 0x190], xmm1
mov word [rax], r12w
call fcn.140029280
mov r9, rax
lea r8, [rbp + 0x180]
movzx edx, sil
lea rcx, [rbp + 0x240]
call fcn.14003a430
lea r8d, [r12 + 2]
lea rdx, [0x1400d9ac4]
lea rcx, [rbp + 0x240]
call fcn.14002a720
mov qword [rbp + 0x140], r12
lea rcx, [rbp + 0x240]
mov qword [rbp + 0x150], r12
mov qword [rbp + 0x158], r12
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x140], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x150], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
call fcn.14000ce00
mov rdx, qword [rbp + 0x198]
cmp rdx, 8
jb 0x14003afed
mov rcx, qword [rbp + 0x180]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003afe8
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003b12a
call fcn.1400ceafc
lea rcx, [rbp + 0x260]
mov qword [rbp + 0x190], r12
mov qword [rbp + 0x198], 7
mov word [rbp + 0x180], r12w
call fcn.14000ce00
lea rcx, [rbp + 0x220]
call fcn.14000ce00
mov eax, 0xffffffff
cmp qword [rbp + 0x150], rax
ja 0x14003b036
mov r8d, dword [rbp + 0x150]
jmp 0x14003b03a
int3
cmp qword [rbp + 0x158], 8
lea rdx, [rbp + 0x140]
mov r9d, 0x20000000
mov rcx, rdi
cmovae rdx, qword [rbp + 0x140]
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x14003b131
mov r8, qword [rbp + 0x158]
cmp r8, 8
jb 0x14003b08b
mov rdx, qword [rbp + 0x140]
lea rcx, [rbp + 0x140]
inc r8
call fcn.14003bd00
mov qword [rbp + 0x150], r12
mov word [rbp + 0x140], r12w
movzx r12d, byte [rsp + 0x40]
mov qword [rbp + 0x158], 7
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x14003b0d8
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x14003b0d3
nop
cmp rbx, qword [rax + 0x10]
jne 0x14003b0d3
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x14003b0c0
mov rbx, rax
jmp 0x14003b0ff
mov rcx, qword [rax]
mov rbx, rax
cmp byte [rcx + 0x19], 0
jne 0x14003b0ff
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rcx]
mov rbx, rcx
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x14003b0f0
cmp byte [rbx + 0x19], 0
je 0x14003addf
test r12b, r12b
jne 0x14003b1a8
mov rax, qword [rbp - 0x80]
xor ebx, ebx
mov edx, 0xffffffff
mov ecx, ebx
cmp rax, rdx
cmovbe ecx, eax
jmp 0x14003b399
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
bt r13d, 0xd
jae 0x14003b146
btr r13d, 0xd
lea rcx, [rbp + 0x40]
call fcn.14002ae10
bt r13d, 0xc
jae 0x14003b159
lea rcx, [rbp + 0x220]
call fcn.140009ca0
mov rdx, qword [rbp + 0x158]
cmp rdx, 8
jb 0x14003b218
mov rcx, qword [rbp + 0x140]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003b1a1
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003b1a1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ceafc
jmp 0x14003b218
xor ecx, ecx
mov eax, 0xffffffff
mov r12, 0xffffffffffffffff
lea rdx, str.Transfer_Encoding:_chunked_r_n
nop dword [rax]
inc r12
cmp word [rdx + r12*2], 0
jne 0x14003b1c0
cmp r12, rax
jbe 0x14003b1d4
int3
mov r9d, 0x20000000
mov r8d, r12d
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x14003b38f
bt r13d, 0xf
jae 0x14003b203
btr r13d, 0xf
lea rcx, [rbp + 0x40]
call fcn.14002ae10
test r13d, 0x4000
je 0x14003b218
lea rcx, [rbp + 0x220]
call fcn.140009ca0
xor bl, bl
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor esi, esi
mov r8, qword [rbp + 0x1b8]
cmp r8, 8
jb 0x14003b251
mov rdx, qword [rbp + 0x1a0]
lea rcx, [rbp + 0x1a0]
inc r8
call fcn.14003bd00
mov r8, qword [rbp + 0x178]
mov qword [rbp + 0x1b0], rsi
mov qword [rbp + 0x1b8], 7
mov word [rbp + 0x1a0], si
cmp r8, 8
jb 0x14003b28d
mov rdx, qword [rbp + 0x160]
lea rcx, [rbp + 0x160]
inc r8
call fcn.14003bd00
mov r8, qword [rbp + 0x1f8]
mov qword [rbp + 0x170], rsi
mov qword [rbp + 0x178], 7
mov word [rbp + 0x160], si
cmp r8, 8
jb 0x14003b2c9
mov rdx, qword [rbp + 0x1e0]
lea rcx, [rbp + 0x1e0]
inc r8
call fcn.14003bd00
mov r8, qword [rbp + 0x1d8]
mov qword [rbp + 0x1f0], rsi
mov qword [rbp + 0x1f8], 7
mov word [rbp + 0x1e0], si
cmp r8, 8
jb 0x14003b305
mov rdx, qword [rbp + 0x1c0]
lea rcx, [rbp + 0x1c0]
inc r8
call fcn.14003bd00
mov qword [rbp + 0x1d0], rsi
mov qword [rbp + 0x1d8], 7
mov word [rbp + 0x1c0], si
mov r8, qword [rbp + 0x218]
cmp r8, 8
jb 0x14003b341
mov rdx, qword [rbp + 0x200]
lea rcx, [rbp + 0x200]
inc r8
call fcn.14003bd00
mov qword [rbp + 0x210], rsi
mov qword [rbp + 0x218], 7
mov word [rbp + 0x200], si
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov r12, qword [rsp + 0x83f0]
movzx eax, bl
mov rcx, qword [rbp + 0x8290]
xor rcx, rsp
call fcn.1400cebd0
add rsp, 0x83a0
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
movzx r12d, byte [rsp + 0x40]
xor ebx, ebx
mov ecx, ebx
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], ecx
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x20], ebx
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x14003b3dc
bt r13d, 0x11
jae 0x14003b3d0
btr r13d, 0x11
lea rcx, [rbp + 0x40]
call fcn.14002ae10
test r13d, 0x10000
jmp 0x14003b20a
mov rsi, rbx
nop
mov rax, qword [rbp - 0x78]
lea rdx, [rbp + 0x28a]
mov r8d, 0x8000
mov rcx, qword [rax + 0x78]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003b218
mov eax, 0xffffffff
test r12b, r12b
je 0x14003b48d
cmp rbx, rax
ja 0x14003b41c
mov r9d, ebx
jmp 0x14003b422
int3
lea r8, [0x1400d9ad4]
mov edx, 8
lea rcx, [rbp + 0x280]
call fcn.14003bd40
mov word [rbp + 0x288], 0xa0d
lea rcx, [rbp + 0x280]
mov word [rbp + rbx + 0x28a], 0xa0d
mov r8d, 0xffffffff
mov eax, 8
nop
cmp byte [rcx], 0x30
jne 0x14003b470
add eax, r8d
inc rcx
cmp eax, 1
ja 0x14003b460
lea rdx, [rbp + 0x288]
lea rcx, [rbx + 4]
sub rdx, rax
add rcx, rax
cmp rcx, r8
jbe 0x14003b49b
int3
lea rdx, [rbp + 0x28a]
cmp rbx, rax
ja 0x14003b4bd
mov ecx, ebx
test ecx, ecx
je 0x14003b4be
mov r8d, ecx
lea r9, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
je 0x14003b4f7
mov eax, dword [rsp + 0x50]
add rsi, rax
jmp 0x14003b4be
int3
test rbx, rbx
jg 0x14003b3e0
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x14003b518
bt r13d, 0x15
jae 0x14003b4eb
btr r13d, 0x15
lea rcx, [rbp + 0x40]
call fcn.14002ae10
test r13d, 0x100000
jmp 0x14003b20a
bt r13d, 0x13
jae 0x14003b50c
btr r13d, 0x13
lea rcx, [rbp + 0x40]
call fcn.14002ae10
test r13d, 0x40000
jmp 0x14003b20a
xor r12d, r12d
mov dword [rsp + 0x64], 4
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], r12
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x60], r12d
mov edx, 0x20000013
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x14003b572
bt r13d, 0x17
jae 0x14003b566
btr r13d, 0x17
lea rcx, [rbp + 0x40]
call fcn.14002ae10
test r13d, 0x400000
jmp 0x14003b20a
mov eax, dword [rsp + 0x60]
add eax, 0xffffff38
test eax, 0xfffffffb
je 0x14003b5a3
bt r13d, 0x19
jae 0x14003b597
btr r13d, 0x19
lea rcx, [rbp + 0x40]
call fcn.14002ae10
test r13d, 0x1000000
jmp 0x14003b20a
mov rbx, qword [rbp - 0x70]
test rbx, rbx
je 0x14003b5ff
mov qword [rbx + 0x10], r12
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14003b5bd
mov rax, qword [rbx]
mov byte [rax], r12b
mov dword [rsp + 0x50], r12d
lea r9, [rsp + 0x50]
mov r8d, 0x1000
lea rdx, [rbp + 0x280]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x14003b606
mov r8d, dword [rsp + 0x50]
lea rdx, [rbp + 0x280]
mov rcx, rbx
call fcn.14001e410
cmp dword [rsp + 0x50], r12d
ja 0x14003b5c5
mov bl, 1
jmp 0x14003b21a
bt r13d, 0x1b
jae 0x14003b61b
btr r13d, 0x1b
lea rcx, [rbp + 0x40]
call fcn.14002ae10
test r13d, 0x4000000
jmp 0x14003b20a