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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x180231100]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r13, rcx
xor eax, eax
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.Fontesie_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r15, rax
mov r8d, 0x1bb
xor r9d, r9d
lea rdx, str.discordapp.com
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r14, rax
lea rbx, [r13 + 0x10]
xorps xmm0, xmm0
movups xmmword [rbp - 0x51], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x41], xmm1
mov r8d, reloc.WS2_32.dll_ntohl
lea r12, str._api_webhooks_
mov rdx, r12
lea rcx, [rbp - 0x51]
call fcn.18001bc30
nop
mov r10, qword [rbx + 0x10]
mov rdi, rbx
cmp qword [rbx + 0x18], 7
jbe 0x18001cf28
mov rdi, qword [rbx]
cmp r10, 0xe
jb 0x18001cfa5
lea r11, [r10 - 0xd]
lea r11, [rdi + r11*2]
mov rax, rdi
nop dword [rax]
mov rcx, r11
sub rcx, rax
sar rcx, 1
mov edx, 0
je 0x18001cf6c
cmp word [rax], 0x2f
je 0x18001cf69
cmp rcx, 1
je 0x18001cf6c
dec rcx
add rax, 2
cmp word [rax], 0x2f
jne 0x18001cf56
mov rdx, rax
mov rax, rdx
test rdx, rdx
je 0x18001cfa5
mov r8d, reloc.WS2_32.dll_ntohl
mov rdx, r12
mov r9, rax
sub r9, r12
movzx ecx, word [rdx + r9]
cmp cx, word [rdx]
jne 0x18001cf9f
add rdx, 2
sub r8, 1
jne 0x18001cf83
sub rax, rdi
sar rax, 1
jmp 0x18001cfac
add rax, 2
jmp 0x18001cf40
mov rax, 0xffffffffffffffff
mov rdx, qword [rbp - 0x41]
add rdx, rax
xorps xmm0, xmm0
movups xmmword [rbp + 0xf], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x1f], xmm1
cmp r10, rdx
jb 0x18001d206
sub r10, rdx
mov r8, 0xffffffffffffffff
cmp r10, r8
cmovb r8, r10
cmp qword [rbx + 0x18], 7
jbe 0x18001cfe6
mov rbx, qword [rbx]
lea rdx, [rbx + rdx*2]
lea rcx, [rbp + 0xf]
call fcn.18001bc30
nop
mov rdx, qword [rbp - 0x39]
cmp rdx, 7
jbe 0x18001d034
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001d02f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001d17d
call fcn.1800d1d5c
lea r8, [rbp + 0xf]
mov rdx, r12
lea rcx, [rbp - 0x11]
call fcn.18001bab0
nop
lea r8, [rbp - 0x11]
cmp qword [rbp + 7], 7
cmova r8, qword [rbp - 0x11]
mov dword [rsp + 0x30], 0x800000
xor edi, edi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
lea rdx, [0x18012b628]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rbx, rax
mov dword [rsp + 0x28], edi
mov byte [rsp + 0x20], dil
mov r9b, reloc.WLDAP32.dll_Ordinal_32
lea r8d, [rdi - 1]
lea rdx, [rbp - 0x31]
mov rcx, r13
call fcn.180009450
lea r9, [rbp - 0x31]
cmp qword [rbp - 0x19], 0xf
cmova r9, qword [rbp - 0x31]
mov qword [rsp + 0x30], rdi
mov eax, dword [rbp - 0x21]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov r8d, 0xffffffff
lea rdx, str.Content_Type:_application_json_r_n
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x18001d0dc
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rdx, qword [rbp - 0x19]
cmp rdx, 0xf
jbe 0x18001d135
inc rdx
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001d130
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001d130
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d1d5c
movdqa xmm0, xmmword [0x180213750]
movdqu xmmword [rbp - 0x21], xmm0
mov byte [rbp - 0x31], dil
mov rdx, qword [rbp + 7]
cmp rdx, 7
jbe 0x18001d189
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001d184
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001d184
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d1d5c
movdqa xmm0, xmmword [0x18012b930]
movdqu xmmword [rbp - 1], xmm0
mov word [rbp - 0x11], di
mov rdx, qword [rbp + 0x27]
cmp rdx, 7
jbe 0x18001d1dd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001d1d8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001d1d8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d1d5c
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1800d1df0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.18001c1f0
nop
int3