Function at 0x180021590
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
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1210]
mov eax, 0x1310
call fcn.180074590
sub rsp, rax
mov qword [rbp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x1360], rbx
mov rax, qword [0x1800ea550]
xor rax, rsp
mov qword [rbp + 0x1200], rax
mov r14, rcx
cmp qword [rcx + 0x20], 0
ja 0x1800215eb
mov dword [rcx + 0x1a8], 3
jmp 0x180022883
mov qword [rbp + 0xc8], 7
xor r12d, r12d
mov qword [rbp + 0xc0], r12
mov word [rbp + 0xb0], r12w
or rdi, 0xffffffffffffffff
mov r9, rdi
xor r8d, r8d
lea rcx, [rbp + 0xb0]
call fcn.180005820
nop
lea rcx, [rbp + 0xb0]
cmp qword [rbp + 0xc8], 8
cmovae rcx, qword [rbp + 0xb0]
lea rdx, [0x1800b7b68]
call fcn.180076b0c
lea rcx, [rbp + 0xb0]
test eax, eax
jne 0x18002165b
lea r8d, [r12 + 3]
lea rdx, [0x1800b7b68]
jmp 0x180021691
cmp qword [rbp + 0xc8], 8
cmovae rcx, qword [rbp + 0xb0]
lea rdx, str.POST
call fcn.180076b0c
test eax, eax
jne 0x180022848
lea r8d, [rax + 4]
lea rdx, str.POST
lea rcx, [rbp + 0xb0]
call fcn.180007850
mov bl, 1
mov dword [rsp + 0x50], ebx
cmp qword [r14], 0
jne 0x1800216e0
lea rcx, [r14 + 0x1d8]
cmp qword [rcx + 0x18], 8
jb 0x1800216b3
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 qword [r14], rax
test rax, rax
jne 0x1800216e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r14 + 0x1a8], eax
jmp 0x180022853
mov eax, dword [r14 + 0x28c]
mov dword [rsp + 0x20], eax
mov r9d, dword [r14 + 0x288]
mov r8d, dword [r14 + 0x284]
mov edx, dword [r14 + 0x280]
mov rcx, qword [r14]
call qword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
mov word [rbp + 0x3b0], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x3b2]
call fcn.180073cb0
mov word [rbp + 0x7d0], r12w
xor edx, edx
mov r8d, 0xa26
lea rcx, [rbp + 0x7d2]
call fcn.180073cb0
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rbp + 0x40]
call fcn.180073cb0
mov dword [rbp + 0x40], 0x68
lea rax, [rbp + 0x3b0]
mov qword [rbp + 0x58], rax
mov dword [rbp + 0x60], 0x104
lea rax, [rbp + 0x7d0]
mov qword [rbp + 0x88], rax
mov dword [rbp + 0x90], 0x514
mov dword [rbp + 0x50], 1
lea rsi, [r14 + 0x10]
cmp qword [rsi + 0x18], 8
jb 0x180021798
mov rcx, qword [rsi]
jmp 0x18002179b
mov rcx, rsi
lea r9, [rbp + 0x40]
xor r8d, r8d
mov edx, dword [r14 + 0x20]
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x180022813
xor eax, eax
mov rcx, rdi
lea rdi, [rbp + 0x3b0]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [r14 + 0x38]
lea rdx, [rbp + 0x3b0]
call fcn.180007850
xor r9d, r9d
movzx r8d, word [rbp + 0x64]
lea rdx, [rbp + 0x3b0]
mov rcx, qword [r14]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rbp + 0x30], rax
test rax, rax
je 0x180022813
mov ecx, r12d
mov edx, 0x800000
cmp dword [rbp + 0x54], 2
cmove ecx, edx
lea rdx, [rbp + 0xb0]
cmp qword [rbp + 0xc8], 8
cmovae rdx, qword [rbp + 0xb0]
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
xor r9d, r9d
mov r8, qword [rbp + 0x88]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r15, rax
mov qword [rbp + 0x10], rax
test rax, rax
je 0x180022808
cmp byte [r14 + 8], 0
jne 0x180021883
cmp dword [rbp + 0x54], 2
jne 0x180021883
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 r13b, r13b
mov byte [rsp + 0x44], r13b
mov ecx, r12d
nop
mov eax, ecx
inc ecx
mov dword [rsp + 0x78], ecx
cmp eax, 3
jae 0x1800227eb
mov rax, qword [r14 + 0x168]
test rax, rax
je 0x1800218e1
lea rdx, [r14 + 0x158]
cmp qword [rdx + 0x18], 8
jb 0x1800218be
mov rdx, qword [rdx]
mov r9d, 0x1000000
mov r8d, eax
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x1800218e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r14 + 0x1a8], eax
cmp qword [r14 + 0x130], 0
jbe 0x1800219ab
mov qword [rbp + 0x118], 7
mov qword [rbp + 0x110], r12
mov word [rbp + 0x100], r12w
mov r8d, 8
lea rdx, str.Cookie:
lea rcx, [rbp + 0x100]
call fcn.180007850
nop
lea rdx, [r14 + 0x120]
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp + 0x100]
call fcn.180008ec0
lea rdx, [rbp + 0x100]
cmp qword [rbp + 0x118], 8
cmovae rdx, qword [rbp + 0x100]
mov r9d, 0x1000000
mov r8d, dword [rbp + 0x110]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x18002197b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r14 + 0x1a8], eax
cmp qword [rbp + 0x118], 8
jb 0x180021991
mov rcx, qword [rbp + 0x100]
call fcn.18007309c
mov qword [rbp + 0x118], 7
mov qword [rbp + 0x110], r12
mov word [rbp + 0x100], r12w
cmp qword [r14 + 0x190], 0
jbe 0x180021abf
xor eax, eax
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], rax
mov dword [rbp + 0x18], 3
mov word [rbp + 0x1a0], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x1a2]
call fcn.180073cb0
lea r8, [r14 + 0x180]
cmp qword [r8 + 0x18], 8
jb 0x1800219fb
mov r8, qword [r8]
mov edx, 0x104
lea rcx, [rbp + 0x1a0]
call fcn.180074de4
lea rdx, [rbp + 0x1a0]
mov qword [rbp + 0x20], rdx
mov r9d, 0x18
lea r8, [rbp + 0x18]
lea edx, [r9 + 0xe]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x180021a3f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r14 + 0x1a8], eax
mov rax, qword [r14 + 0x218]
test rax, rax
je 0x180021abf
lea r8, [r14 + 0x208]
cmp qword [r8 + 0x18], 8
jb 0x180021a5c
mov r8, qword [r8]
lea r9d, [rax + rax]
mov edx, 0x1002
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x180021a7f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r14 + 0x1a8], eax
mov rax, qword [r14 + 0x240]
test rax, rax
je 0x180021abf
lea r8, [r14 + 0x230]
cmp qword [r8 + 0x18], 8
jb 0x180021a9c
mov r8, qword [r8]
lea r9d, [rax + rax]
mov edx, 0x1003
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x180021abf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r14 + 0x1a8], eax
xor bl, bl
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, r15
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x180021ce8
xor eax, eax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
lea rcx, [rbp - 0x40]
call qword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x1800227c9
mov rax, qword [rbp - 0x38]
test rax, rax
je 0x180021bea
xor ecx, ecx
mov qword [rbp - 0x60], rcx
mov qword [rbp - 0x58], rcx
mov qword [rbp - 0x50], rcx
mov qword [rbp - 0x48], rcx
mov dword [rbp - 0x60], 3
mov edi, 1
mov dword [rbp - 0x5c], edi
mov qword [rbp - 0x58], rax
mov dword [rbp - 0x44], edi
mov dword [rbp - 0x48], r12d
mov qword [rbp - 0x50], r12
xor eax, eax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
cmp qword [rsi + 0x18], 8
jb 0x180021b64
mov rdx, qword [rsi]
jmp 0x180021b67
mov rdx, rsi
lea r9, [rbp - 0x20]
lea r8, [rbp - 0x60]
mov rcx, qword [r14]
call qword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x180021ca6
mov r9d, 0x18
lea r8, [rbp - 0x20]
lea edx, [r9 + 0xe]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x180021bc3
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, r15
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
movzx ebx, bl
test eax, eax
cmovne ebx, edi
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x180021bd2
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x180021cb3
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x180021cb3
mov rdi, qword [rbp - 0x30]
test rdi, rdi
je 0x180021cd1
xor eax, eax
mov qword [rbp - 8], rax
mov qword [rbp], rax
mov qword [rbp + 8], rax
mov dword [rbp - 8], 3
mov word [rbp + 0x1a0], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x1a2]
call fcn.180073cb0
mov r8, rdi
mov edx, 0x104
lea rcx, [rbp + 0x1a0]
call fcn.180074de4
lea rdx, [rbp + 0x1a0]
mov qword [rbp], rdx
mov rdi, qword [rbp - 0x28]
test rdi, rdi
je 0x180021c8b
mov word [rbp + 0x5c0], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x5c2]
call fcn.180073cb0
mov r8, rdi
mov edx, 0x104
lea rcx, [rbp + 0x5c0]
call fcn.180074de4
lea rdx, [rbp + 0x5c0]
mov qword [rbp + 8], rdx
mov r9d, 0x18
lea r8, [rbp - 8]
lea edx, [r9 + 0xe]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x180021cb3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r14 + 0x1a8], eax
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x180021cc2
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x180021cd1
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x180021ce0
call qword [sym.imp.KERNEL32.dll_GlobalFree]
test bl, bl
je 0x1800227d6
mov rdx, qword [r14 + 0x148]
test rdx, rdx
je 0x180021d1f
mov dword [rsp + 0x48], r12d
lea r9, [rsp + 0x48]
mov r8d, dword [r14 + 0x150]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x180021d1f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r14 + 0x1a8], eax
xor edx, edx
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x1800227c9
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x28], r12
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x16]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x180021d6c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x18002220b
mov ecx, dword [rsp + 0x40]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.180072c28
mov rsi, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x18002220b
mov r8d, dword [rsp + 0x40]
add r8, r8
xor edx, edx
mov rcx, rax
call fcn.180073cb0
mov qword [rsp + 0x28], r12
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9, rsi
xor r8d, r8d
lea edx, [r8 + 0x16]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x180022203
xor eax, eax
or r15, 0xffffffffffffffff
mov rcx, r15
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rsi
lea rcx, [r14 + 0x60]
call fcn.180007850
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r12
mov qword [rbp + 0xf0], 7
mov qword [rbp + 0xe8], r12
mov word [rbp + 0xd8], r12w
xor r8d, r8d
lea rdx, [0x1800b6ec4]
lea rcx, [rbp + 0xd8]
call fcn.180007850
nop
cmp byte [r14 + 0x200], 0
jne 0x180021eb3
lea r8d, [r15 + 0x1a]
lea rdx, str.charset_A_Za_z0_9___
lea rcx, [rbp + 0xd8]
call fcn.180007850
lea r8, [rsp + 0x58]
lea rdx, [r14 + 0x60]
lea rcx, [rbp + 0xd8]
call fcn.180020980
test al, al
je 0x180021eb3
mov rcx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x58]
sub rcx, rdi
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x180021eb3
lea rcx, [r14 + 0xb0]
mov r9, r15
xor r8d, r8d
mov rdx, rdi
call fcn.180005820
mov r8d, 0x18
lea rdx, str.Content_Length:__0_9_
lea rcx, [rbp + 0xd8]
call fcn.180007850
lea r8, [rsp + 0x58]
lea rdx, [r14 + 0x60]
lea rcx, [rbp + 0xd8]
call fcn.180020980
test al, al
je 0x180021f28
mov rcx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x58]
sub rcx, rdi
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x180021f28
cmp qword [rdi + 0x18], 8
jb 0x180021f19
mov rdi, qword [rdi]
mov rcx, rdi
call fcn.180075348
mov dword [r14 + 0xf0], eax
mov r8d, 0x12
lea rdx, str.Location:__0_9_
lea rcx, [rbp + 0xd8]
call fcn.180007850
lea r8, [rsp + 0x58]
lea rdx, [r14 + 0x60]
lea rcx, [rbp + 0xd8]
call fcn.180020980
test al, al
je 0x180021f99
mov rcx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x58]
sub rcx, rdi
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x180021f99
lea rcx, [r14 + 0x258]
mov r9, r15
xor r8d, r8d
mov rdx, rdi
call fcn.180005820
mov r8d, 0x15
lea rdx, str.Set_Cookie:_b.__n
lea rcx, [rbp + 0xd8]
call fcn.180007850
lea r8, [rsp + 0x58]
lea rdx, [r14 + 0x60]
lea rcx, [rbp + 0xd8]
call fcn.180020980
mov r15, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
test al, al
je 0x18002217c
mov rcx, r15
sub rcx, rbx
movabs rax, 0x6666666666666667
imul rcx
mov rsi, rdx
sar rsi, 4
mov rax, rsi
shr rax, 0x3f
add rsi, rax
je 0x180022177
mov rdi, r12
test rsi, rsi
je 0x180022072
lea r13, [rsi - 1]
or r15, 0xffffffffffffffff
nop word [rax + rax]
mov r9, r15
xor r8d, r8d
mov rdx, rbx
lea rcx, [r14 + 0xf8]
call fcn.180008ec0
cmp rdi, r13
je 0x180022053
mov r8d, 2
lea rdx, [0x1800bbc5c]
lea rcx, [r14 + 0xf8]
call fcn.1800076f0
inc rdi
add rbx, 0x28
cmp rdi, rsi
jb 0x180022020
mov r15, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
movzx r13d, byte [rsp + 0x44]
xor r12d, r12d
mov qword [rbp + 0x168], 7
mov qword [rbp + 0x160], r12
mov word [rbp + 0x150], r12w
mov esi, 1
mov r8d, esi
lea rdx, [0x1800bbb68]
lea rcx, [rbp + 0x150]
call fcn.180007850
nop
lea r8, [rbp + 0x150]
lea rdx, [r14 + 0xf8]
lea rcx, [rbp + 0x178]
call fcn.180020e00
nop
mov rdx, rax
lea rcx, [r14 + 0xf8]
call fcn.18000a370
nop
cmp qword [rbp + 0x190], 8
jb 0x1800220e9
mov rcx, qword [rbp + 0x178]
call fcn.18007309c
mov qword [rbp + 0x190], 7
mov qword [rbp + 0x188], r12
mov word [rbp + 0x178], r12w
cmp qword [rbp + 0x168], 8
jb 0x180022119
mov rcx, qword [rbp + 0x150]
call fcn.18007309c
mov qword [rbp + 0x168], 7
mov qword [rbp + 0x160], r12
mov word [rbp + 0x150], r12w
mov rcx, qword [r14 + 0x108]
test rcx, rcx
je 0x180022177
cmp qword [r14 + 0x110], 8
jb 0x180022152
mov rax, qword [r14 + 0xf8]
jmp 0x180022159
lea rax, [r14 + 0xf8]
cmp word [rax + rcx*2 - 2], 0x3b
je 0x180022177
mov r8, rsi
lea rdx, [0x1800bbc64]
lea rcx, [r14 + 0xf8]
call fcn.1800076f0
mov rsi, qword [rsp + 0x48]
cmp qword [rbp + 0xf0], 8
jb 0x180022192
mov rcx, qword [rbp + 0xd8]
call fcn.18007309c
mov qword [rbp + 0xf0], 7
mov qword [rbp + 0xe8], r12
mov word [rbp + 0xd8], r12w
test rbx, rbx
je 0x1800221f0
mov rdi, rbx
cmp rbx, r15
je 0x1800221e8
nop dword [rax]
cmp qword [rdi + 0x18], 8
jb 0x1800221cf
mov rcx, qword [rdi]
call fcn.18007309c
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r12
mov word [rdi], r12w
add rdi, 0x28
cmp rdi, r15
jne 0x1800221c0
mov rcx, rbx
call fcn.18007309c
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r12
mov r15, qword [rbp + 0x10]
mov rcx, rsi
call fcn.180073b34
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x28], r12
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x13]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x180022245
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1800222cc
mov ecx, dword [rsp + 0x40]
mov eax, 2
mul rcx
mov rdi, 0xffffffffffffffff
cmovo rax, rdi
mov rcx, rax
call fcn.180072c28
mov rbx, rax
test rax, rax
je 0x1800222cc
mov r8d, dword [rsp + 0x40]
add r8, r8
xor edx, edx
mov rcx, rax
call fcn.180073cb0
mov qword [rsp + 0x28], r12
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9, rbx
xor r8d, r8d
lea edx, [rdi + 0x14]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x1800222c4
xor eax, eax
mov rcx, rdi
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [r14 + 0x1b0]
mov rdx, rbx
call fcn.180007850
mov rcx, rbx
call fcn.180073b34
xor esi, esi
mov r12d, 0x2800
mov rcx, qword [r14 + 0xd8]
test rcx, rcx
je 0x1800222ec
call fcn.180073b34
mov qword [r14 + 0xd8], rsi
mov rcx, r12
call fcn.180072c28
mov qword [r14 + 0xd8], rax
test rax, rax
je 0x1800227e4
xor edx, edx
mov r8, r12
mov rcx, rax
call fcn.180073cb0
xor r13d, r13d
nop word [rax + rax]
mov dword [rsp + 0x40], r13d
lea rdx, [rsp + 0x40]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x180022455
mov edx, esi
mov rcx, r14
call fcn.180022910
mov ecx, dword [rsp + 0x40]
inc ecx
call fcn.180072c28
mov rdi, rax
test rax, rax
je 0x180022462
mov r8d, dword [rsp + 0x40]
inc r8d
xor edx, edx
mov rcx, rax
call fcn.180073cb0
mov dword [rsp + 0x48], r13d
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x40]
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x18002244b
mov ecx, dword [rsp + 0x48]
lea eax, [rcx + rsi]
cmp eax, r12d
jbe 0x1800223ea
mov rbx, qword [r14 + 0xd8]
add r12d, r12d
mov ecx, r12d
call fcn.180072c28
mov qword [r14 + 0xd8], rax
test rax, rax
je 0x18002246e
mov r8d, r12d
xor edx, edx
mov rcx, rax
call fcn.180073cb0
mov r8d, esi
mov rdx, rbx
mov rcx, qword [r14 + 0xd8]
call fcn.180073f20
mov rcx, rbx
call fcn.180073b34
mov ecx, dword [rsp + 0x48]
mov r8d, ecx
mov ecx, esi
add rcx, qword [r14 + 0xd8]
mov rdx, rdi
call fcn.180073f20
add esi, dword [rsp + 0x48]
cmp byte [r14 + 0x290], r13b
je 0x18002244b
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, qword [r14 + 0x298]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x7c], r13d
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x7c]
mov r8d, dword [rsp + 0x48]
mov rdx, rdi
mov rcx, qword [r14 + 0x298]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180022475
mov rcx, rdi
call fcn.180073b34
jmp 0x180022462
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r14 + 0x1a8], eax
cmp dword [rsp + 0x40], r13d
jbe 0x18002247a
jmp 0x180022320
mov qword [r14 + 0xd8], rbx
mov byte [rsp + 0x50], r13b
mov edx, esi
mov rcx, r14
call fcn.180022910
mov dword [r14 + 0xe0], esi
mov esi, r13d
mov ebx, 1
mov r12d, ebx
lea rcx, [r14 + 0xb0]
cmp qword [rcx + 0x18], 8
jb 0x1800224a7
mov rcx, qword [rcx]
mov r8d, 5
lea rdx, [0x1800bbc68]
call fcn.180074ff0
test eax, eax
jne 0x1800224c5
mov esi, 0xfde9
mov r12d, r13d
mov r9d, dword [r14 + 0xe0]
inc r9d
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
mov r8, qword [r14 + 0xd8]
mov edx, r12d
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test eax, eax
jg 0x180022526
mov esi, r13d
mov r12d, ebx
mov r9d, dword [r14 + 0xe0]
inc r9d
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
mov r8, qword [r14 + 0xd8]
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test eax, eax
jle 0x1800225b3
movsxd r13, edi
mov eax, 2
mul r13
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.180072c28
mov rbx, rax
test rax, rax
je 0x1800225ae
lea r8, [r13 + r13]
xor edx, edx
mov rcx, rax
call fcn.180073cb0
mov r9d, dword [r14 + 0xe0]
inc r9d
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbx
mov r8, qword [r14 + 0xd8]
mov edx, r12d
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x1800225a6
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [r14 + 0x88]
mov rdx, rbx
call fcn.180007850
mov rcx, rbx
call fcn.180073b34
mov ebx, 1
mov r13b, 1
mov byte [rsp + 0x44], r13b
lea rcx, [rbp + 0xb0]
cmp qword [rbp + 0xc8], 8
cmovae rcx, qword [rbp + 0xb0]
mov edi, 3
mov r8, qword [rbp + 0xc0]
cmp r8, rdi
cmovb rdi, r8
lea rdx, [0x1800b7b68]
test rdi, rdi
je 0x18002261c
movzx eax, word [rdx]
cmp word [rcx], ax
jne 0x180022608
add rcx, 2
add rdx, 2
dec rdi
jne 0x1800225f1
jmp 0x18002261c
mov edi, ebx
cmp word [rcx], ax
mov rcx, 0xffffffffffffffff
cmovb edi, ecx
xor r12d, r12d
jmp 0x180022626
xor r12d, r12d
mov edi, r12d
or rcx, 0xffffffffffffffff
movsxd rax, edi
test edi, edi
jne 0x180022641
cmp r8, 3
jae 0x180022637
mov eax, ecx
jmp 0x180022641
mov eax, r12d
cmp r8, 3
setne al
test eax, eax
sete al
test al, al
je 0x1800227fb
mov qword [rbp + 0x140], 7
mov qword [rbp + 0x138], r12
mov word [rbp + 0x128], r12w
mov r8d, 8
lea rdx, str._html_
lea rcx, [rbp + 0x128]
call fcn.180007850
nop
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], r12
lea r8, [rbp - 0x80]
lea rdx, [r14 + 0x88]
lea rcx, [rbp + 0x128]
call fcn.180020980
mov rbx, qword [rbp - 0x78]
mov rsi, qword [rbp - 0x80]
test al, al
je 0x18002274a
mov rcx, rbx
sub rcx, rsi
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x18002274a
mov r8d, 9
lea rdx, str.__html_
lea rcx, [rbp + 0x128]
call fcn.180007850
lea r8, [rbp - 0x80]
lea rdx, [r14 + 0x88]
lea rcx, [rbp + 0x128]
call fcn.180020980
mov rbx, qword [rbp - 0x78]
mov rsi, qword [rbp - 0x80]
test al, al
je 0x180022737
mov rcx, rbx
sub rcx, rsi
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
jne 0x18002274a
mov dword [r14 + 0x1a8], 0xd
xor r13b, r13b
mov byte [rsp + 0x44], r13b
test rsi, rsi
je 0x180022787
mov rdi, rsi
cmp rsi, rbx
je 0x18002277f
cmp qword [rdi + 0x18], 8
jb 0x180022766
mov rcx, qword [rdi]
call fcn.18007309c
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r12
mov word [rdi], r12w
add rdi, 0x28
cmp rdi, rbx
jne 0x180022757
mov rcx, rsi
call fcn.18007309c
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], r12
cmp qword [rbp + 0x140], 8
jb 0x1800227a9
mov rcx, qword [rbp + 0x128]
call fcn.18007309c
mov qword [rbp + 0x140], 7
mov qword [rbp + 0x138], r12
mov word [rbp + 0x128], r12w
lea rsi, [r14 + 0x10]
jmp 0x1800227d6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r14 + 0x1a8], eax
test r13b, r13b
jne 0x1800227fb
mov ecx, dword [rsp + 0x78]
jmp 0x180021890
xor bl, bl
xor r12d, r12d
jmp 0x1800227ef
mov ebx, dword [rsp + 0x50]
movzx ebx, bl
test r13b, r13b
cmove ebx, r12d
jmp 0x1800227ff
mov ebx, dword [rsp + 0x50]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
cmp qword [rbp + 0xc8], 8
jb 0x180022829
mov rcx, qword [rbp + 0xb0]
call fcn.18007309c
mov qword [rbp + 0xc8], 7
mov qword [rbp + 0xc0], r12
mov word [rbp + 0xb0], r12w
movzx eax, bl
jmp 0x180022885
mov dword [r14 + 0x1a8], 0x57
cmp qword [rbp + 0xc8], 8
jb 0x180022869
mov rcx, qword [rbp + 0xb0]
call fcn.18007309c
mov word [rbp + 0xb0], r12w
mov qword [rbp + 0xc0], r12
mov qword [rbp + 0xc8], 7
xor al, al
mov rcx, qword [rbp + 0x1200]
xor rcx, rsp
call fcn.180073c80
mov rbx, qword [rsp + 0x1360]
add rsp, 0x1310
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret