Function at 0x14002e470
Capabilities:
Check http status code
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x90]
sub rsp, 0x190
movaps xmmword [rsp + 0x180], xmm6
mov rax, qword [0x140083100]
xor rax, rsp
mov qword [rbp + 0x78], rax
mov rbx, rdx
mov rdi, rcx
xor r15d, r15d
cmp qword [r8 + 0x10], r15
je 0x14002ead3
mov rdx, r8
lea rcx, [rbp + 0x58]
call fcn.14002d810
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rax
mov dword [rsp + 0x60], 0x68
mov dword [rbp - 0x80], 0xffffffff
mov dword [rbp - 0x50], 0xffffffff
cmp qword [rdi + 0x18], 7
jbe 0x14002e504
mov rdi, qword [rdi]
lea r9, [rsp + 0x60]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x14002e53b
lea rdx, str.Failed_to_crack_URL.
lea rcx, [0x140085180]
call fcn.140005190
mov rcx, rax
call fcn.14001fb50
jmp 0x14002ea9c
mov r8d, dword [rbp - 0x80]
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x10], r15
mov rdx, qword [rsp + 0x78]
lea rcx, [rbp - 0x28]
call fcn.140009570
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x18], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x28], xmm1
mov rdx, qword [rbp - 0x58]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14002e580
lea rcx, [rbp + 0x18]
call fcn.140009570
nop
mov rcx, qword [rbx + 0x10]
movabs rax, 0x7ffffffffffffffe
sub rax, rcx
cmp rax, 0xd
jb 0x14002eb04
cmp qword [rbx + 0x18], 7
jbe 0x14002e5ba
mov rbx, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 0xd
lea r9, str._post_result_
lea rcx, [rsp + 0x40]
call fcn.140002030
nop
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
cmova rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
lea rcx, [rbp + 0x18]
call fcn.140002170
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x14002e641
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002e63c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002eb1c
call fcn.1400361dc
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.A_WinHTTP_Example_Program_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rdi, rax
movdqa xmm6, xmmword [0x140077360]
test rax, rax
jne 0x14002e68b
lea rdx, str.Failed_to_open_WinHTTP_session.
lea rcx, [0x140085180]
call fcn.140005190
mov rcx, rax
call fcn.14001fb50
jmp 0x14002e9f9
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 7
cmova rdx, qword [rbp - 0x28]
xor r9d, r9d
movzx r8d, word [rbp - 0x7c]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r14, rax
test rax, rax
jne 0x14002e704
lea rdx, str.Failed_to_connect_to_server_at
lea rcx, [0x1400853c0]
call fcn.14002adf0
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 7
cmova rdx, qword [rbp - 0x28]
mov r8, qword [rbp - 0x18]
mov rcx, rax
call fcn.14002cf40
lea rdx, [0x140076d68]
mov rcx, rax
call fcn.14002adf0
mov rcx, rax
call fcn.14002b0b0
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x14002e9f9
xorps xmm0, xmm0
movups xmmword [rbp + 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x48], xmm1
mov r8d, 0x20
lea rdx, str.Content_Type:_application_json_r_n
lea rcx, [rbp + 0x38]
call fcn.140009570
nop
movabs rax, 0x7fffffffffffffff
mov rcx, qword [rbp + 0x68]
sub rax, rcx
cmp rax, 0xc
jb 0x14002eb0a
lea rax, [rbp + 0x58]
cmp qword [rbp + 0x70], 0xf
cmova rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0xc
lea r9, str._result_:__
lea rcx, [rsp + 0x40]
call fcn.14000a7b0
nop
mov r8d, 2
lea rdx, [0x140076e64]
lea rcx, [rsp + 0x40]
call fcn.140004b10
xorps xmm0, xmm0
movups xmmword [rbp - 8], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 8], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 8], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14002e7f9
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002e7f4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002eb10
call fcn.1400361dc
movdqa xmm0, xmmword [0x140077370]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
lea r8, [rbp + 0x18]
cmp qword [rbp + 0x30], 7
cmova r8, qword [rbp + 0x18]
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
xor r9d, r9d
lea rdx, str.POST
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rsi, rax
test rax, rax
jne 0x14002e864
lea rdx, str.Failed_to_open_HTTP_request.
lea rcx, [0x1400853c0]
call fcn.14002adf0
mov rcx, rax
call fcn.14002b0b0
jmp 0x14002e950
lea r9, [rbp - 8]
cmp qword [rbp + 0x10], 0xf
cmova r9, qword [rbp - 8]
lea rdx, [rbp + 0x38]
cmp qword [rbp + 0x50], 7
cmova rdx, qword [rbp + 0x38]
mov qword [rsp + 0x30], r15
mov eax, dword [rbp + 8]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov r8d, 0xffffffff
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x14002e919
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [rbp - 0x30], r15d
mov dword [rbp - 0x2c], 4
mov qword [rsp + 0x28], r15
lea rax, [rbp - 0x2c]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x30]
xor r8d, r8d
mov edx, 0x20000013
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x14002e947
cmp dword [rbp - 0x30], 0xc8
jne 0x14002e8fe
lea rdx, str.Result_posted_successfully.
lea rcx, [0x1400852a0]
call fcn.14002adf0
jmp 0x14002e93f
lea rdx, str.Failed_to_post_result._HTTP_Status_Code:
lea rcx, [0x1400853c0]
call fcn.14002adf0
mov edx, dword [rbp - 0x30]
mov rcx, rax
jmp 0x14002e93a
lea rdx, str.Failed_to_send_HTTP_request._Error_code:
lea rcx, [0x1400853c0]
call fcn.14002adf0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.1400282d0
mov rcx, rax
call fcn.14002b0b0
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rdx, qword [rbp + 0x10]
cmp rdx, 0xf
jbe 0x14002e99e
inc rdx
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002e999
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002eb16
call fcn.1400361dc
movdqa xmm0, xmmword [0x140077370]
movdqu xmmword [rbp + 8], xmm0
mov byte [rbp - 8], 0
mov rdx, qword [rbp + 0x50]
cmp rdx, 7
jbe 0x14002e9ef
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002e9ea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002eb1c
call fcn.1400361dc
movdqu xmmword [rbp + 0x48], xmm6
mov word [rbp + 0x38], r15w
mov rdx, qword [rbp + 0x30]
cmp rdx, 7
jbe 0x14002ea41
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002ea34
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002eb22
call fcn.1400361dc
movdqa xmm6, xmmword [0x140077360]
movdqu xmmword [rbp + 0x28], xmm6
mov word [rbp + 0x18], r15w
mov rdx, qword [rbp - 0x10]
cmp rdx, 7
jbe 0x14002ea8b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002ea86
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002eb28
call fcn.1400361dc
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r15w
mov rdx, qword [rbp + 0x70]
cmp rdx, 0xf
jbe 0x14002ead3
inc rdx
mov rcx, qword [rbp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002eace
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002eafe
call fcn.1400361dc
mov rcx, qword [rbp + 0x78]
xor rcx, rsp
call fcn.140036180
mov rbx, qword [rsp + 0x1d8]
movaps xmm6, xmmword [rsp + 0x180]
add rsp, 0x190
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14003c334
nop
call fcn.140001980
nop
call fcn.140001980
nop
call fcn.14003c334
nop
call fcn.14003c334
nop
call fcn.14003c334
nop
call fcn.14003c334
nop
call fcn.14003c334
int3