Function at 0x180002e1c
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x11b0
call fcn.180004ce0
sub rsp, rax
mov rax, qword [0x18000ffd8]
xor rax, rsp
mov qword [rsp + 0x11a0], rax
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x40]
call fcn.180001738
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x78]
call fcn.180003d6c
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xb0], rax
mov rcx, qword [rsp + 0xb0]
call fcn.1800039d0
mov qword [rsp + 0xc0], rax
lea rax, [rsp + 0xe0]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [rsp + 0xe0], 0x68
mov dword [rsp + 0xf0], 0xffffffff
mov dword [rsp + 0x100], 0xffffffff
mov dword [rsp + 0x110], 0xffffffff
mov dword [rsp + 0x120], 0xffffffff
mov dword [rsp + 0x130], 0xffffffff
mov dword [rsp + 0x140], 0xffffffff
mov dword [rsp + 0x28], 0x400
lea rax, [rsp + 0x9a0]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, qword [rsp + 0x11c0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rax, [rsp + 0x9a0]
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0x68], 0xffffffffffffffff
inc qword [rsp + 0x68]
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x68]
cmp word [rax + rcx*2], 0
jne 0x180002f3e
mov rax, qword [rsp + 0x68]
lea r9, [rsp + 0xe0]
xor r8d, r8d
mov edx, eax
lea rcx, [rsp + 0x9a0]
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x180002f85
mov eax, 1
jmp 0x180003483
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x100]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x100]
mov r8, qword [rsp + 0xf8]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [rsp + 0x100]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0x400
jae 0x180002fe8
jmp 0x180002fed
call fcn.18000465c
mov rax, qword [rsp + 0x80]
mov byte [rsp + rax + 0x1a0], 0
mov eax, dword [rsp + 0x140]
mov ecx, dword [rsp + 0x130]
add ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x140]
mov edx, dword [rsp + 0x130]
add edx, ecx
mov ecx, edx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x5a0]
mov qword [rsp + 0x20], rax
mov r9d, ecx
mov r8, qword [rsp + 0x128]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [rsp + 0x140]
mov ecx, dword [rsp + 0x130]
add ecx, eax
mov eax, ecx
mov eax, eax
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0x400
jae 0x180003085
jmp 0x18000308a
call fcn.18000465c
mov rax, qword [rsp + 0x88]
mov byte [rsp + rax + 0x5a0], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x1800030d2
mov eax, 1
jmp 0x180003483
lea rcx, [rsp + 0x1a0]
call fcn.1800039d0
xor r9d, r9d
movzx r8d, word [rsp + 0x104]
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x18000311b
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, 1
jmp 0x180003483
mov dword [rsp + 0x58], 0x100
cmp dword [rsp + 0xf4], 2
jne 0x180003139
mov eax, dword [rsp + 0x58]
bts eax, 0x17
mov dword [rsp + 0x58], eax
lea rax, [rsp + 0x41]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x41]
call fcn.180001b58
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x90]
call fcn.180003a24
lea rcx, [rsp + 0x5a0]
call fcn.1800039d0
mov qword [rsp + 0xc8], rax
mov rcx, qword [rsp + 0x90]
call fcn.1800039d0
mov ecx, dword [rsp + 0x58]
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov rcx, qword [rsp + 0xc8]
mov r8, rcx
mov rdx, rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1800031ee
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, 1
jmp 0x180003483
mov dword [rsp + 0x150], 0
mov eax, dword [rsp + 0x150]
or eax, 0x3300
mov dword [rsp + 0x150], eax
mov r9d, 4
lea r8, [rsp + 0x150]
mov edx, 0x1f
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x18000324e
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, 1
jmp 0x180003483
mov dword [rsp + 0x70], 0x18
lea rax, [rsp + 0x160]
mov rdi, rax
xor eax, eax
mov ecx, 0x20
rep stosb byte [rdi], al
lea rax, [rsp + 0x180]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov dword [rsp + 0x160], 1
mov dword [rsp + 0x164], 3
mov dword [rsp + 0x17c], 1
lea r9, [rsp + 0x180]
lea r8, [rsp + 0x160]
lea rdx, [rsp + 0x9a0]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x1800032f1
mov r9d, dword [rsp + 0x70]
lea r8, [rsp + 0x180]
mov edx, 0x26
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x1800032f1
mov eax, 1
jmp 0x180003483
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x180003359
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0xa0], eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, 1
jmp 0x180003483
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x180003395
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, 1
jmp 0x180003483
mov dword [rsp + 0xd0], 0
mov dword [rsp + 0xa4], 0
mov dword [rsp + 0xa8], 0
mov dword [rsp + 0x154], 4
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x154]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xd0]
xor r8d, r8d
mov edx, 0x20000005
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov eax, dword [rsp + 0xd0]
mov ecx, eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rsp + 0x98], rax
lea r9, [rsp + 0x158]
mov r8d, dword [rsp + 0xd0]
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x18000343b
cmp dword [rsp + 0x158], 0
jbe 0x18000343b
jmp 0x180003408
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rax, qword [rsp + 0x11c8]
mov rcx, qword [rsp + 0x98]
mov qword [rax], rcx
mov eax, dword [rsp + 0xd0]
mov rcx, qword [rsp + 0x11d0]
mov qword [rcx], rax
xor eax, eax
mov rcx, qword [rsp + 0x11a0]
xor rcx, rsp
call fcn.180004d40
add rsp, 0x11b0
pop rdi
ret