Function at 0x140004840
Capabilities:
Check http status code
Connect to http server
Create http request
Send data
Send http request

Disassembly:
mov qword [rsp + 0x20], r9
mov word [rsp + 0x18], r8w
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x270
mov qword [rsp + 0x238], 0xfffffffffffffffe
mov rax, qword [0x14002ead0]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov dword [rsp + 0x230], 0
lea rcx, [rsp + 0x98]
call fcn.140006240
nop
mov qword [rsp + 0xd8], 0
mov qword [rsp + 0xd0], 0
mov qword [rsp + 0xc0], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rsp + 0xd8], rax
cmp qword [rsp + 0xd8], 0
jne 0x1400048eb
jmp 0x140004bf4
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], 0
xor r9d, r9d
movzx r8d, word [rsp + 0x290]
mov rdx, qword [rsp + 0x288]
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.WININET.dll_InternetConnectW]
mov qword [rsp + 0xd0], rax
cmp qword [rsp + 0xd0], 0
jne 0x140004947
jmp 0x140004bf4
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x84800000
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x298]
mov rdx, qword [rsp + 0x2a0]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.WININET.dll_HttpOpenRequestW]
mov qword [rsp + 0xc0], rax
cmp qword [rsp + 0xc0], 0
jne 0x1400049a3
jmp 0x140004bf4
lea rax, str.Accept:__
mov qword [rsp + 0xf0], rax
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r9d, 0xa0000000
mov r8d, eax
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
mov dword [rsp + 0xc8], eax
cmp dword [rsp + 0xc8], 0
jne 0x1400049f5
jmp 0x140004bf4
mov eax, dword [rsp + 0x2b0]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x2a8]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.WININET.dll_HttpSendRequestW]
mov dword [rsp + 0xc8], eax
cmp dword [rsp + 0xc8], 0
jne 0x140004a31
jmp 0x140004bf4
mov dword [rsp + 0xe0], 4
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xe0]
lea r8, [rsp + 0x200]
mov edx, 0x20000013
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
mov dword [rsp + 0xc8], eax
cmp dword [rsp + 0xc8], 0
je 0x140004a86
cmp dword [rsp + 0x200], 0xc8
je 0x140004a8b
jmp 0x140004bf4
mov byte [rsp + 0x100], 0
lea rax, [rsp + 0x101]
mov rdi, rax
xor eax, eax
mov ecx, 0xff
rep stosb byte [rdi], al
mov dword [rsp + 0x204], 0
lea rcx, [rsp + 0x48]
call fcn.1400044b0
mov qword [rsp + 0x240], rax
mov rax, qword [rsp + 0x240]
mov qword [rsp + 0x248], rax
lea rcx, [rsp + 0x70]
call fcn.140003040
mov qword [rsp + 0x250], rax
mov rcx, qword [rsp + 0x248]
call fcn.140006540
mov qword [rsp + 0x258], rax
mov rcx, qword [rsp + 0x250]
call fcn.140006d40
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, qword [rsp + 0x258]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xe8], rax
lea rcx, [rsp + 0x70]
call fcn.140006cb0
nop
lea rcx, [rsp + 0x48]
call fcn.140006420
mov r8d, 0x100
xor edx, edx
lea rcx, [rsp + 0x100]
call fcn.140010d10
lea r9, [rsp + 0x204]
mov r8d, 0xff
lea rdx, [rsp + 0x100]
mov rcx, qword [rsp + 0xc0]
call qword [rsp + 0xe8]
mov dword [rsp + 0xc8], eax
cmp dword [rsp + 0xc8], 0
je 0x140004b97
cmp dword [rsp + 0x204], 0
jne 0x140004b99
jmp 0x140004bea
mov eax, dword [rsp + 0x204]
mov r8d, eax
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x208]
call fcn.140006290
nop
lea rdx, [rsp + 0x208]
lea rcx, [rsp + 0x98]
call fcn.140006480
nop
lea rcx, [rsp + 0x208]
call fcn.140006420
cmp dword [rsp + 0x204], 0
ja 0x140004b42
xor eax, eax
test eax, eax
jne 0x1400048b8
cmp qword [rsp + 0xc0], 0
je 0x140004c0d
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
cmp qword [rsp + 0xd0], 0
je 0x140004c26
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
cmp qword [rsp + 0xd8], 0
je 0x140004c3f
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea rdx, [rsp + 0x98]
mov rcx, qword [rsp + 0x280]
call fcn.140006370
mov eax, dword [rsp + 0x230]
or eax, 1
mov dword [rsp + 0x230], eax
lea rcx, [rsp + 0x98]
call fcn.140006420
mov rax, qword [rsp + 0x280]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14000ff80
add rsp, 0x270
pop rdi
ret