Function at 0x140005bc0
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:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1120]
mov eax, 0x1220
call fcn.1400321c0
sub rsp, rax
movaps xmmword [rsp + 0x1210], xmm6
mov rax, qword [0x140061028]
xor rax, rsp
mov qword [rbp + 0x1100], rax
mov rsi, rcx
cmp qword [rcx + 0x20], 0
ja 0x140005c19
mov dword [rcx + 0x160], 3
xor al, al
jmp 0x140006cf2
lea rcx, [rbp + 0x60]
call fcn.14000b8f0
nop
lea rcx, [rbp + 0x60]
cmp qword [rbp + 0x78], 8
cmovae rcx, qword [rbp + 0x60]
lea rdx, [0x140052720]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
lea rcx, [rbp + 0x60]
test eax, eax
jne 0x140005c4f
lea rbx, [0x140052720]
jmp 0x140005c75
cmp qword [rbp + 0x78], 8
cmovae rcx, qword [rbp + 0x60]
lea rbx, str.POST
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140006c9b
lea rcx, [rbp + 0x60]
mov rdx, rbx
call fcn.14000b660
mov dil, 1
mov rcx, qword [rsi]
xor r12d, r12d
test rcx, rcx
jne 0x140005cc5
lea rcx, [rsi + 0x188]
cmp qword [rcx + 0x18], 8
jb 0x140005c9c
mov rcx, qword [rcx]
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rcx, rax
mov qword [rsi], rax
test rax, rax
jne 0x140005cc5
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140006ca0
mov eax, dword [rsi + 0x21c]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsi + 0x218]
mov r8d, dword [rsi + 0x214]
mov edx, dword [rsi + 0x210]
call qword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
mov word [rbp + 0x2b0], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x2b2]
call sub.VCRUNTIME140.dll_memset
mov word [rbp + 0x6d0], r12w
xor edx, edx
mov r8d, 0xa26
lea rcx, [rbp + 0x6d2]
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], rax
mov dword [rbp - 0x30], 0x68
lea rax, [rbp + 0x2b0]
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x10], 0x104
lea rax, [rbp + 0x6d0]
mov qword [rbp + 0x18], rax
mov dword [rbp + 0x20], 0x514
mov dword [rbp - 0x20], 1
lea rbx, [rsi + 0x10]
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140005d85
mov rcx, qword [rbx]
lea r9, [rbp - 0x30]
xor r8d, r8d
mov edx, dword [rsi + 0x20]
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x140006cab
lea rcx, [rsi + 0x30]
lea rdx, [rbp + 0x2b0]
call fcn.14000b660
xor r9d, r9d
movzx r8d, word [rbp - 0xc]
lea rdx, [rbp + 0x2b0]
mov rcx, qword [rsi]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r15, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140006cab
mov ecx, r12d
mov eax, 0x800000
cmp dword [rbp - 0x1c], 2
cmove ecx, eax
lea rdx, [rbp + 0x60]
cmp qword [rbp + 0x78], 8
cmovae rdx, qword [rbp + 0x60]
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
xor r9d, r9d
mov r8, qword [rbp + 0x18]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r13, rax
test rax, rax
je 0x140006c90
cmp byte [rsi + 8], r12b
jne 0x140005e47
cmp dword [rbp - 0x1c], 2
jne 0x140005e47
mov dword [rbp + 0x40], 0x3100
mov r9d, 4
lea r8, [rbp + 0x40]
lea edx, [r9 + 0x1b]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
xor r14b, r14b
mov ecx, r12d
movsd xmm6, qword [0x140058328]
mov r15, 0xffffffffffffffff
mov eax, ecx
inc ecx
mov dword [rsp + 0x40], ecx
cmp eax, 3
jae 0x140006c74
mov r8, qword [rsi + 0x130]
test r8, r8
je 0x140005ea9
lea rdx, [rsi + 0x120]
cmp qword [rdx + 0x18], 8
jb 0x140005e8a
mov rdx, qword [rdx]
mov r9d, 0x1000000
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x140005ea9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x160], eax
cmp qword [rsi + 0x100], 0
jbe 0x140005f6c
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x58], r12
mov r8d, 8
lea rdx, str.Cookie:
lea rcx, [rbp - 0x70]
call fcn.14000fea0
nop
lea rdx, [rsi + 0xf0]
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 8
jb 0x140005ef2
mov rdx, qword [rdx]
lea rcx, [rbp - 0x70]
call fcn.14000b6e0
lea rdx, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rdx, qword [rbp - 0x70]
mov r9d, 0x1000000
mov r8d, dword [rbp - 0x60]
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x140005f2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x160], eax
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x140005f6c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005f67
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006c43
call fcn.1400310b4
cmp qword [rsi + 0x150], 0
jbe 0x140006077
mov qword [rsp + 0x78], 3
mov qword [rbp - 0x78], r12
mov word [rbp + 0xa0], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0xa2]
call sub.VCRUNTIME140.dll_memset
lea r8, [rsi + 0x140]
cmp qword [r8 + 0x18], 8
jb 0x140005fb4
mov r8, qword [r8]
mov edx, 0x104
lea rcx, [rbp + 0xa0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rax, [rbp + 0xa0]
mov qword [rbp - 0x80], rax
mov r9d, 0x18
lea r8, [rsp + 0x78]
lea edx, [r9 + 0xe]
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x140005ff9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x160], eax
mov rax, qword [rsi + 0x1c0]
test rax, rax
je 0x140006077
lea r9d, [rax + rax]
lea r8, [rsi + 0x1b0]
cmp qword [r8 + 0x18], 8
jb 0x14000601a
mov r8, qword [r8]
mov edx, 0x1002
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x140006038
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x160], eax
mov rax, qword [rsi + 0x1e0]
test rax, rax
je 0x140006077
lea r9d, [rax + rax]
lea r8, [rsi + 0x1d0]
cmp qword [r8 + 0x18], 8
jb 0x140006059
mov r8, qword [r8]
mov edx, 0x1003
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x140006077
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x160], eax
xor dil, dil
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x1400061c3
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
lea rcx, [rbp - 0x70]
call qword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x140006c25
mov rax, qword [rbp - 0x68]
test rax, rax
je 0x140006851
mov dword [rbp - 0x50], 3
mov r15d, 1
mov dword [rbp - 0x4c], r15d
mov qword [rbp - 0x48], rax
mov dword [rbp - 0x34], r15d
mov dword [rbp - 0x38], r12d
mov qword [rbp - 0x40], r12
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], rax
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140006108
mov rdx, qword [rbx]
lea r9, [rsp + 0x78]
lea r8, [rbp - 0x50]
mov rcx, qword [rsi]
call qword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x140006840
mov r9d, 0x18
lea r8, [rsp + 0x78]
lea edx, [r9 + 0xe]
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x140006168
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
movzx edi, dil
test eax, eax
cmovne edi, r15d
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140006177
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140006186
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov r15, 0xffffffffffffffff
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x14000619c
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x1400061ab
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x1400061ba
call qword [sym.imp.KERNEL32.dll_GlobalFree]
test dil, dil
je 0x140006c31
mov rdx, qword [rsi + 0x110]
test rdx, rdx
je 0x1400061f7
mov dword [rbp + 0x40], r12d
lea r9, [rbp + 0x40]
mov r8d, dword [rsi + 0x118]
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x1400061f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x160], eax
xor edx, edx
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x140006c25
mov dword [rsp + 0x70], r12d
mov qword [rsp + 0x28], r12
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x16]
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x140006244
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140006659
mov ecx, dword [rsp + 0x70]
mov eax, 2
mul rcx
cmovo rax, r15
mov rcx, rax
call fcn.1400310e8
mov r15, rax
mov r8d, dword [rsp + 0x70]
add r8, r8
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x28], r12
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9, r15
xor r8d, r8d
lea edx, [r8 + 0x16]
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x140006651
mov rdx, r15
lea rcx, [rsi + 0x50]
call fcn.14000b660
xorps xmm0, xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x78], xmm1
mov qword [rbp - 0x78], r12
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x58], r12
xor r8d, r8d
lea rdx, [0x1400525f0]
lea rcx, [rbp - 0x70]
call fcn.14000fea0
nop
cmp byte [rsi + 0x1a8], 0
jne 0x14000632c
lea rdx, str.charset_A_Za_z0_9___
lea rcx, [rbp - 0x70]
call fcn.14000b660
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rsi + 0x50]
lea rcx, [rbp - 0x70]
call fcn.140004d10
test al, al
je 0x14000632c
mov rax, qword [rbp - 0x80]
mov rdx, qword [rsp + 0x78]
sub rax, rdx
sar rax, 5
test rax, rax
je 0x14000632c
lea rcx, [rsi + 0x90]
call fcn.14000b760
lea rdx, str.Content_Length:__0_9_
lea rcx, [rbp - 0x70]
call fcn.14000b660
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rsi + 0x50]
lea rcx, [rbp - 0x70]
call fcn.140004d10
test al, al
je 0x140006382
mov rax, qword [rbp - 0x80]
mov rcx, qword [rsp + 0x78]
sub rax, rcx
sar rax, 5
test rax, rax
je 0x140006382
cmp qword [rcx + 0x18], 8
jb 0x140006376
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov dword [rsi + 0xc8], eax
lea rdx, str.Location:__0_9_
lea rcx, [rbp - 0x70]
call fcn.14000b660
lea r9, [rsi + 0x50]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea rcx, [rbp - 0x70]
call fcn.140004d10
test al, al
je 0x1400063ce
mov rax, qword [rbp - 0x80]
mov rdx, qword [rsp + 0x78]
sub rax, rdx
sar rax, 5
test rax, rax
je 0x1400063ce
lea rcx, [rsi + 0x1f0]
call fcn.14000b760
lea rdx, str.Set_Cookie:_b.__n
lea rcx, [rbp - 0x70]
call fcn.14000b660
lea r9, [rsi + 0x50]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea rcx, [rbp - 0x70]
call fcn.140004d10
test al, al
je 0x1400065ab
mov rax, qword [rbp - 0x80]
mov r8, qword [rsp + 0x78]
sub rax, r8
sar rax, 5
test rax, rax
je 0x1400065b0
mov rbx, r12
mov rdi, r12
nop dword [rax]
lea rdx, [rdi + r8]
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 8
jb 0x140006432
mov rdx, qword [rdx]
lea rcx, [rsi + 0xd0]
call fcn.14000b6e0
mov rcx, qword [rbp - 0x80]
mov rax, rcx
mov r8, qword [rsp + 0x78]
sub rax, r8
sar rax, 5
dec rax
cmp rbx, rax
je 0x14000647b
mov r8d, 2
lea rdx, [0x140052814]
lea rcx, [rsi + 0xd0]
call fcn.14000b6e0
mov rcx, qword [rbp - 0x80]
mov r8, qword [rsp + 0x78]
inc rbx
add rdi, 0x20
sub rcx, r8
sar rcx, 5
cmp rbx, rcx
jb 0x140006420
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], r12
mov edi, 1
mov r8d, edi
lea rdx, [0x1400526fc]
lea rcx, [rbp - 0x50]
call fcn.14000fea0
nop
lea r8, [rbp - 0x50]
lea rdx, [rsi + 0xd0]
lea rcx, [rsp + 0x50]
call fcn.1400051e0
mov rdx, rax
lea rcx, [rsi + 0xd0]
call fcn.14000b850
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x14000651c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006517
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006c4a
call fcn.1400310b4
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], r12w
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x140006570
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000656b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006c51
call fcn.1400310b4
mov rcx, qword [rsi + 0xe0]
test rcx, rcx
je 0x1400065ab
lea rax, [rsi + 0xd0]
cmp qword [rax + 0x18], 8
jb 0x14000658d
mov rax, qword [rax]
cmp word [rax + rcx*2 - 2], 0x3b
je 0x1400065ab
lea rcx, [rsi + 0xd0]
mov r8, rdi
lea rdx, [0x14005281c]
call fcn.14000b6e0
mov r8, qword [rsp + 0x78]
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x1400065f5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400065eb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006c58
call fcn.1400310b4
mov r8, qword [rsp + 0x78]
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x58], 7
mov word [rbp - 0x70], r12w
test r8, r8
je 0x140006651
mov rdx, qword [rbp - 0x80]
mov rcx, r8
call fcn.14000f990
mov rdx, qword [rbp - 0x78]
mov rcx, qword [rsp + 0x78]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000664c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006c5f
call fcn.1400310b4
mov rcx, r15
call fcn.1400310b4
mov dword [rsp + 0x70], r12d
mov qword [rsp + 0x28], r12
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x13]
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x14000668f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140006700
mov ecx, dword [rsp + 0x70]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400310e8
mov rbx, rax
mov r8d, dword [rsp + 0x70]
add r8, r8
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x28], r12
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9, rbx
xor r8d, r8d
lea edx, [r8 + 0x13]
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x1400066f8
lea rcx, [rsi + 0x168]
mov rdx, rbx
call fcn.14000b660
mov rcx, rbx
call fcn.1400310b4
xor ebx, ebx
mov r12d, 0x2800
mov r14d, ebx
mov rcx, qword [rsi + 0xb0]
test rcx, rcx
je 0x140006723
call fcn.1400310b4
mov qword [rsi + 0xb0], rbx
mov rcx, r12
call fcn.1400310e8
mov qword [rsi + 0xb0], rax
xor edx, edx
mov r8, r12
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
nop
mov dword [rsp + 0x70], ebx
lea rdx, [rsp + 0x70]
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x140006926
mov rdx, qword [rsi + 0xc0]
test rdx, rdx
je 0x14000678d
mov ecx, dword [rsi + 0xc8]
test ecx, ecx
je 0x14000678d
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 + 0x70]
inc ecx
call fcn.1400310e8
mov r15, rax
mov r8d, dword [rsp + 0x70]
inc r8d
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0x40], ebx
lea r9, [rbp + 0x40]
mov r8d, dword [rsp + 0x70]
mov rdx, r15
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x140006833
mov ecx, dword [rbp + 0x40]
lea eax, [rcx + r14]
cmp eax, r12d
jbe 0x14000681a
mov rdi, qword [rsi + 0xb0]
add r12d, r12d
mov ecx, r12d
call fcn.1400310e8
mov qword [rsi + 0xb0], rax
mov r8d, r12d
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov r8d, r14d
mov rdx, rdi
mov rcx, qword [rsi + 0xb0]
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rdi
call fcn.1400310b4
mov ecx, dword [rbp + 0x40]
xor ebx, ebx
mov r8d, ecx
mov ecx, r14d
add rcx, qword [rsi + 0xb0]
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
add r14d, dword [rbp + 0x40]
mov rcx, r15
call fcn.1400310b4
jmp 0x140006932
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x160], eax
jmp 0x140006186
mov rbx, qword [rbp - 0x60]
test rbx, rbx
je 0x1400061ab
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], rax
mov dword [rsp + 0x78], 3
mov word [rbp + 0xa0], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0xa2]
call sub.VCRUNTIME140.dll_memset
mov r8, rbx
mov edx, 0x104
lea rcx, [rbp + 0xa0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rax, [rbp + 0xa0]
mov qword [rbp - 0x80], rax
mov rbx, qword [rbp - 0x58]
test rbx, rbx
je 0x1400068f5
mov word [rbp + 0x4c0], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x4c2]
call sub.VCRUNTIME140.dll_memset
mov r8, rbx
mov edx, 0x104
lea rcx, [rbp + 0x4c0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rax, [rbp + 0x4c0]
mov qword [rbp - 0x78], rax
mov r9d, 0x18
lea r8, [rsp + 0x78]
lea edx, [r9 + 0xe]
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x14000618d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x160], eax
jmp 0x14000618d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x160], eax
cmp dword [rsp + 0x70], 0
ja 0x140006740
mov rdx, qword [rsi + 0xc0]
test rdx, rdx
je 0x140006970
mov ecx, dword [rsi + 0xc8]
test ecx, ecx
je 0x140006970
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 [rsi + 0xb8], r14d
lea rcx, [rsi + 0x90]
cmp qword [rcx + 0x18], 8
jb 0x140006988
mov rcx, qword [rcx]
mov r8d, 5
lea rdx, [0x140052820]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
mov r12d, ebx
test eax, eax
setne r12b
mov r15d, 0xfde9
test eax, eax
cmovne r15d, ebx
mov r9d, dword [rsi + 0xb8]
inc r9d
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
mov r8, qword [rsi + 0xb0]
mov edx, r12d
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov r14d, eax
test eax, eax
jg 0x140006a13
mov r15d, ebx
mov eax, 1
mov r12d, eax
mov r9d, dword [rsi + 0xb8]
inc r9d
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
mov r8, qword [rsi + 0xb0]
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov r14d, eax
test eax, eax
jle 0x140006a81
mov ebx, r14d
mov eax, 2
mul rbx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400310e8
mov rdi, rax
lea r8, [rbx + rbx]
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov r9d, dword [rsi + 0xb8]
inc r9d
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rdi
mov r8, qword [rsi + 0xb0]
mov edx, r12d
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x140006a79
lea rcx, [rsi + 0x70]
mov rdx, rdi
call fcn.14000b660
mov rcx, rdi
call fcn.1400310b4
mov r14b, 1
lea r8, [rbp + 0x60]
cmp qword [rbp + 0x78], 8
cmovae r8, qword [rbp + 0x60]
mov rdx, qword [rbp + 0x70]
cmp rdx, 3
jne 0x140006c79
lea rax, [0x140052720]
mov rcx, rax
test rdx, rdx
je 0x140006aca
sub r8, rax
movzx eax, word [rcx + r8]
cmp ax, word [rcx]
jne 0x140006c79
add rcx, 2
sub rdx, 1
jne 0x140006ab2
xorps xmm0, xmm0
movups xmmword [rbp + 0x80], xmm0
xor r12d, r12d
mov qword [rbp + 0x90], r12
mov qword [rbp + 0x98], r12
lea r8d, [r12 + 8]
lea rdx, str._html_
lea rcx, [rbp + 0x80]
call fcn.14000fea0
nop
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x48], xmm1
mov qword [rbp + 0x58], r12
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsi + 0x70]
lea rcx, [rbp + 0x80]
call fcn.140004d10
mov rdx, qword [rbp + 0x50]
mov rcx, qword [rbp + 0x48]
test al, al
je 0x140006b92
mov rax, rdx
sub rax, rcx
sar rax, 5
test rax, rax
je 0x140006b92
lea rdx, str.__html_
lea rcx, [rbp + 0x80]
call fcn.14000b660
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsi + 0x70]
lea rcx, [rbp + 0x80]
call fcn.140004d10
mov rdx, qword [rbp + 0x50]
mov rcx, qword [rbp + 0x48]
test al, al
je 0x140006b85
mov rax, rdx
sub rax, rcx
sar rax, 5
test rax, rax
jne 0x140006b92
mov dword [rsi + 0x160], 0xd
xor r14b, r14b
test rcx, rcx
je 0x140006be1
call fcn.14000f990
mov rdx, qword [rbp + 0x58]
mov rcx, qword [rbp + 0x48]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006bd0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006c66
call fcn.1400310b4
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x48], xmm0
mov qword [rbp + 0x58], r12
mov rdx, qword [rbp + 0x98]
cmp rdx, 8
jb 0x140006c31
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006c1e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006c6d
call fcn.1400310b4
jmp 0x140006c31
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x160], eax
test r14b, r14b
jne 0x140006c7f
lea rbx, [rsi + 0x10]
mov ecx, dword [rsp + 0x40]
jmp 0x140005e55
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xor dil, dil
jmp 0x140006c82
movzx edi, r14b
jmp 0x140006c82
mov dil, 1
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov r15, qword [rsp + 0x48]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x140006cab
mov eax, 0x57
mov ecx, 0x160
mov dword [rsi + rcx], eax
xor dil, dil
mov rdx, qword [rbp + 0x78]
cmp rdx, 8
jb 0x140006cee
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006ce9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006ce9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400310b4
movzx eax, dil
mov rcx, qword [rbp + 0x1100]
xor rcx, rsp
call fcn.140031050
mov rbx, qword [rsp + 0x1270]
movaps xmm6, xmmword [rsp + 0x1210]
add rsp, 0x1220
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret