Function at 0x1800037e8
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 + 0x10], rbx
mov byte [rsp + 0x18], r8b
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10c0]
mov eax, 0x11c0
call fcn.180039180
sub rsp, rax
lea r15, [rcx + 0x10]
mov rsi, rcx
mov rcx, r15
mov rbx, rdx
call fcn.180007b74
xor r12d, r12d
test rax, rax
jne 0x18000383b
mov dword [rsi + 0x160], 3
jmp 0x180004633
mov rdx, rbx
lea rcx, [rbp - 0x58]
call fcn.180007de4
lea rcx, [rbp - 0x58]
call fcn.180007b7c
lea rbx, [0x180074358]
mov rcx, rax
mov rdx, rbx
call fcn.1800403e8
lea rcx, [rbp - 0x58]
test eax, eax
je 0x18000388d
call fcn.180007b7c
lea rbx, str.POST
mov rcx, rax
mov rdx, rbx
call fcn.1800403e8
test eax, eax
jne 0x180004617
lea rcx, [rbp - 0x58]
mov rdx, rbx
call fcn.180007c88
mov rcx, qword [rsi]
mov r13d, 1
test rcx, rcx
jne 0x1800038db
lea rcx, [rsi + 0x188]
call fcn.180007b7c
mov rcx, rax
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rsi], rax
mov rcx, rax
test rax, rax
jne 0x1800038db
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18000461c
mov eax, dword [rsi + 0x21c]
mov r9d, dword [rsi + 0x218]
mov r8d, dword [rsi + 0x214]
mov edx, dword [rsi + 0x210]
mov dword [rsp + 0x20], eax
call qword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
xor edx, edx
mov word [rbp + 0x270], r12w
mov r8d, 0x206
lea rcx, [rbp + 0x272]
call fcn.18003a090
xor edx, edx
mov word [rbp + 0x690], r12w
mov r8d, 0xa26
lea rcx, [rbp + 0x692]
call fcn.18003a090
mov ebx, 0x68
lea rcx, [rbp - 0x30]
mov r8d, ebx
xor edx, edx
call fcn.18003a090
lea rax, [rbp + 0x270]
mov dword [rbp - 0x30], ebx
mov qword [rbp - 0x18], rax
mov rcx, r15
lea rax, [rbp + 0x690]
mov dword [rbp - 0x10], 0x104
mov qword [rbp + 0x18], rax
mov dword [rbp + 0x20], 0x514
mov dword [rbp - 0x20], r13d
call fcn.180007b74
mov rcx, r15
mov rbx, rax
call fcn.180007b7c
mov rcx, rax
lea r9, [rbp - 0x30]
xor r8d, r8d
mov edx, ebx
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x180004627
lea rcx, [rsi + 0x30]
lea rdx, [rbp + 0x270]
call fcn.180007c88
movzx r8d, word [rbp - 0xc]
lea rdx, [rbp + 0x270]
mov rcx, qword [rsi]
xor r9d, r9d
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rbp - 0x60], rax
mov rdi, rax
test rax, rax
je 0x180004627
cmp dword [rbp - 0x1c], 2
lea rcx, [rbp - 0x58]
mov eax, 0x800000
mov ebx, r12d
cmove ebx, eax
call fcn.180007b7c
mov r8, qword [rbp + 0x18]
mov rdx, rax
mov dword [rsp + 0x30], ebx
xor r9d, r9d
mov qword [rsp + 0x28], r12
mov rcx, rdi
mov qword [rsp + 0x20], r12
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r14, rax
test rax, rax
je 0x18000460c
xor edi, edi
cmp byte [rsi + 8], dil
jne 0x180003a4e
cmp dword [rbp - 0x1c], 2
jne 0x180003a4e
lea r9d, [rdi + 4]
mov dword [rbp + 0x1110], 0x3100
lea r8, [rbp + 0x1110]
mov rcx, rax
lea edx, [rdi + 0x1f]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov byte [rbp + 0x1110], dil
mov ecx, edi
mov eax, ecx
add ecx, r13d
mov dword [rbp - 0x68], ecx
cmp eax, 3
jae 0x1800045fc
lea rdi, [rsi + 0x120]
mov rcx, rdi
call fcn.180007b74
test rax, rax
je 0x180003ab8
mov rcx, rdi
call fcn.180007b74
mov rcx, rdi
mov rbx, rax
call fcn.180007b7c
mov rdx, rax
mov r9d, 0x1000000
mov r8d, ebx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
xor edi, edi
test eax, eax
jne 0x180003aba
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x160], eax
jmp 0x180003aba
xor edi, edi
lea rbx, [rsi + 0xf0]
mov rcx, rbx
call fcn.180007b74
test rax, rax
je 0x180003b39
lea rdx, str.Cookie:
lea rcx, [rsp + 0x58]
call fcn.180007d58
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.180007c80
lea rcx, [rsp + 0x58]
call fcn.180007b74
lea rcx, [rsp + 0x58]
mov rbx, rax
call fcn.180007b7c
mov rdx, rax
mov r9d, 0x1000000
mov r8d, ebx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
lea r12, [rsi + 0x160]
test eax, eax
jne 0x180003b2d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r12], eax
lea rcx, [rsp + 0x58]
call fcn.180007cd0
jmp 0x180003b40
lea r12, [rsi + 0x160]
lea rbx, [rsi + 0x140]
mov rcx, rbx
call fcn.180007b74
test rax, rax
je 0x180003c6f
mov r15d, 0x18
lea rcx, [rsp + 0x40]
mov r8d, r15d
xor edx, edx
call fcn.18003a090
xor edx, edx
mov dword [rsp + 0x40], 3
mov r8d, 0x206
mov word [rbp + 0x60], di
lea rcx, [rbp + 0x62]
call fcn.18003a090
mov rcx, rbx
call fcn.180007b7c
mov r8, rax
lea rcx, [rbp + 0x60]
mov edx, 0x104
call fcn.180040c7c
lea rax, [rbp + 0x60]
mov r9d, r15d
lea r8, [rsp + 0x40]
mov qword [rsp + 0x48], rax
lea edx, [r15 + 0xe]
mov rcx, r14
mov rdi, r12
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x180003bd7
lea rdi, [rsi + 0x160]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
lea r15, [rsi + 0x1b0]
mov rcx, r15
call fcn.180007b74
test rax, rax
je 0x180003c69
mov rcx, r15
call fcn.180007b74
mov rbx, rax
mov rcx, r15
add ebx, ebx
call fcn.180007b7c
mov r8, rax
mov r9d, ebx
mov edx, 0x1002
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x180003c20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
lea r15, [rsi + 0x1d0]
mov rcx, r15
call fcn.180007b74
test rax, rax
je 0x180003c69
mov rcx, r15
call fcn.180007b74
mov rbx, rax
mov rcx, r15
add ebx, ebx
call fcn.180007b7c
mov r8, rax
mov r9d, ebx
mov edx, 0x1003
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x180003c69
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
xor edi, edi
lea r15, [rsi + 0x10]
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], edi
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], edi
mov rcx, r14
movzx ebx, dil
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x180003e8e
xor edx, edx
lea r8d, [rax + 0x20]
lea rcx, [rsp + 0x78]
call fcn.18003a090
lea rcx, [rsp + 0x78]
call qword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x1800045dc
cmp qword [rbp - 0x80], rdi
je 0x180003d99
xor edx, edx
lea rcx, [rsp + 0x58]
lea r8d, [rdx + 0x20]
call fcn.18003a090
mov rax, qword [rbp - 0x80]
lea rcx, [rsp + 0x40]
xor edx, edx
mov dword [rsp + 0x58], 3
mov dword [rsp + 0x5c], r13d
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x74], r13d
lea r8d, [rdx + 0x18]
mov dword [rsp + 0x70], edi
mov qword [rsp + 0x68], rdi
call fcn.18003a090
mov rcx, r15
call fcn.180007b7c
mov rcx, qword [rsi]
lea r9, [rsp + 0x40]
mov rdx, rax
lea r8, [rsp + 0x58]
call qword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x180003e4f
mov r9d, 0x18
lea r8, [rsp + 0x40]
mov rcx, r14
lea edx, [r9 + 0xe]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x180003d70
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], edi
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], edi
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
cmovne ebx, r13d
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180003d80
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x180003e59
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x180003e59
cmp qword [rbp - 0x78], rdi
je 0x180003e77
xor edx, edx
lea rcx, [rsp + 0x40]
lea r8d, [rdx + 0x18]
call fcn.18003a090
mov r15d, 0x206
mov dword [rsp + 0x40], 3
mov r8d, r15d
mov word [rbp + 0x60], di
xor edx, edx
lea rcx, [rbp + 0x62]
call fcn.18003a090
mov r8, qword [rbp - 0x78]
lea rcx, [rbp + 0x60]
mov edx, 0x104
call fcn.180040c7c
mov rdi, qword [rbp - 0x70]
lea rax, [rbp + 0x60]
mov qword [rsp + 0x48], rax
xor eax, eax
test rdi, rdi
je 0x180003e31
mov r8d, r15d
mov word [rbp + 0x480], ax
xor edx, edx
lea rcx, [rbp + 0x482]
call fcn.18003a090
mov r8, rdi
lea rcx, [rbp + 0x480]
mov edx, 0x104
call fcn.180040c7c
lea rax, [rbp + 0x480]
mov qword [rsp + 0x50], rax
mov r9d, 0x18
lea r8, [rsp + 0x40]
mov rcx, r14
lea edx, [r9 + 0xe]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
xor edi, edi
test eax, eax
jne 0x180003e59
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r12], eax
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x180003e68
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x180003e77
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x180003e86
call qword [sym.imp.KERNEL32.dll_GlobalFree]
test bl, bl
je 0x1800045e6
mov rdx, qword [rsi + 0x110]
test rdx, rdx
je 0x180003ec5
mov r8d, dword [rsi + 0x118]
lea r9, [rbp + 0x1100]
mov rcx, r14
mov dword [rbp + 0x1100], edi
call qword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x180003ec5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r12], eax
xor edx, edx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x1800045dc
xor r9d, r9d
mov qword [rsp + 0x28], rdi
lea rax, [rbp + 0x1100]
mov dword [rbp + 0x1100], edi
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, r14
lea ebx, [r9 + 0x16]
mov edx, ebx
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x180003f17
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1800041ef
mov ecx, dword [rbp + 0x1100]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.180001594
mov r8d, dword [rbp + 0x1100]
xor edx, edx
add r8, r8
mov rcx, rax
mov r15, rax
call fcn.18003a090
lea rax, [rbp + 0x1100]
mov qword [rsp + 0x28], rdi
mov r9, r15
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, ebx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x1800041e7
lea rbx, [rsi + 0x50]
mov rdx, r15
mov rcx, rbx
call fcn.180007c40
lea rcx, [rsp + 0x40]
call fcn.180007a80
lea rdx, [0x180074224]
lea rcx, [rsp + 0x78]
call fcn.180007d58
cmp byte [rsi + 0x1a8], dil
jne 0x180004002
lea rdx, str.charset_A_Za_z0_9___
lea rcx, [rsp + 0x78]
call fcn.180007c88
lea rax, [rsp + 0x40]
mov r9, rbx
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x20], rax
call fcn.180003144
test al, al
je 0x180004002
lea rcx, [rsp + 0x40]
call fcn.180007a04
test rax, rax
je 0x180004002
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.1800079f8
mov rdx, rax
lea rcx, [rsi + 0x90]
call fcn.180007c90
lea rdx, str.Content_Length:__0_9_
lea rcx, [rsp + 0x78]
call fcn.180007c88
lea rax, [rsp + 0x40]
mov r9, rbx
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x20], rax
call fcn.180003144
test al, al
je 0x18000405f
lea rcx, [rsp + 0x40]
call fcn.180007a04
test rax, rax
je 0x18000405f
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.1800079f8
mov rcx, rax
call fcn.180007b7c
mov rcx, rax
call fcn.180040b10
mov dword [rsi + 0xc8], eax
lea rdx, str.Location:__0_9_
lea rcx, [rsp + 0x78]
call fcn.180007c88
lea rax, [rsp + 0x40]
mov r9, rbx
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x20], rax
call fcn.180003144
test al, al
je 0x1800040b5
lea rcx, [rsp + 0x40]
call fcn.180007a04
test rax, rax
je 0x1800040b5
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.1800079f8
mov rdx, rax
lea rcx, [rsi + 0x1f0]
call fcn.180007c90
lea rdx, str.Set_Cookie:_b.__n
lea rcx, [rsp + 0x78]
call fcn.180007c88
lea rax, [rsp + 0x40]
mov r9, rbx
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x20], rax
call fcn.180003144
test al, al
je 0x1800041d3
lea rcx, [rsp + 0x40]
call fcn.180007a04
test rax, rax
je 0x1800041d3
lea rcx, [rsp + 0x40]
call fcn.180007a04
lea rbx, [rsi + 0xd0]
test rax, rax
je 0x180004159
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.1800079f8
mov rdx, rax
mov rcx, rbx
call fcn.180007c80
lea rcx, [rsp + 0x40]
call fcn.180007a04
sub rax, r13
cmp rdi, rax
je 0x180004147
lea rdx, [0x18007444c]
mov rcx, rbx
call fcn.180007c78
lea rcx, [rsp + 0x40]
add rdi, r13
call fcn.180007a04
cmp rdi, rax
jb 0x18000410e
lea rdx, [0x18007432c]
lea rcx, [rsp + 0x58]
call fcn.180007d58
lea r8, [rsp + 0x58]
mov rdx, rbx
lea rcx, [rbp + 0x40]
call fcn.180003484
mov rdx, rax
mov rcx, rbx
call fcn.180007cd8
lea rcx, [rbp + 0x40]
call fcn.180007cd0
lea rcx, [rsp + 0x58]
call fcn.180007cd0
mov rcx, rbx
call fcn.180007b74
xor edi, edi
test rax, rax
je 0x1800041d3
mov rcx, rbx
call fcn.180007b74
sub rax, r13
mov rcx, rbx
mov rdx, rax
call fcn.180007b84
cmp word [rax], 0x3b
je 0x1800041d3
lea rdx, [0x180074454]
mov rcx, rbx
call fcn.180007c78
lea rcx, [rsp + 0x78]
call fcn.180007cd0
lea rcx, [rsp + 0x40]
call fcn.180007a78
mov rcx, r15
call fcn.180038734
xor r9d, r9d
mov qword [rsp + 0x28], rdi
lea rax, [rbp + 0x1100]
mov dword [rbp + 0x1100], edi
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, r14
lea r15d, [r9 + 0x13]
mov edx, r15d
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x18000422b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1800042a1
mov ecx, dword [rbp + 0x1100]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.180001594
mov r8d, dword [rbp + 0x1100]
xor edx, edx
add r8, r8
mov rcx, rax
mov rbx, rax
call fcn.18003a090
lea rax, [rbp + 0x1100]
mov qword [rsp + 0x28], rdi
mov r9, rbx
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, r15d
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x180004299
lea rcx, [rsi + 0x168]
mov rdx, rbx
call fcn.180007c88
mov rcx, rbx
call fcn.180038734
mov rcx, qword [rsi + 0xb0]
mov ebx, 0x2800
mov r15d, edi
test rcx, rcx
je 0x1800042c1
call fcn.180038734
mov qword [rsi + 0xb0], rdi
mov rcx, rbx
call fcn.180001594
mov r8, rbx
mov qword [rsi + 0xb0], rax
xor edx, edx
mov rcx, rax
call fcn.18003a090
mov r13d, ebx
lea rdx, [rbp + 0x1100]
mov dword [rbp + 0x1100], edi
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x1800043dd
mov edx, r15d
mov rcx, rsi
call fcn.180004690
mov ecx, dword [rbp + 0x1100]
inc ecx
call fcn.180001594
mov r8d, dword [rbp + 0x1100]
xor edx, edx
inc r8d
mov rcx, rax
mov r12, rax
call fcn.18003a090
mov r8d, dword [rbp + 0x1100]
lea r9, [rbp + 0x1118]
mov rdx, r12
mov dword [rbp + 0x1118], edi
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x1800043cc
mov ecx, dword [rbp + 0x1118]
lea eax, [rcx + r15]
cmp eax, r13d
jbe 0x1800043ad
mov rdi, qword [rsi + 0xb0]
add r13d, r13d
mov ecx, r13d
call fcn.180001594
mov r8d, r13d
xor edx, edx
mov rcx, rax
mov qword [rsi + 0xb0], rax
call fcn.18003a090
mov rcx, qword [rsi + 0xb0]
mov rdx, rdi
mov r8d, r15d
mov ebx, r15d
call fcn.180039840
mov rcx, rdi
call fcn.180038734
mov ecx, dword [rbp + 0x1118]
xor edi, edi
jmp 0x1800043b0
mov ebx, r15d
mov r8d, ecx
mov rdx, r12
mov rcx, qword [rsi + 0xb0]
add rcx, rbx
call fcn.180039840
add r15d, dword [rbp + 0x1118]
mov rcx, r12
call fcn.180038734
lea r12, [rsi + 0x160]
jmp 0x1800043e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r12], eax
cmp dword [rbp + 0x1100], edi
ja 0x1800042e0
mov edx, r15d
mov rcx, rsi
mov r13d, 1
call fcn.180004690
lea rcx, [rsi + 0x90]
mov dword [rsi + 0xb8], r15d
call fcn.180007b7c
mov rcx, rax
lea r8d, [r13 + 4]
lea rdx, [0x180074458]
call fcn.180044260
mov r9d, dword [rsi + 0xb8]
mov ecx, edi
mov r8, qword [rsi + 0xb0]
test eax, eax
mov dword [rsp + 0x28], edi
setne cl
mov qword [rsp + 0x20], rdi
neg eax
mov dword [rbp + 0x1110], ecx
mov edx, ecx
sbb r12d, r12d
add r9d, r13d
not r12d
and r12d, 0xfde9
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov r15d, eax
test eax, eax
jg 0x1800044a8
mov r9d, dword [rsi + 0xb8]
mov edx, r13d
mov r8, qword [rsi + 0xb0]
add r9d, r13d
mov dword [rsp + 0x28], edi
xor ecx, ecx
mov r12d, edi
mov dword [rbp + 0x1110], r13d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov r15d, eax
test eax, eax
jle 0x18000451b
mov rcx, 0xffffffffffffffff
mov ebx, r15d
mov eax, 2
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.180001594
lea r8, [rbx + rbx]
xor edx, edx
mov rcx, rax
mov rdi, rax
call fcn.18003a090
mov r9d, dword [rsi + 0xb8]
mov ecx, r12d
mov r8, qword [rsi + 0xb0]
add r9d, r13d
mov edx, dword [rbp + 0x1110]
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x180004511
lea rcx, [rsi + 0x70]
mov rdx, rdi
call fcn.180007c88
mov rcx, rdi
call fcn.180038734
xor edi, edi
lea rcx, [rbp - 0x58]
mov byte [rbp + 0x1110], r13b
call fcn.18000b350
test al, al
je 0x1800045ff
lea rdx, str._html_
lea rcx, [rsp + 0x58]
call fcn.180007d58
lea rcx, [rsp + 0x40]
call fcn.180007a80
lea rax, [rsp + 0x40]
lea r9, [rsi + 0x70]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x58]
call fcn.180003144
test al, al
je 0x1800045c6
lea rcx, [rsp + 0x40]
call fcn.180007a04
test rax, rax
je 0x1800045c6
lea rdx, str.__html_
lea rcx, [rsp + 0x58]
call fcn.180007c88
lea rax, [rsp + 0x40]
lea r9, [rsi + 0x70]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x58]
call fcn.180003144
test al, al
je 0x1800045b5
lea rcx, [rsp + 0x40]
call fcn.180007a04
test rax, rax
jne 0x1800045c6
mov dword [rsi + 0x160], 0xd
mov byte [rbp + 0x1110], dil
lea rcx, [rsp + 0x40]
call fcn.180007a78
lea rcx, [rsp + 0x58]
call fcn.180007cd0
jmp 0x1800045e6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r12], eax
lea r15, [rsi + 0x10]
mov ecx, dword [rbp - 0x68]
cmp byte [rbp + 0x1110], dil
je 0x180003a57
jmp 0x1800045ff
mov r13b, dil
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rdi, qword [rbp - 0x60]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x180004627
mov eax, 0x57
mov ecx, 0x160
mov r13b, r12b
mov dword [rcx + rsi], eax
lea rcx, [rbp - 0x58]
call fcn.180007cd0
mov al, r13b
mov rbx, qword [rsp + 0x1208]
add rsp, 0x11c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret