Function at 0x180003a38
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.18003b650
sub rsp, rax
lea r15, [rcx + 0x10]
mov rsi, rcx
mov rcx, r15
mov rbx, rdx
call fcn.1800092c4
xor r12d, r12d
test rax, rax
jne 0x180003a8b
mov dword [rsi + 0x160], 3
jmp 0x180004883
mov rdx, rbx
lea rcx, [rbp - 0x58]
call fcn.180009534
lea rcx, [rbp - 0x58]
call fcn.1800092cc
lea rbx, [0x1800784e8]
mov rcx, rax
mov rdx, rbx
call fcn.1800428d0
lea rcx, [rbp - 0x58]
test eax, eax
je 0x180003add
call fcn.1800092cc
lea rbx, str.POST
mov rcx, rax
mov rdx, rbx
call fcn.1800428d0
test eax, eax
jne 0x180004867
lea rcx, [rbp - 0x58]
mov rdx, rbx
call fcn.1800093d8
mov rcx, qword [rsi]
mov r13d, 1
test rcx, rcx
jne 0x180003b2b
lea rcx, [rsi + 0x188]
call fcn.1800092cc
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 0x180003b2b
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18000486c
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.18003c560
xor edx, edx
mov word [rbp + 0x690], r12w
mov r8d, 0xa26
lea rcx, [rbp + 0x692]
call fcn.18003c560
mov ebx, 0x68
lea rcx, [rbp - 0x30]
mov r8d, ebx
xor edx, edx
call fcn.18003c560
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.1800092c4
mov rcx, r15
mov rbx, rax
call fcn.1800092cc
mov rcx, rax
lea r9, [rbp - 0x30]
xor r8d, r8d
mov edx, ebx
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x180004877
lea rcx, [rsi + 0x30]
lea rdx, [rbp + 0x270]
call fcn.1800093d8
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 0x180004877
cmp dword [rbp - 0x1c], 2
lea rcx, [rbp - 0x58]
mov eax, 0x800000
mov ebx, r12d
cmove ebx, eax
call fcn.1800092cc
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 0x18000485c
xor edi, edi
cmp byte [rsi + 8], dil
jne 0x180003c9e
cmp dword [rbp - 0x1c], 2
jne 0x180003c9e
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 0x18000484c
lea rdi, [rsi + 0x120]
mov rcx, rdi
call fcn.1800092c4
test rax, rax
je 0x180003d08
mov rcx, rdi
call fcn.1800092c4
mov rcx, rdi
mov rbx, rax
call fcn.1800092cc
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 0x180003d0a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x160], eax
jmp 0x180003d0a
xor edi, edi
lea rbx, [rsi + 0xf0]
mov rcx, rbx
call fcn.1800092c4
test rax, rax
je 0x180003d89
lea rdx, str.Cookie:
lea rcx, [rsp + 0x58]
call fcn.1800094a8
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.1800093d0
lea rcx, [rsp + 0x58]
call fcn.1800092c4
lea rcx, [rsp + 0x58]
mov rbx, rax
call fcn.1800092cc
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 0x180003d7d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r12], eax
lea rcx, [rsp + 0x58]
call fcn.180009420
jmp 0x180003d90
lea r12, [rsi + 0x160]
lea rbx, [rsi + 0x140]
mov rcx, rbx
call fcn.1800092c4
test rax, rax
je 0x180003ebf
mov r15d, 0x18
lea rcx, [rsp + 0x40]
mov r8d, r15d
xor edx, edx
call fcn.18003c560
xor edx, edx
mov dword [rsp + 0x40], 3
mov r8d, 0x206
mov word [rbp + 0x60], di
lea rcx, [rbp + 0x62]
call fcn.18003c560
mov rcx, rbx
call fcn.1800092cc
mov r8, rax
lea rcx, [rbp + 0x60]
mov edx, 0x104
call fcn.1800436f4
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 0x180003e27
lea rdi, [rsi + 0x160]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
lea r15, [rsi + 0x1b0]
mov rcx, r15
call fcn.1800092c4
test rax, rax
je 0x180003eb9
mov rcx, r15
call fcn.1800092c4
mov rbx, rax
mov rcx, r15
add ebx, ebx
call fcn.1800092cc
mov r8, rax
mov r9d, ebx
mov edx, 0x1002
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x180003e70
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
lea r15, [rsi + 0x1d0]
mov rcx, r15
call fcn.1800092c4
test rax, rax
je 0x180003eb9
mov rcx, r15
call fcn.1800092c4
mov rbx, rax
mov rcx, r15
add ebx, ebx
call fcn.1800092cc
mov r8, rax
mov r9d, ebx
mov edx, 0x1003
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x180003eb9
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 0x1800040de
xor edx, edx
lea r8d, [rax + 0x20]
lea rcx, [rsp + 0x78]
call fcn.18003c560
lea rcx, [rsp + 0x78]
call qword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x18000482c
cmp qword [rbp - 0x80], rdi
je 0x180003fe9
xor edx, edx
lea rcx, [rsp + 0x58]
lea r8d, [rdx + 0x20]
call fcn.18003c560
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.18003c560
mov rcx, r15
call fcn.1800092cc
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 0x18000409f
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 0x180003fc0
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 0x180003fd0
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1800040a9
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x1800040a9
cmp qword [rbp - 0x78], rdi
je 0x1800040c7
xor edx, edx
lea rcx, [rsp + 0x40]
lea r8d, [rdx + 0x18]
call fcn.18003c560
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.18003c560
mov r8, qword [rbp - 0x78]
lea rcx, [rbp + 0x60]
mov edx, 0x104
call fcn.1800436f4
mov rdi, qword [rbp - 0x70]
lea rax, [rbp + 0x60]
mov qword [rsp + 0x48], rax
xor eax, eax
test rdi, rdi
je 0x180004081
mov r8d, r15d
mov word [rbp + 0x480], ax
xor edx, edx
lea rcx, [rbp + 0x482]
call fcn.18003c560
mov r8, rdi
lea rcx, [rbp + 0x480]
mov edx, 0x104
call fcn.1800436f4
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 0x1800040a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r12], eax
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x1800040b8
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x1800040c7
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x1800040d6
call qword [sym.imp.KERNEL32.dll_GlobalFree]
test bl, bl
je 0x180004836
mov rdx, qword [rsi + 0x110]
test rdx, rdx
je 0x180004115
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 0x180004115
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 0x18000482c
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 0x180004167
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x18000443f
mov ecx, dword [rbp + 0x1100]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1800016c8
mov r8d, dword [rbp + 0x1100]
xor edx, edx
add r8, r8
mov rcx, rax
mov r15, rax
call fcn.18003c560
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 0x180004437
lea rbx, [rsi + 0x50]
mov rdx, r15
mov rcx, rbx
call fcn.180009390
lea rcx, [rsp + 0x40]
call fcn.1800091d0
lea rdx, [0x1800783b4]
lea rcx, [rsp + 0x78]
call fcn.1800094a8
cmp byte [rsi + 0x1a8], dil
jne 0x180004252
lea rdx, str.charset_A_Za_z0_9___
lea rcx, [rsp + 0x78]
call fcn.1800093d8
lea rax, [rsp + 0x40]
mov r9, rbx
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x20], rax
call fcn.180003394
test al, al
je 0x180004252
lea rcx, [rsp + 0x40]
call fcn.180009154
test rax, rax
je 0x180004252
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.180009148
mov rdx, rax
lea rcx, [rsi + 0x90]
call fcn.1800093e0
lea rdx, str.Content_Length:__0_9_
lea rcx, [rsp + 0x78]
call fcn.1800093d8
lea rax, [rsp + 0x40]
mov r9, rbx
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x20], rax
call fcn.180003394
test al, al
je 0x1800042af
lea rcx, [rsp + 0x40]
call fcn.180009154
test rax, rax
je 0x1800042af
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.180009148
mov rcx, rax
call fcn.1800092cc
mov rcx, rax
call fcn.1800432a0
mov dword [rsi + 0xc8], eax
lea rdx, str.Location:__0_9_
lea rcx, [rsp + 0x78]
call fcn.1800093d8
lea rax, [rsp + 0x40]
mov r9, rbx
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x20], rax
call fcn.180003394
test al, al
je 0x180004305
lea rcx, [rsp + 0x40]
call fcn.180009154
test rax, rax
je 0x180004305
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.180009148
mov rdx, rax
lea rcx, [rsi + 0x1f0]
call fcn.1800093e0
lea rdx, str.Set_Cookie:_b.__n
lea rcx, [rsp + 0x78]
call fcn.1800093d8
lea rax, [rsp + 0x40]
mov r9, rbx
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x20], rax
call fcn.180003394
test al, al
je 0x180004423
lea rcx, [rsp + 0x40]
call fcn.180009154
test rax, rax
je 0x180004423
lea rcx, [rsp + 0x40]
call fcn.180009154
lea rbx, [rsi + 0xd0]
test rax, rax
je 0x1800043a9
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.180009148
mov rdx, rax
mov rcx, rbx
call fcn.1800093d0
lea rcx, [rsp + 0x40]
call fcn.180009154
sub rax, r13
cmp rdi, rax
je 0x180004397
lea rdx, [0x1800785dc]
mov rcx, rbx
call fcn.1800093c8
lea rcx, [rsp + 0x40]
add rdi, r13
call fcn.180009154
cmp rdi, rax
jb 0x18000435e
lea rdx, [0x1800784bc]
lea rcx, [rsp + 0x58]
call fcn.1800094a8
lea r8, [rsp + 0x58]
mov rdx, rbx
lea rcx, [rbp + 0x40]
call fcn.1800036d4
mov rdx, rax
mov rcx, rbx
call fcn.180009428
lea rcx, [rbp + 0x40]
call fcn.180009420
lea rcx, [rsp + 0x58]
call fcn.180009420
mov rcx, rbx
call fcn.1800092c4
xor edi, edi
test rax, rax
je 0x180004423
mov rcx, rbx
call fcn.1800092c4
sub rax, r13
mov rcx, rbx
mov rdx, rax
call fcn.1800092d4
cmp word [rax], 0x3b
je 0x180004423
lea rdx, [0x1800785e4]
mov rcx, rbx
call fcn.1800093c8
lea rcx, [rsp + 0x78]
call fcn.180009420
lea rcx, [rsp + 0x40]
call fcn.1800091c8
mov rcx, r15
call fcn.18003ac08
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 0x18000447b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1800044f1
mov ecx, dword [rbp + 0x1100]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1800016c8
mov r8d, dword [rbp + 0x1100]
xor edx, edx
add r8, r8
mov rcx, rax
mov rbx, rax
call fcn.18003c560
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 0x1800044e9
lea rcx, [rsi + 0x168]
mov rdx, rbx
call fcn.1800093d8
mov rcx, rbx
call fcn.18003ac08
mov rcx, qword [rsi + 0xb0]
mov ebx, 0x2800
mov r15d, edi
test rcx, rcx
je 0x180004511
call fcn.18003ac08
mov qword [rsi + 0xb0], rdi
mov rcx, rbx
call fcn.1800016c8
mov r8, rbx
mov qword [rsi + 0xb0], rax
xor edx, edx
mov rcx, rax
call fcn.18003c560
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 0x18000462d
mov edx, r15d
mov rcx, rsi
call fcn.1800048e0
mov ecx, dword [rbp + 0x1100]
inc ecx
call fcn.1800016c8
mov r8d, dword [rbp + 0x1100]
xor edx, edx
inc r8d
mov rcx, rax
mov r12, rax
call fcn.18003c560
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 0x18000461c
mov ecx, dword [rbp + 0x1118]
lea eax, [rcx + r15]
cmp eax, r13d
jbe 0x1800045fd
mov rdi, qword [rsi + 0xb0]
add r13d, r13d
mov ecx, r13d
call fcn.1800016c8
mov r8d, r13d
xor edx, edx
mov rcx, rax
mov qword [rsi + 0xb0], rax
call fcn.18003c560
mov rcx, qword [rsi + 0xb0]
mov rdx, rdi
mov r8d, r15d
mov ebx, r15d
call fcn.18003bd10
mov rcx, rdi
call fcn.18003ac08
mov ecx, dword [rbp + 0x1118]
xor edi, edi
jmp 0x180004600
mov ebx, r15d
mov r8d, ecx
mov rdx, r12
mov rcx, qword [rsi + 0xb0]
add rcx, rbx
call fcn.18003bd10
add r15d, dword [rbp + 0x1118]
mov rcx, r12
call fcn.18003ac08
lea r12, [rsi + 0x160]
jmp 0x180004637
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r12], eax
cmp dword [rbp + 0x1100], edi
ja 0x180004530
mov edx, r15d
mov rcx, rsi
mov r13d, 1
call fcn.1800048e0
lea rcx, [rsi + 0x90]
mov dword [rsi + 0xb8], r15d
call fcn.1800092cc
mov rcx, rax
lea r8d, [r13 + 4]
lea rdx, [0x1800785e8]
call fcn.180046ee0
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 0x1800046f8
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 0x18000476b
mov rcx, 0xffffffffffffffff
mov ebx, r15d
mov eax, 2
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.1800016c8
lea r8, [rbx + rbx]
xor edx, edx
mov rcx, rax
mov rdi, rax
call fcn.18003c560
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 0x180004761
lea rcx, [rsi + 0x70]
mov rdx, rdi
call fcn.1800093d8
mov rcx, rdi
call fcn.18003ac08
xor edi, edi
lea rcx, [rbp - 0x58]
mov byte [rbp + 0x1110], r13b
call fcn.18000d5ec
test al, al
je 0x18000484f
lea rdx, str._html_
lea rcx, [rsp + 0x58]
call fcn.1800094a8
lea rcx, [rsp + 0x40]
call fcn.1800091d0
lea rax, [rsp + 0x40]
lea r9, [rsi + 0x70]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x58]
call fcn.180003394
test al, al
je 0x180004816
lea rcx, [rsp + 0x40]
call fcn.180009154
test rax, rax
je 0x180004816
lea rdx, str.__html_
lea rcx, [rsp + 0x58]
call fcn.1800093d8
lea rax, [rsp + 0x40]
lea r9, [rsi + 0x70]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x58]
call fcn.180003394
test al, al
je 0x180004805
lea rcx, [rsp + 0x40]
call fcn.180009154
test rax, rax
jne 0x180004816
mov dword [rsi + 0x160], 0xd
mov byte [rbp + 0x1110], dil
lea rcx, [rsp + 0x40]
call fcn.1800091c8
lea rcx, [rsp + 0x58]
call fcn.180009420
jmp 0x180004836
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 0x180003ca7
jmp 0x18000484f
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 0x180004877
mov eax, 0x57
mov ecx, 0x160
mov r13b, r12b
mov dword [rcx + rsi], eax
lea rcx, [rbp - 0x58]
call fcn.180009420
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