Function at 0x180066110
Capabilities:
Initialize winhttp library
Make an http request with a cookie
Prepare http request
Read http header
Receive http response
Send data
Send http request
Set http header

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1190]
mov eax, 0x1290
call fcn.1800eaee0
sub rsp, rax
mov qword [rbp + 0x10], 0xfffffffffffffffe
mov qword [rsp + 0x12e0], rbx
movaps xmmword [rsp + 0x1280], xmm6
mov rax, qword [0x18019e008]
xor rax, rsp
mov qword [rbp + 0x1170], rax
mov rbx, rcx
mov qword [rbp - 0x18], rcx
cmp qword [rcx + 0x20], 0
ja 0x180066179
mov dword [rcx + 0x160], 3
xor al, al
jmp 0x18006723b
mov qword [rbp + 0xc8], 7
xor r13d, r13d
mov qword [rbp + 0xc0], r13
mov word [rbp + 0xb0], r13w
or rdi, 0xffffffffffffffff
mov r9, rdi
xor r8d, r8d
lea rcx, [rbp + 0xb0]
call fcn.1800a1410
nop
lea rcx, [rbp + 0xb0]
cmp qword [rbp + 0xc8], 8
cmovae rcx, qword [rbp + 0xb0]
lea rdx, [0x1800fda10]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
lea rcx, [rbp + 0xb0]
test eax, eax
jne 0x1800661e9
lea r8d, [r13 + 3]
lea rdx, [0x1800fda10]
jmp 0x180066220
cmp qword [rbp + 0xc8], 8
cmovae rcx, qword [rbp + 0xb0]
lea rdx, [0x1800fda18]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x1800671ad
lea r8d, [rax + 4]
lea rdx, [0x1800fda18]
lea rcx, [rbp + 0xb0]
call fcn.1800a1330
mov sil, 1
mov byte [rsp + 0x41], sil
cmp qword [rbx], 0
jne 0x180066270
lea rcx, [rbx + 0x188]
cmp qword [rcx + 0x18], 8
jb 0x180066244
mov rcx, qword [rcx]
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rbx], rax
test rax, rax
jne 0x180066270
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x160], eax
jmp 0x1800671b7
mov eax, dword [rbx + 0x21c]
mov dword [rsp + 0x20], eax
mov r9d, dword [rbx + 0x218]
mov r8d, dword [rbx + 0x214]
mov edx, dword [rbx + 0x210]
mov rcx, qword [rbx]
call qword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x110]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0xa28
lea rcx, [rbp + 0x740]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rbp + 0x20]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0x20], 0x68
lea rax, [rbp + 0x110]
mov qword [rbp + 0x38], rax
mov dword [rbp + 0x40], 0x104
lea rax, [rbp + 0x740]
mov qword [rbp + 0x68], rax
mov dword [rbp + 0x70], 0x514
mov eax, 1
mov dword [rbp + 0x30], eax
lea r14, [rbx + 0x10]
cmp qword [r14 + 0x18], 8
jb 0x180066311
mov rcx, qword [r14]
jmp 0x180066314
mov rcx, r14
lea r9, [rbp + 0x20]
xor r8d, r8d
mov edx, dword [rbx + 0x20]
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x1800671ba
cmp word [rbp + 0x110], 0
jne 0x18006633b
mov r8, r13
jmp 0x180066350
lea rax, [rbp + 0x110]
mov r8, rdi
inc r8
cmp word [rax + r8*2], 0
jne 0x180066345
lea rcx, [rbx + 0x30]
lea rdx, [rbp + 0x110]
call fcn.1800a1330
xor r9d, r9d
movzx r8d, word [rbp + 0x44]
lea rdx, [rbp + 0x110]
mov rcx, qword [rbx]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r15, rax
mov qword [rbp - 0x10], rax
test rax, rax
je 0x1800671ba
mov ecx, r13d
mov eax, 0x800000
cmp dword [rbp + 0x34], 2
cmove ecx, eax
lea rdx, [rbp + 0xb0]
cmp qword [rbp + 0xc8], 8
cmovae rdx, qword [rbp + 0xb0]
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
xor r9d, r9d
mov r8, qword [rbp + 0x68]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rdi, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1800671a2
cmp byte [rbx + 8], 0
jne 0x180066409
cmp dword [rbp + 0x34], 2
jne 0x180066409
mov dword [rsp + 0x48], 0x3100
mov r9d, 4
lea r8, [rsp + 0x48]
lea edx, [r9 + 0x1b]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
xor r12b, r12b
mov byte [rsp + 0x40], r12b
mov ecx, r13d
movsd xmm6, qword [0x180180010]
nop dword [rax]
mov eax, ecx
inc ecx
mov dword [rsp + 0x70], ecx
cmp eax, 3
jae 0x18006717f
cmp qword [rbx + 0x130], 0
jbe 0x180066472
lea rdx, [rbx + 0x120]
cmp qword [rdx + 0x18], 8
jb 0x18006644c
mov rdx, qword [rdx]
mov r9d, 0x1000000
mov r8d, dword [rbx + 0x130]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x180066472
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x160], eax
cmp qword [rbx + 0x100], 0
jbe 0x18006651c
mov qword [rbp + 0xa8], 7
mov qword [rbp + 0xa0], r13
mov word [rbp + 0x90], r13w
mov r8d, 8
lea rdx, str.Cookie:
lea rcx, [rbp + 0x90]
call fcn.1800a1330
nop
lea rdx, [rbx + 0xf0]
or r15, 0xffffffffffffffff
mov r9, r15
xor r8d, r8d
lea rcx, [rbp + 0x90]
call fcn.1800a2460
lea rdx, [rbp + 0x90]
cmp qword [rbp + 0xa8], 8
cmovae rdx, qword [rbp + 0x90]
mov r9d, 0x1000000
mov r8d, dword [rbp + 0xa0]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x18006650e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x160], eax
lea rcx, [rbp + 0x90]
call fcn.1800a0710
jmp 0x180066520
or r15, 0xffffffffffffffff
cmp qword [rbx + 0x150], 0
jbe 0x180066634
xor eax, eax
mov qword [rbp - 8], rax
mov qword [rbp], rax
mov qword [rbp + 8], rax
mov dword [rbp - 8], 3
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x320]
call sub.VCRUNTIME140.dll_memset
lea r8, [rbx + 0x140]
cmp qword [r8 + 0x18], 8
jb 0x180066568
mov r8, qword [r8]
mov edx, 0x104
lea rcx, [rbp + 0x320]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rax, [rbp + 0x320]
mov qword [rbp], rax
mov r9d, 0x18
lea r8, [rbp - 8]
lea edx, [r9 + 0xe]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x1800665ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x160], eax
cmp qword [rbx + 0x1c0], 0
jbe 0x180066634
mov rax, qword [rbx + 0x1c0]
lea r8, [rbx + 0x1b0]
cmp qword [r8 + 0x18], 8
jb 0x1800665ce
mov r8, qword [r8]
lea r9d, [rax + rax]
mov edx, 0x1002
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x1800665f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x160], eax
cmp qword [rbx + 0x1e0], 0
jbe 0x180066634
mov rax, qword [rbx + 0x1e0]
lea r8, [rbx + 0x1d0]
cmp qword [r8 + 0x18], 8
jb 0x180066612
mov r8, qword [r8]
lea r9d, [rax + rax]
mov edx, 0x1003
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x180066634
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x160], eax
xor sil, sil
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x180066859
xor eax, eax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
lea rcx, [rbp - 0x68]
call qword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x180067160
mov rax, qword [rbp - 0x60]
test rax, rax
je 0x180066762
xor ecx, ecx
mov qword [rsp + 0x78], rcx
mov qword [rbp - 0x70], rcx
mov dword [rsp + 0x78], 3
mov ecx, 1
mov dword [rsp + 0x7c], ecx
mov qword [rbp - 0x80], rax
mov dword [rbp - 0x6c], ecx
mov dword [rbp - 0x70], r13d
mov qword [rbp - 0x78], r13
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
cmp qword [r14 + 0x18], 8
jb 0x1800666d5
mov rdx, qword [r14]
jmp 0x1800666d8
mov rdx, r14
lea r9, [rbp - 0x48]
lea r8, [rsp + 0x78]
mov rcx, qword [rbx]
call qword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x180066812
mov r9d, 0x18
lea r8, [rbp - 0x48]
lea edx, [r9 + 0xe]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x18006673b
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
movzx esi, sil
test eax, eax
mov eax, 1
cmovne esi, eax
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x18006674a
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x18006681e
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x18006681e
mov rdi, qword [rbp - 0x58]
test rdi, rdi
je 0x18006683c
xor eax, eax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x30], 3
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x320]
call sub.VCRUNTIME140.dll_memset
mov r8, rdi
mov edx, 0x104
lea rcx, [rbp + 0x320]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rax, [rbp + 0x320]
mov qword [rbp - 0x28], rax
mov rdi, qword [rbp - 0x50]
test rdi, rdi
je 0x1800667f5
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x530]
call sub.VCRUNTIME140.dll_memset
mov r8, rdi
mov edx, 0x104
lea rcx, [rbp + 0x530]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rax, [rbp + 0x530]
mov qword [rbp - 0x20], rax
mov r9d, 0x18
lea r8, [rbp - 0x30]
lea edx, [r9 + 0xe]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x18006681e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x160], eax
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x18006682d
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x18006683c
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x18006684b
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rdi, qword [rsp + 0x50]
test sil, sil
je 0x18006716c
mov rdx, qword [rbx + 0x110]
test rdx, rdx
je 0x18006688f
mov dword [rsp + 0x48], r13d
lea r9, [rsp + 0x48]
mov r8d, dword [rbx + 0x118]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x18006688f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x160], eax
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x180067160
mov dword [rsp + 0x44], r13d
mov qword [rsp + 0x28], r13
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x16]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x1800668dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x180066c78
mov ecx, dword [rsp + 0x44]
mov eax, 2
mul rcx
cmovo rax, r15
mov rcx, rax
call fcn.1800ea204
mov r12, rax
test rax, rax
je 0x180066c72
mov r8d, dword [rsp + 0x44]
add r8, r8
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x28], r13
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
mov r9, r12
xor r8d, r8d
lea edx, [r8 + 0x16]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x180066c6a
cmp word [r12], 0
jne 0x180066949
mov r8, r13
jmp 0x18006695b
mov r8, r15
nop dword [rax]
inc r8
cmp word [r12 + r8*2], 0
jne 0x180066950
mov rdx, r12
lea rcx, [rbx + 0x50]
call fcn.1800a1330
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r13
mov qword [rbp + 0xa8], 7
mov qword [rbp + 0xa0], r13
mov word [rbp + 0x90], r13w
xor r8d, r8d
lea rdx, [0x1800fd900]
lea rcx, [rbp + 0x90]
call fcn.1800a1330
nop
cmp byte [rbx + 0x1a8], 0
jne 0x180066a13
mov r8d, 0x19
lea rdx, str.charset_A_Za_z0_9___
lea rcx, [rbp + 0x90]
call fcn.1800a1330
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rbx + 0x50]
lea rcx, [rbp + 0x90]
call fcn.180065720
test al, al
je 0x180066a13
mov rax, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
sub rax, rdx
sar rax, 5
test rax, rax
je 0x180066a13
lea rcx, [rbx + 0x90]
cmp rcx, rdx
je 0x180066a13
mov r9, r15
xor r8d, r8d
call fcn.1800a1410
mov r8d, 0x18
lea rdx, str.Content_Length:__0_9_
lea rcx, [rbp + 0x90]
call fcn.1800a1330
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rbx + 0x50]
lea rcx, [rbp + 0x90]
call fcn.180065720
test al, al
je 0x180066a76
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
sub rax, rcx
sar rax, 5
test rax, rax
je 0x180066a76
cmp qword [rcx + 0x18], 8
jb 0x180066a6a
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov dword [rbx + 0xc8], eax
mov r8d, 0x12
lea rdx, str.Location:__0_9_
lea rcx, [rbp + 0x90]
call fcn.1800a1330
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rbx + 0x50]
lea rcx, [rbp + 0x90]
call fcn.180065720
test al, al
je 0x180066ada
mov rax, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
sub rax, rdx
sar rax, 5
test rax, rax
je 0x180066ada
lea rcx, [rbx + 0x1f0]
cmp rcx, rdx
je 0x180066ada
mov r9, r15
xor r8d, r8d
call fcn.1800a1410
mov r8d, 0x15
lea rdx, str.Set_Cookie:_b.__n
lea rcx, [rbp + 0x90]
call fcn.1800a1330
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rbx + 0x50]
lea rcx, [rbp + 0x90]
call fcn.180065720
test al, al
je 0x180066c4e
mov rsi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x58]
sub rsi, r14
sar rsi, 5
test rsi, rsi
je 0x180066c4e
mov rdi, r13
lea r15, [rbx + 0xd0]
or rbx, 0xffffffffffffffff
nop dword [rax]
mov r9, rbx
xor r8d, r8d
mov rdx, r14
mov rcx, r15
call fcn.1800a2460
lea rax, [rsi - 1]
cmp rdi, rax
je 0x180066b6f
mov r8d, 2
lea rdx, [0x1800fdb04]
mov rcx, r15
call fcn.1800a2300
inc rdi
add r14, 0x20
cmp rdi, rsi
jb 0x180066b40
mov rbx, qword [rbp - 0x18]
or r15, 0xffffffffffffffff
mov qword [rbp + 0xe8], 7
mov qword [rbp + 0xe0], r13
mov word [rbp + 0xd0], r13w
mov r14d, 1
mov r8d, r14d
lea rdx, [0x1800fda0c]
lea rcx, [rbp + 0xd0]
call fcn.1800a1330
nop
lea rdi, [rbx + 0xd0]
lea r8, [rbp + 0xd0]
mov rdx, rdi
lea rcx, [rbp + 0xf0]
call fcn.180065ac0
mov rsi, rax
cmp rdi, rax
je 0x180066bfa
xor r8d, r8d
movzx edx, r14b
mov rcx, rdi
call fcn.1800a1250
mov rdx, rsi
mov rcx, rdi
call fcn.1800a1500
nop
lea rcx, [rbp + 0xf0]
call fcn.1800a0710
nop
lea rcx, [rbp + 0xd0]
call fcn.1800a0710
cmp qword [rbx + 0xe0], 0
jbe 0x180066c4e
mov rcx, qword [rbx + 0xe0]
cmp qword [rdi + 0x18], 8
jb 0x180066c30
mov rax, qword [rdi]
jmp 0x180066c33
mov rax, rdi
cmp word [rax + rcx*2 - 2], 0x3b
je 0x180066c4e
mov r8, r14
lea rdx, [0x1800fdb0c]
mov rcx, rdi
call fcn.1800a2300
nop
lea rcx, [rbp + 0x90]
call fcn.1800a0710
nop
lea rcx, [rsp + 0x58]
call fcn.1800a1090
mov rdi, qword [rsp + 0x50]
mov rcx, r12
call fcn.1800ea1fc
movzx r12d, byte [rsp + 0x40]
mov dword [rsp + 0x44], r13d
mov qword [rsp + 0x28], r13
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x13]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x180066cb2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x180066d47
mov ecx, dword [rsp + 0x44]
mov eax, 2
mul rcx
cmovo rax, r15
mov rcx, rax
call fcn.1800ea204
mov rdi, rax
test rax, rax
je 0x180066d42
mov r8d, dword [rsp + 0x44]
add r8, r8
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x28], r13
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
mov r9, rdi
xor r8d, r8d
lea edx, [r8 + 0x13]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x180066d3a
cmp word [rdi], 0
jne 0x180066d17
mov r8, r13
jmp 0x180066d2b
mov r8, r15
nop word [rax + rax]
inc r8
cmp word [rdi + r8*2], 0
jne 0x180066d20
lea rcx, [rbx + 0x168]
mov rdx, rdi
call fcn.1800a1330
mov rcx, rdi
call fcn.1800ea1fc
mov rdi, qword [rsp + 0x50]
mov r15d, 0x2800
mov r14d, r13d
mov rcx, qword [rbx + 0xb0]
test rcx, rcx
je 0x180066d68
call fcn.1800ea1fc
mov qword [rbx + 0xb0], r13
mov rcx, r15
call fcn.1800ea204
mov qword [rbx + 0xb0], rax
test rax, rax
je 0x18006717a
xor edx, edx
mov r8, r15
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
nop dword [rax]
mov dword [rsp + 0x44], r13d
lea rdx, [rsp + 0x44]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x180066ea2
mov rdx, qword [rbx + 0xc0]
test rdx, rdx
je 0x180066dde
mov ecx, dword [rbx + 0xc8]
test ecx, ecx
je 0x180066dde
mov eax, r14d
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
mulsd xmm0, xmm6
xorps xmm1, xmm1
cvtsi2sd xmm1, rcx
divsd xmm0, xmm1
call rdx
mov ecx, dword [rsp + 0x44]
inc ecx
call fcn.1800ea204
mov rdi, rax
test rax, rax
je 0x180066eb0
mov r8d, dword [rsp + 0x44]
inc r8d
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x48], r13d
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
mov rdx, rdi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x180066e98
mov ecx, dword [rsp + 0x48]
lea eax, [rcx + r14]
cmp eax, r15d
jbe 0x180066e7e
mov rsi, qword [rbx + 0xb0]
add r15d, r15d
mov ecx, r15d
call fcn.1800ea204
mov qword [rbx + 0xb0], rax
test rax, rax
je 0x180066ec1
mov r8d, r15d
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov r8d, r14d
mov rdx, rsi
mov rcx, qword [rbx + 0xb0]
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rsi
call fcn.1800ea1fc
mov ecx, dword [rsp + 0x48]
mov r8d, ecx
mov ecx, r14d
add rcx, qword [rbx + 0xb0]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
add r14d, dword [rsp + 0x48]
mov rcx, rdi
call fcn.1800ea1fc
jmp 0x180066eb0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x160], eax
jmp 0x180066eb5
mov rdi, qword [rsp + 0x50]
cmp dword [rsp + 0x44], 0
jbe 0x180066ecd
jmp 0x180066d90
mov qword [rbx + 0xb0], rsi
mov byte [rsp + 0x41], 0
mov rdx, qword [rbx + 0xc0]
test rdx, rdx
je 0x180066f00
mov ecx, dword [rbx + 0xc8]
test ecx, ecx
je 0x180066f00
mov eax, r14d
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
mulsd xmm0, xmm6
xorps xmm1, xmm1
cvtsi2sd xmm1, rcx
divsd xmm0, xmm1
call rdx
mov dword [rbx + 0xb8], r14d
mov r14d, r13d
mov edi, 1
mov r15d, edi
lea rcx, [rbx + 0x90]
cmp qword [rcx + 0x18], 8
jb 0x180066f23
mov rcx, qword [rcx]
mov r8d, 5
lea rdx, [0x1800fdb10]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x180066f43
mov r14d, 0xfde9
mov r15d, r13d
mov r9d, dword [rbx + 0xb8]
inc r9d
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
mov r8, qword [rbx + 0xb0]
mov edx, r15d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test eax, eax
jg 0x180066fa5
mov r14d, r13d
mov r15d, edi
mov r9d, dword [rbx + 0xb8]
inc r9d
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
mov r8, qword [rbx + 0xb0]
mov edx, edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test eax, eax
jle 0x180067031
movsxd r12, esi
mov eax, 2
mul r12
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1800ea204
mov rdi, rax
test rax, rax
je 0x180067031
lea r8, [r12 + r12]
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov r9d, dword [rbx + 0xb8]
inc r9d
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rdi
mov r8, qword [rbx + 0xb0]
mov edx, r15d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x180067029
cmp word [rdi], 0
jne 0x18006700e
mov r8, r13
jmp 0x18006701d
or r8, 0xffffffffffffffff
inc r8
cmp word [rdi + r8*2], 0
jne 0x180067012
lea rcx, [rbx + 0x70]
mov rdx, rdi
call fcn.1800a1330
mov rcx, rdi
call fcn.1800ea1fc
mov r12b, 1
mov byte [rsp + 0x40], r12b
lea rcx, [rbp + 0xb0]
cmp qword [rbp + 0xc8], 8
cmovae rcx, qword [rbp + 0xb0]
mov r9d, 3
lea r8, [0x1800fda10]
mov rdx, qword [rbp + 0xc0]
call fcn.1800a69a0
test eax, eax
jne 0x18006717f
mov qword [rbp + 0xa8], 7
mov qword [rbp + 0xa0], r13
mov word [rbp + 0x90], r13w
lea r8d, [rax + 8]
lea rdx, str._html_
lea rcx, [rbp + 0x90]
call fcn.1800a1330
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r13
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rbx + 0x70]
lea rcx, [rbp + 0x90]
call fcn.180065720
test al, al
je 0x18006713e
mov rax, qword [rsp + 0x60]
sub rax, qword [rsp + 0x58]
sar rax, 5
test rax, rax
je 0x18006713e
mov r8d, 9
lea rdx, str.__html_
lea rcx, [rbp + 0x90]
call fcn.1800a1330
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rbx + 0x70]
lea rcx, [rbp + 0x90]
call fcn.180065720
test al, al
je 0x18006712c
mov rax, qword [rsp + 0x60]
sub rax, qword [rsp + 0x58]
sar rax, 5
test rax, rax
jne 0x18006713e
mov dword [rbx + 0x160], 0xd
xor r12b, r12b
mov byte [rsp + 0x40], r12b
lea rcx, [rsp + 0x58]
call fcn.1800a1090
nop
lea rcx, [rbp + 0x90]
call fcn.1800a0710
mov rdi, qword [rsp + 0x50]
lea r14, [rbx + 0x10]
jmp 0x18006716c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x160], eax
test r12b, r12b
jne 0x18006717f
mov ecx, dword [rsp + 0x70]
jmp 0x180066420
xor sil, sil
jmp 0x180067184
movzx esi, byte [rsp + 0x41]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
movzx eax, sil
test r12b, r12b
cmovne r13d, eax
movzx esi, r13b
mov r15, qword [rbp - 0x10]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x1800671ba
mov dword [rbx + 0x160], 0x57
xor sil, sil
mov rax, qword [rbp + 0xc8]
cmp rax, 8
jb 0x180067237
inc rax
mov rcx, qword [rbp + 0xb0]
movabs rdx, 0x7fffffffffffffff
cmp rax, rdx
jbe 0x1800671e7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
add rax, rax
cmp rax, 0x1000
jb 0x180067232
test byte [rbp + 0xb0], 0x1f
je 0x180067202
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180067212
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x180067222
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x18006722f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.1800e9988
movzx eax, sil
mov rcx, qword [rbp + 0x1170]
xor rcx, rsp
call fcn.1800e99a0
mov rbx, qword [rsp + 0x12e0]
movaps xmm6, xmmword [rsp + 0x1280]
add rsp, 0x1290
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret