Function at 0x1400047d0
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.14002d820
sub rsp, rax
movaps xmmword [rsp + 0x1210], xmm6
mov rax, qword [0x14005d028]
xor rax, rsp
mov qword [rbp + 0x1100], rax
mov rsi, rcx
cmp qword [rcx + 0x20], 0
ja 0x140004829
mov dword [rcx + 0x160], 3
xor al, al
jmp 0x140005902
lea rcx, [rbp + 0x60]
call fcn.140009280
nop
lea rcx, [rbp + 0x60]
cmp qword [rbp + 0x78], 8
cmovae rcx, qword [rbp + 0x60]
lea rdx, [0x14004e720]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
lea rcx, [rbp + 0x60]
test eax, eax
jne 0x14000485f
lea rbx, [0x14004e720]
jmp 0x140004885
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 0x1400058ab
lea rcx, [rbp + 0x60]
mov rdx, rbx
call fcn.140008ff0
mov dil, 1
mov rcx, qword [rsi]
xor r12d, r12d
test rcx, rcx
jne 0x1400048d5
lea rcx, [rsi + 0x188]
cmp qword [rcx + 0x18], 8
jb 0x1400048ac
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 0x1400048d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400058b0
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 0x140004995
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 0x1400058bb
lea rcx, [rsi + 0x30]
lea rdx, [rbp + 0x2b0]
call fcn.140008ff0
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 0x1400058bb
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 0x1400058a0
cmp byte [rsi + 8], r12b
jne 0x140004a57
cmp dword [rbp - 0x1c], 2
jne 0x140004a57
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 [0x140054328]
mov r15, 0xffffffffffffffff
mov eax, ecx
inc ecx
mov dword [rsp + 0x40], ecx
cmp eax, 3
jae 0x140005884
mov r8, qword [rsi + 0x130]
test r8, r8
je 0x140004ab9
lea rdx, [rsi + 0x120]
cmp qword [rdx + 0x18], 8
jb 0x140004a9a
mov rdx, qword [rdx]
mov r9d, 0x1000000
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x140004ab9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x160], eax
cmp qword [rsi + 0x100], 0
jbe 0x140004b7c
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.14000d830
nop
lea rdx, [rsi + 0xf0]
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 8
jb 0x140004b02
mov rdx, qword [rdx]
lea rcx, [rbp - 0x70]
call fcn.140009070
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 0x140004b3c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x160], eax
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x140004b7c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004b77
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005853
call fcn.14002c710
cmp qword [rsi + 0x150], 0
jbe 0x140004c87
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 0x140004bc4
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 0x140004c09
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x160], eax
mov rax, qword [rsi + 0x1c0]
test rax, rax
je 0x140004c87
lea r9d, [rax + rax]
lea r8, [rsi + 0x1b0]
cmp qword [r8 + 0x18], 8
jb 0x140004c2a
mov r8, qword [r8]
mov edx, 0x1002
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x140004c48
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x160], eax
mov rax, qword [rsi + 0x1e0]
test rax, rax
je 0x140004c87
lea r9d, [rax + rax]
lea r8, [rsi + 0x1d0]
cmp qword [r8 + 0x18], 8
jb 0x140004c69
mov r8, qword [r8]
mov edx, 0x1003
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x140004c87
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 0x140004dd3
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 0x140005835
mov rax, qword [rbp - 0x68]
test rax, rax
je 0x140005461
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 0x140004d18
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 0x140005450
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 0x140004d78
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 0x140004d87
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140004d96
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov r15, 0xffffffffffffffff
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x140004dac
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x140004dbb
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x140004dca
call qword [sym.imp.KERNEL32.dll_GlobalFree]
test dil, dil
je 0x140005841
mov rdx, qword [rsi + 0x110]
test rdx, rdx
je 0x140004e07
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 0x140004e07
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 0x140005835
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 0x140004e54
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140005269
mov ecx, dword [rsp + 0x70]
mov eax, 2
mul rcx
cmovo rax, r15
mov rcx, rax
call fcn.14002c75c
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 0x140005261
mov rdx, r15
lea rcx, [rsi + 0x50]
call fcn.140008ff0
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, [0x14004e5f0]
lea rcx, [rbp - 0x70]
call fcn.14000d830
nop
cmp byte [rsi + 0x1a8], 0
jne 0x140004f3c
lea rdx, str.charset_A_Za_z0_9___
lea rcx, [rbp - 0x70]
call fcn.140008ff0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rsi + 0x50]
lea rcx, [rbp - 0x70]
call fcn.140003920
test al, al
je 0x140004f3c
mov rax, qword [rbp - 0x80]
mov rdx, qword [rsp + 0x78]
sub rax, rdx
sar rax, 5
test rax, rax
je 0x140004f3c
lea rcx, [rsi + 0x90]
call fcn.1400090f0
lea rdx, str.Content_Length:__0_9_
lea rcx, [rbp - 0x70]
call fcn.140008ff0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rsi + 0x50]
lea rcx, [rbp - 0x70]
call fcn.140003920
test al, al
je 0x140004f92
mov rax, qword [rbp - 0x80]
mov rcx, qword [rsp + 0x78]
sub rax, rcx
sar rax, 5
test rax, rax
je 0x140004f92
cmp qword [rcx + 0x18], 8
jb 0x140004f86
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.140008ff0
lea r9, [rsi + 0x50]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea rcx, [rbp - 0x70]
call fcn.140003920
test al, al
je 0x140004fde
mov rax, qword [rbp - 0x80]
mov rdx, qword [rsp + 0x78]
sub rax, rdx
sar rax, 5
test rax, rax
je 0x140004fde
lea rcx, [rsi + 0x1f0]
call fcn.1400090f0
lea rdx, str.Set_Cookie:_b.__n
lea rcx, [rbp - 0x70]
call fcn.140008ff0
lea r9, [rsi + 0x50]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea rcx, [rbp - 0x70]
call fcn.140003920
test al, al
je 0x1400051bb
mov rax, qword [rbp - 0x80]
mov r8, qword [rsp + 0x78]
sub rax, r8
sar rax, 5
test rax, rax
je 0x1400051c0
mov rbx, r12
mov rdi, r12
nop dword [rax]
lea rdx, [rdi + r8]
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 8
jb 0x140005042
mov rdx, qword [rdx]
lea rcx, [rsi + 0xd0]
call fcn.140009070
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 0x14000508b
mov r8d, 2
lea rdx, [0x14004e814]
lea rcx, [rsi + 0xd0]
call fcn.140009070
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 0x140005030
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, [0x14004e6fc]
lea rcx, [rbp - 0x50]
call fcn.14000d830
nop
lea r8, [rbp - 0x50]
lea rdx, [rsi + 0xd0]
lea rcx, [rsp + 0x50]
call fcn.140003df0
mov rdx, rax
lea rcx, [rsi + 0xd0]
call fcn.1400091e0
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x14000512c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005127
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000585a
call fcn.14002c710
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], r12w
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x140005180
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000517b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005861
call fcn.14002c710
mov rcx, qword [rsi + 0xe0]
test rcx, rcx
je 0x1400051bb
lea rax, [rsi + 0xd0]
cmp qword [rax + 0x18], 8
jb 0x14000519d
mov rax, qword [rax]
cmp word [rax + rcx*2 - 2], 0x3b
je 0x1400051bb
lea rcx, [rsi + 0xd0]
mov r8, rdi
lea rdx, [0x14004e81c]
call fcn.140009070
mov r8, qword [rsp + 0x78]
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x140005205
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400051fb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005868
call fcn.14002c710
mov r8, qword [rsp + 0x78]
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x58], 7
mov word [rbp - 0x70], r12w
test r8, r8
je 0x140005261
mov rdx, qword [rbp - 0x80]
mov rcx, r8
call fcn.14000d320
mov rdx, qword [rbp - 0x78]
mov rcx, qword [rsp + 0x78]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000525c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000586f
call fcn.14002c710
mov rcx, r15
call fcn.14002c710
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 0x14000529f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140005310
mov ecx, dword [rsp + 0x70]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14002c75c
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 0x140005308
lea rcx, [rsi + 0x168]
mov rdx, rbx
call fcn.140008ff0
mov rcx, rbx
call fcn.14002c710
xor ebx, ebx
mov r12d, 0x2800
mov r14d, ebx
mov rcx, qword [rsi + 0xb0]
test rcx, rcx
je 0x140005333
call fcn.14002c710
mov qword [rsi + 0xb0], rbx
mov rcx, r12
call fcn.14002c75c
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 0x140005536
mov rdx, qword [rsi + 0xc0]
test rdx, rdx
je 0x14000539d
mov ecx, dword [rsi + 0xc8]
test ecx, ecx
je 0x14000539d
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.14002c75c
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 0x140005443
mov ecx, dword [rbp + 0x40]
lea eax, [rcx + r14]
cmp eax, r12d
jbe 0x14000542a
mov rdi, qword [rsi + 0xb0]
add r12d, r12d
mov ecx, r12d
call fcn.14002c75c
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.14002c710
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.14002c710
jmp 0x140005542
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x160], eax
jmp 0x140004d96
mov rbx, qword [rbp - 0x60]
test rbx, rbx
je 0x140004dbb
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 0x140005505
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 0x140004d9d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x160], eax
jmp 0x140004d9d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x160], eax
cmp dword [rsp + 0x70], 0
ja 0x140005350
mov rdx, qword [rsi + 0xc0]
test rdx, rdx
je 0x140005580
mov ecx, dword [rsi + 0xc8]
test ecx, ecx
je 0x140005580
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 0x140005598
mov rcx, qword [rcx]
mov r8d, 5
lea rdx, [0x14004e820]
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 0x140005623
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 0x140005691
mov ebx, r14d
mov eax, 2
mul rbx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14002c75c
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 0x140005689
lea rcx, [rsi + 0x70]
mov rdx, rdi
call fcn.140008ff0
mov rcx, rdi
call fcn.14002c710
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 0x140005889
lea rax, [0x14004e720]
mov rcx, rax
test rdx, rdx
je 0x1400056da
sub r8, rax
movzx eax, word [rcx + r8]
cmp ax, word [rcx]
jne 0x140005889
add rcx, 2
sub rdx, 1
jne 0x1400056c2
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.14000d830
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.140003920
mov rdx, qword [rbp + 0x50]
mov rcx, qword [rbp + 0x48]
test al, al
je 0x1400057a2
mov rax, rdx
sub rax, rcx
sar rax, 5
test rax, rax
je 0x1400057a2
lea rdx, str.__html_
lea rcx, [rbp + 0x80]
call fcn.140008ff0
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsi + 0x70]
lea rcx, [rbp + 0x80]
call fcn.140003920
mov rdx, qword [rbp + 0x50]
mov rcx, qword [rbp + 0x48]
test al, al
je 0x140005795
mov rax, rdx
sub rax, rcx
sar rax, 5
test rax, rax
jne 0x1400057a2
mov dword [rsi + 0x160], 0xd
xor r14b, r14b
test rcx, rcx
je 0x1400057f1
call fcn.14000d320
mov rdx, qword [rbp + 0x58]
mov rcx, qword [rbp + 0x48]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400057e0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005876
call fcn.14002c710
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x48], xmm0
mov qword [rbp + 0x58], r12
mov rdx, qword [rbp + 0x98]
cmp rdx, 8
jb 0x140005841
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000582e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000587d
call fcn.14002c710
jmp 0x140005841
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x160], eax
test r14b, r14b
jne 0x14000588f
lea rbx, [rsi + 0x10]
mov ecx, dword [rsp + 0x40]
jmp 0x140004a65
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 0x140005892
movzx edi, r14b
jmp 0x140005892
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 0x1400058bb
mov eax, 0x57
mov ecx, 0x160
mov dword [rsi + rcx], eax
xor dil, dil
mov rdx, qword [rbp + 0x78]
cmp rdx, 8
jb 0x1400058fe
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400058f9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400058f9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002c710
movzx eax, dil
mov rcx, qword [rbp + 0x1100]
xor rcx, rsp
call fcn.14002c6f0
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