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

Disassembly:
jmp 0x14014b340
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x858
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x176
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x878]
mov rax, qword [0x140a3b940]
xor rax, rbp
mov qword [rbp + 0x800], rax
lea rcx, [0x140a5f109]
call fcn.1400fe346
nop
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.A_Discord_Webhook_Client_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x14014b40a
lea rdx, str.WinHttpOpen_failed:
lea rcx, [0x140a3e750]
call fcn.1400f7c4e
mov qword [rbp + 0x7e8], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x7f0], eax
mov edx, dword [rbp + 0x7f0]
mov rcx, qword [rbp + 0x7e8]
call fcn.1400f9a4e
mov qword [rbp + 0x7f8], rax
lea rdx, [0x1400f744c]
mov rcx, qword [rbp + 0x7f8]
call fcn.1400faaa7
nop
jmp 0x14014b83d
mov r8d, 0x68
xor edx, edx
lea rcx, [rbp + 0x30]
call fcn.1400fc5f0
nop
mov dword [rbp + 0x30], 0x68
lea rax, [rbp + 0xc0]
mov qword [rbp + 0x48], rax
mov dword [rbp + 0x50], 0x100
lea rax, [rbp + 0x2e0]
mov qword [rbp + 0x78], rax
mov dword [rbp + 0x80], 0x100
mov rax, qword [rbp + 0x830]
mov rdx, rax
lea rcx, [rbp + 0x4f8]
call fcn.1400fb899
nop
lea rcx, [rbp + 0x4f8]
call fcn.1400f9779
lea r9, [rbp + 0x30]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x14014b4f3
lea rdx, str.WinHttpCrackUrl_failed:
lea rcx, [0x140a3e750]
call fcn.1400f7c4e
mov qword [rbp + 0x7e8], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x7f0], eax
mov edx, dword [rbp + 0x7f0]
mov rcx, qword [rbp + 0x7e8]
call fcn.1400f9a4e
mov qword [rbp + 0x7f8], rax
lea rdx, [0x1400f744c]
mov rcx, qword [rbp + 0x7f8]
call fcn.1400faaa7
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
lea rcx, [rbp + 0x4f8]
call fcn.1400fd239
nop
jmp 0x14014b83d
xor r9d, r9d
movzx r8d, word [rbp + 0x54]
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rbp + 0x538], rax
cmp qword [rbp + 0x538], 0
jne 0x14014b58a
lea rdx, str.WinHttpConnect_failed:
lea rcx, [0x140a3e750]
call fcn.1400f7c4e
mov qword [rbp + 0x7e8], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x7f0], eax
mov edx, dword [rbp + 0x7f0]
mov rcx, qword [rbp + 0x7e8]
call fcn.1400f9a4e
mov qword [rbp + 0x7f8], rax
lea rdx, [0x1400f744c]
mov rcx, qword [rbp + 0x7f8]
call fcn.1400faaa7
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
lea rcx, [rbp + 0x4f8]
call fcn.1400fd239
nop
jmp 0x14014b83d
cmp dword [rbp + 0x44], 2
jne 0x14014b59c
mov dword [rbp + 0x7e4], 0x800000
jmp 0x14014b5a6
mov dword [rbp + 0x7e4], 0
mov eax, dword [rbp + 0x7e4]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rbp + 0x78]
lea rdx, [0x140308e28]
mov rcx, qword [rbp + 0x538]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rbp + 0x558], rax
cmp qword [rbp + 0x558], 0
jne 0x14014b66c
lea rdx, str.WinHttpOpenRequest_failed:
lea rcx, [0x140a3e750]
call fcn.1400f7c4e
mov qword [rbp + 0x7e8], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x7f0], eax
mov edx, dword [rbp + 0x7f0]
mov rcx, qword [rbp + 0x7e8]
call fcn.1400f9a4e
mov qword [rbp + 0x7f8], rax
lea rdx, [0x1400f744c]
mov rcx, qword [rbp + 0x7f8]
call fcn.1400faaa7
nop
mov rcx, qword [rbp + 0x538]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
lea rcx, [rbp + 0x4f8]
call fcn.1400fd239
nop
jmp 0x14014b83d
lea rdx, [rbp + 0x578]
mov rcx, qword [rbp + 0x830]
call fcn.1400fb132
nop
lea rcx, [rbp + 0x578]
call fcn.1400fc276
mov dword [rbp + 0x7e4], eax
lea rcx, [rbp + 0x578]
call fcn.1400fc276
mov dword [rbp + 0x7e8], eax
lea rcx, [rbp + 0x578]
call fcn.1400f7a3c
mov qword [rbp + 0x7f0], rax
mov qword [rsp + 0x30], 0
mov eax, dword [rbp + 0x7e4]
mov dword [rsp + 0x28], eax
mov eax, dword [rbp + 0x7e8]
mov dword [rsp + 0x20], eax
mov r9, qword [rbp + 0x7f0]
mov r8d, 0xffffffff
lea rdx, str.Content_Type:_application_json_r_n
mov rcx, qword [rbp + 0x558]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x14014b796
lea rdx, str.WinHttpSendRequest_failed:
lea rcx, [0x140a3e750]
call fcn.1400f7c4e
mov qword [rbp + 0x7e8], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x7f0], eax
mov edx, dword [rbp + 0x7f0]
mov rcx, qword [rbp + 0x7e8]
call fcn.1400f9a4e
mov qword [rbp + 0x7f8], rax
lea rdx, [0x1400f744c]
mov rcx, qword [rbp + 0x7f8]
call fcn.1400faaa7
nop
mov rcx, qword [rbp + 0x558]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rcx, qword [rbp + 0x538]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
lea rcx, [rbp + 0x578]
call fcn.1400f853b
nop
lea rcx, [rbp + 0x4f8]
call fcn.1400fd239
nop
jmp 0x14014b83d
xor edx, edx
mov rcx, qword [rbp + 0x558]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x14014b7fc
lea rdx, str.WinHttpReceiveResponse_failed:
lea rcx, [0x140a3e750]
call fcn.1400f7c4e
mov qword [rbp + 0x7e8], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x7f0], eax
mov edx, dword [rbp + 0x7f0]
mov rcx, qword [rbp + 0x7e8]
call fcn.1400f9a4e
mov qword [rbp + 0x7f8], rax
lea rdx, [0x1400f744c]
mov rcx, qword [rbp + 0x7f8]
call fcn.1400faaa7
nop
mov rcx, qword [rbp + 0x558]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rcx, qword [rbp + 0x538]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
lea rcx, [rbp + 0x578]
call fcn.1400f853b
nop
lea rcx, [rbp + 0x4f8]
call fcn.1400fd239
nop
lea rcx, [rbp - 0x40]
lea rdx, [0x1403037e0]
call fcn.1400fcf55
mov rcx, qword [rbp + 0x800]
xor rcx, rbp
call fcn.1400fa791
lea rsp, [rbp + 0x818]
pop rdi
pop rbp
ret