Function at 0x140001230
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
jmp 0x1400015b0
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x1e8
mov rdi, rsp
movabs rcx, 0x7a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x200]
mov qword [rsp + 0x1b8], 0xfffffffffffffffe
mov qword [rsp + 0x48], 0
lea rdi, [rsp + 0x50]
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
lea rcx, [rsp + 0x78]
call fcn.14000121c
nop
mov dword [rsp + 0xb4], 0
mov dword [rsp + 0xc4], 0
mov qword [rsp + 0xc8], 0
mov qword [rsp + 0xd0], 0
mov qword [rsp + 0xd8], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.WinHTTP_Example_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rsp + 0xc8], rax
cmp qword [rsp + 0xc8], 0
jne 0x1400016c3
lea rdi, [rsp + 0x120]
lea rsi, [rsp + 0x48]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x78]
call fcn.1400010aa
lea rsi, [rsp + 0x120]
mov rdi, qword [rsp + 0x200]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x200]
jmp 0x140001b12
xor r9d, r9d
movzx r8d, word [rsp + 0x210]
mov rdx, qword [rsp + 0x208]
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rsp + 0xd0], rax
cmp qword [rsp + 0xd0], 0
jne 0x14000173a
lea rdi, [rsp + 0x130]
lea rsi, [rsp + 0x48]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x78]
call fcn.1400010aa
lea rsi, [rsp + 0x130]
mov rdi, qword [rsp + 0x200]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x200]
jmp 0x140001b12
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x218]
lea rdx, [0x140075e48]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rsp + 0xd8], rax
cmp qword [rsp + 0xd8], 0
jne 0x1400017c9
lea rdi, [rsp + 0x140]
lea rsi, [rsp + 0x48]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x78]
call fcn.1400010aa
lea rsi, [rsp + 0x140]
mov rdi, qword [rsp + 0x200]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x200]
jmp 0x140001b12
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 + 0xd8]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [rsp + 0xc4], eax
cmp dword [rsp + 0xc4], 0
jne 0x14000184b
lea rdi, [rsp + 0x150]
lea rsi, [rsp + 0x48]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x78]
call fcn.1400010aa
lea rsi, [rsp + 0x150]
mov rdi, qword [rsp + 0x200]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x200]
jmp 0x140001b12
xor edx, edx
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [rsp + 0xc4], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ConvertThreadToFiber]
cmp dword [rsp + 0xc4], 0
je 0x1400019d5
mov qword [rsp + 0xe0], 0
mov dword [rsp + 0xf4], 0
lea rdx, [rsp + 0xf4]
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
cmp dword [rsp + 0xf4], 0
jne 0x1400018b4
jmp 0x1400019d5
mov ecx, dword [rsp + 0xf4]
call fcn.1400069e0
mov qword [rsp + 0x160], rax
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0xe0], rax
mov ecx, dword [rsp + 0xf4]
mov rdi, qword [rsp + 0xe0]
xor eax, eax
rep stosb byte [rdi], al
lea r9, [rsp + 0xb4]
mov r8d, dword [rsp + 0xf4]
mov rdx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x1400019ad
lea rax, [rsp + 0x168]
mov qword [rsp + 0x180], rax
mov eax, dword [rsp + 0xb4]
mov rdi, qword [rsp + 0xe0]
add rdi, rax
lea rdx, [rsp + 0x188]
lea rcx, [rsp + 0x78]
call fcn.140001145
mov qword [rsp + 0x1c0], rax
mov rax, qword [rsp + 0x1c0]
mov qword [rsp + 0x1c8], rax
mov rdx, qword [rsp + 0x1c8]
mov rcx, qword [rsp + 0x180]
call fcn.1400011c7
mov qword [rsp + 0x1d0], rax
mov r9, rdi
mov r8, qword [rsp + 0xe0]
mov rdx, qword [rsp + 0x1d0]
lea rcx, [rsp + 0x78]
call fcn.140001005
nop
lea rcx, [rsp + 0x188]
call fcn.1400011b3
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x1a0], rax
mov rcx, qword [rsp + 0x1a0]
call fcn.140008000
xor eax, eax
cmp eax, 1
jne 0x140001878
lea rcx, [rsp + 0x78]
call fcn.140001104
movzx eax, al
test eax, eax
jne 0x140001a8a
lea rcx, [rsp + 0x78]
call fcn.14000105f
mov qword [rsp + 0x108], rax
mov rcx, qword [rsp + 0x108]
call fcn.140007fc0
mov qword [rsp + 0x110], rax
mov dword [rsp + 0x118], 0
jmp 0x140001a2f
mov eax, dword [rsp + 0x118]
add eax, 1
mov dword [rsp + 0x118], eax
movsxd rdi, dword [rsp + 0x118]
lea rcx, [rsp + 0x78]
call fcn.14000105f
cmp rdi, rax
jae 0x140001a70
movsxd rdx, dword [rsp + 0x118]
lea rcx, [rsp + 0x78]
call fcn.140001190
movsxd rdx, dword [rsp + 0x118]
mov rcx, qword [rsp + 0x110]
movzx eax, byte [rax]
mov byte [rcx + rdx], al
jmp 0x140001a1e
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0xd8], 0
je 0x140001aa3
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp qword [rsp + 0xd0], 0
je 0x140001abc
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp qword [rsp + 0xc8], 0
je 0x140001ad5
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea rdi, [rsp + 0x1a8]
lea rsi, [rsp + 0x48]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x78]
call fcn.1400010aa
lea rsi, [rsp + 0x1a8]
mov rdi, qword [rsp + 0x200]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x200]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140075fe0]
call fcn.140008020
mov rax, rdi
add rsp, 0x1e8
pop rdi
pop rsi
ret