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

Disassembly:
push r15
xor eax, eax
mov r15, rdx
xor edx, edx
push r14
mov r14, r9
xor r9d, r9d
push r13
mov r13, r8
xor r8d, r8d
push r12
push rbp
push rdi
push rsi
mov rsi, rcx
mov ecx, 0x100
push rbx
sub rsp, 0x478
lea rdi, [rsp + 0x70]
mov dword [rsp + 0x68], r8d
rep stosd dword [rdi], eax
mov rdi, qword [0x14000ba80]
mov dword [rsp + 0x6c], r8d
xor r8d, r8d
mov rcx, qword [rdi + 0x28]
mov dword [rsp + 0x20], r9d
xor r9d, r9d
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rbp, qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x40], rax
test rax, rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
jne 0x1400094c3
call rbp
lea rcx, str.WinH_ttpOpen_:_Failed____d_n
mov edx, eax
jmp 0x1400094fd
mov rdx, qword [rdi + 0x30]
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
movzx r8d, word [rdi + 0x38]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r12, rax
call rbp
lea rcx, str.__WinHttp_Connect____d_n
mov edx, eax
call fcn.140009810
test r12, r12
jne 0x14000950e
call rbp
lea rcx, str.WinHttpConnect:__Failed____d_n
mov edx, eax
call fcn.140009810
xor esi, esi
xor ebx, ebx
xor r12d, r12d
jmp 0x1400096f7
cmp dword [rdi + 0x4c], 0
mov dword [rsp + 0x68], 0x100
je 0x140009524
mov dword [rsp + 0x68], 0x800100
mov eax, dword [rsp + 0x68]
xor ecx, ecx
xor r9d, r9d
lea rdx, str.POST
mov qword [rsp + 0x28], rcx
lea r8, str.index.php
mov qword [rsp + 0x20], rcx
mov rcx, r12
mov dword [rsp + 0x30], eax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rbx, rax
call rbp
lea rcx, str.__WinHttpOpe_nRequest___d_n
mov edx, eax
call fcn.140009810
test rbx, rbx
jne 0x140009581
call rbp
lea rcx, str._cd:_Failed____d_n
xor esi, esi
mov edx, eax
call fcn.140009810
jmp 0x14000970f
cmp dword [rdi + 0x4c], 0
je 0x1400095c9
mov dword [rsp + 0x68], 0x3300
mov r9d, 4
lea r8, [rsp + 0x68]
mov rcx, rbx
mov edx, 0x1f
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x1400095b9
call rbp
lea rcx, str.WinHttpSetOption:_Failed____d_n
mov edx, eax
jmp 0x1400095c4
call rbp
lea rcx, str.__WinHttpSetOption____d_n
mov edx, eax
call fcn.140009810
xor edx, edx
xor r8d, r8d
mov dword [rsp + 0x28], r15d
mov r9, rsi
mov qword [rsp + 0x30], rdx
mov rcx, rbx
xor edx, edx
mov dword [rsp + 0x20], r15d
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x1400096ce
test r13, r13
je 0x1400096f5
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x1400096f5
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpReadData]
xor edi, edi
xor r15d, r15d
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x58]
lea r9, [rsp + 0x6c]
mov rcx, rbx
mov r8d, 0x400
call rax
mov dword [rsp + 0x54], eax
test eax, eax
je 0x14000964c
mov edx, dword [rsp + 0x6c]
test edx, edx
jne 0x14000965e
jmp 0x1400096b8
call rbp
lea rcx, str.WinHttpReadDcata:_Failed___d__n
mov edx, eax
call fcn.140009810
jmp 0x1400096b8
test r15, r15
jne 0x140009670
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x140009682
add rdx, rdi
mov r8d, 0x42
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov ecx, dword [rsp + 0x6c]
mov r15, rax
lea rax, [rax + rdi]
mov rsi, qword [rsp + 0x48]
lea rdx, [rcx + rdi]
mov rdi, rax
xor eax, eax
cmp dword [rsp + 0x54], 1
rep movsb byte [rdi], byte [rsi]
mov rdi, qword [rsp + 0x48]
mov ecx, 0x100
rep stosd dword [rdi], eax
jne 0x1400096bb
mov rdi, rdx
jmp 0x140009620
mov rdx, rdi
test r14, r14
je 0x1400096c3
mov qword [r14], rdx
mov qword [r13], r15
mov esi, 1
jmp 0x1400096f7
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
call rsi
cmp eax, 0x2efd
jne 0x1400096e5
xor eax, eax
mov dword [rdi + 0xc], eax
jmp 0x1400096f5
call rsi
lea rcx, str.WinHttpSe_ndRequest:_Failed____d_n
mov edx, eax
call fcn.140009810
xor esi, esi
mov rcx, qword [rsp + 0x40]
mov rdi, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rdi
mov rcx, r12
call rdi
mov rcx, rbx
call rdi
add rsp, 0x478
mov eax, esi
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret