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

Disassembly:
jmp 0x14014a250
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 [0x141206200]
xor rax, rbp
mov qword [rbp + 0x800], rax
lea rcx, [0x141229109]
call fcn.1400fd2fb
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 0x14014a31a
lea rdx, str.WinHttpOpen_failed:
lea rcx, [0x141209010]
call fcn.1400f6c53
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.1400f8a2b
mov qword [rbp + 0x7f8], rax
lea rdx, [0x1400f6451]
mov rcx, qword [rbp + 0x7f8]
call fcn.1400f9a84
nop
jmp 0x14014a74d
mov r8d, 0x68
xor edx, edx
lea rcx, [rbp + 0x30]
call fcn.1400fb5aa
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.1400fa86c
nop
lea rcx, [rbp + 0x4f8]
call fcn.1400f875b
lea r9, [rbp + 0x30]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x14014a403
lea rdx, str.WinHttpCrackUrl_failed:
lea rcx, [0x141209010]
call fcn.1400f6c53
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.1400f8a2b
mov qword [rbp + 0x7f8], rax
lea rdx, [0x1400f6451]
mov rcx, qword [rbp + 0x7f8]
call fcn.1400f9a84
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
lea rcx, [rbp + 0x4f8]
call fcn.1400fc1e9
nop
jmp 0x14014a74d
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 0x14014a49a
lea rdx, str.WinHttpConnect_failed:
lea rcx, [0x141209010]
call fcn.1400f6c53
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.1400f8a2b
mov qword [rbp + 0x7f8], rax
lea rdx, [0x1400f6451]
mov rcx, qword [rbp + 0x7f8]
call fcn.1400f9a84
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
lea rcx, [rbp + 0x4f8]
call fcn.1400fc1e9
nop
jmp 0x14014a74d
cmp dword [rbp + 0x44], 2
jne 0x14014a4ac
mov dword [rbp + 0x7e4], 0x800000
jmp 0x14014a4b6
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, str.POST
mov rcx, qword [rbp + 0x538]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rbp + 0x558], rax
cmp qword [rbp + 0x558], 0
jne 0x14014a57c
lea rdx, str.WinHttpOpenRequest_failed:
lea rcx, [0x141209010]
call fcn.1400f6c53
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.1400f8a2b
mov qword [rbp + 0x7f8], rax
lea rdx, [0x1400f6451]
mov rcx, qword [rbp + 0x7f8]
call fcn.1400f9a84
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.1400fc1e9
nop
jmp 0x14014a74d
lea rdx, [rbp + 0x578]
mov rcx, qword [rbp + 0x830]
call fcn.1400fa114
nop
lea rcx, [rbp + 0x578]
call fcn.1400fb23a
mov dword [rbp + 0x7e4], eax
lea rcx, [rbp + 0x578]
call fcn.1400fb23a
mov dword [rbp + 0x7e8], eax
lea rcx, [rbp + 0x578]
call fcn.1400f6a4b
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 0x14014a6a6
lea rdx, str.WinHttpSendRequest_failed:
lea rcx, [0x141209010]
call fcn.1400f6c53
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.1400f8a2b
mov qword [rbp + 0x7f8], rax
lea rdx, [0x1400f6451]
mov rcx, qword [rbp + 0x7f8]
call fcn.1400f9a84
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.1400f752c
nop
lea rcx, [rbp + 0x4f8]
call fcn.1400fc1e9
nop
jmp 0x14014a74d
xor edx, edx
mov rcx, qword [rbp + 0x558]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x14014a70c
lea rdx, str.WinHttpReceiveResponse_failed:
lea rcx, [0x141209010]
call fcn.1400f6c53
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.1400f8a2b
mov qword [rbp + 0x7f8], rax
lea rdx, [0x1400f6451]
mov rcx, qword [rbp + 0x7f8]
call fcn.1400f9a84
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.1400f752c
nop
lea rcx, [rbp + 0x4f8]
call fcn.1400fc1e9
nop
lea rcx, [rbp - 0x40]
lea rdx, [0x1403007e0]
call fcn.1400fbf05
mov rcx, qword [rbp + 0x800]
xor rcx, rbp
call fcn.1400f976e
lea rsp, [rbp + 0x818]
pop rdi
pop rbp
ret