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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x140247670]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbp, r9
mov rsi, rcx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x40], 1
xor eax, eax
mov qword [rcx], rax
call fcn.14000ee9c
mov rcx, rax
test rax, rax
je 0x14000445f
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsi], rax
mov dword [rsp + 0x40], 1
xor r14d, r14d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.WinHTTP_Example_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rdi, rax
test rax, rax
je 0x14000446a
lea r8d, [r14 + 0x50]
xor r9d, r9d
lea rdx, str.google.1tfa51c3.com
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov rbx, rax
test rax, rax
je 0x140004498
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov r8, rbp
lea rdx, [0x140215690]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rbp, rax
test rax, rax
je 0x1400044c6
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x140004430
xor edx, edx
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [rsp + 0x54], r14d
test eax, eax
je 0x1400043ef
nop dword [rax]
mov dword [rsp + 0x50], r14d
lea rdx, [rsp + 0x50]
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x1400043c7
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x14000440b
lea ecx, [rax + 1]
call fcn.14000da10
mov rdi, rax
test rax, rax
je 0x1400043b1
mov r8d, dword [rsp + 0x50]
inc r8d
xor edx, edx
mov rcx, rax
call fcn.14018f9d0
lea r9, [rsp + 0x54]
mov r8d, dword [rsp + 0x50]
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x140004389
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.Error_WinHttpQueryDataAvailable_failed_
call fcn.140009330
mov rcx, rax
mov edx, ebx
call fcn.140005b30
mov rcx, rax
call fcn.140009610
cmp dword [rsp + 0x54], r14d
je 0x14000440b
mov r9, rdi
mov r8, qword [rsi]
lea rdx, str._s_s
mov rcx, rsi
call fcn.140009300
cmp dword [rsp + 0x50], r14d
jbe 0x14000440b
jmp 0x140004300
lea rdx, str.Out_of_memory.
call fcn.140009330
mov rcx, rax
call fcn.140009610
jmp 0x14000440b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.Error_WinHttpQueryDataAvailable_failed_
call fcn.140009330
mov rcx, rax
mov edx, ebx
call fcn.140005b30
mov rcx, rax
call fcn.140009610
jmp 0x14000440b
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rax, rsi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14018ce10
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ebx, eax
lea rdx, str.Error:SendRequest_failed:
call fcn.140009330
mov rcx, rax
mov edx, ebx
call fcn.140005b30
mov rcx, rax
call fcn.140005e70
xor ecx, ecx
call fcn.140193e68
nop
mov ecx, 0x80004005
call fcn.140002600
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.Error:Open_session_failed:
call fcn.140009330
mov rcx, rax
mov edx, ebx
call fcn.140005b30
mov rcx, rax
call fcn.140005e70
xor ecx, ecx
call fcn.140193e68
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.Error:Connect_failed:
call fcn.140009330
mov rcx, rax
mov edx, ebx
call fcn.140005b30
mov rcx, rax
call fcn.140005e70
xor ecx, ecx
call fcn.140193e68
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.Error:OpenRequest_failed:
call fcn.140009330
mov rcx, rax
mov edx, ebx
call fcn.140005b30
mov rcx, rax
call fcn.140005e70
xor ecx, ecx
call fcn.140193e68
int3