Function at 0x4a8082
Capabilities:
Connect to http server
Create http request
Parse url
Send data
Send http request

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
cmp dword [rcx + 0x10], 0
mov r12, rcx
mov rsi, rdx
mov rbx, r8
jne 0x4a8344
lea rbp, [rsp + 0x48]
mov rcx, rbp
call fcn.004cebac
lea rcx, [r12 + 0x70]
mov rdx, rbp
call fcn.004cef0e
mov rcx, rbp
call fcn.004cea4a
cmp qword [r12 + 0x50], 0
mov qword [r12 + 0x78], rbx
jne 0x4a81b8
lea rcx, [0x00536597]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0x10000000
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [r12 + 0x50], rax
mov rcx, rax
test rax, rax
jne 0x4a8134
mov rcx, qword [0x0053cb90]
lea rdx, str.InternetOpen_failed_error
call fcn.004d0ff9
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, r12
mov edx, eax
call fcn.004d1044
mov rcx, rax
call fcn.004d13bf
jmp 0x4a8344
lea rdx, [0x004a7ac0]
call qword [sym.imp.WININET.dll_InternetSetStatusCallback]
mov ecx, 0x30
call sub.msvcrt.dll_malloc
mov ecx, 0x8001
mov dword [rax + 0x28], 0
mov rdx, rax
lea rax, fcn.004e2540
mov qword [rdx], rax
add rax, 0x38
mov qword [rdx + 0x20], rax
lea rax, [0x004a7eca]
mov qword [rdx + 8], r12
mov qword [rdx + 0x10], rax
mov qword [rdx + 0x18], 0
call sym.winbox.exe_createNullWindow_unsigned_int__EventListener_
mov rbx, rax
test rax, rax
je 0x4a819d
mov rax, qword [rax]
mov rdi, qword [rax - 0x18]
add rdi, rbx
inc dword [rdi + 8]
mov rcx, qword [r12 + 8]
test rcx, rcx
je 0x4a81b3
mov rax, qword [rcx]
add rcx, qword [rax - 0x18]
call fcn.00515350
mov qword [r12 + 8], rbx
lea rdx, str.connecting...
mov rcx, rbp
mov rdi, rbp
call fcn.004cec4e
xor r8d, r8d
mov rdx, rbp
mov rcx, r12
call fcn.004a7ae4
mov rcx, rbp
call fcn.004cea4a
xor eax, eax
mov ecx, 0x1a
xor r8d, r8d
rep stosd dword [rdi], eax
mov rcx, qword [rsi]
xor edx, edx
mov dword [rsp + 0x48], 0x68
mov dword [rsp + 0x68], 1
mov r9, rbp
mov dword [rsp + 0x98], 1
add rcx, 4
call qword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x4a82f5
lea r13, [rsp + 0x40]
mov r8d, dword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
mov dword [r12 + 0x10], 1
mov rcx, r13
call fcn.004cec42
mov rax, qword [rsp + 0x40]
mov rcx, qword [r12 + 0x50]
xor r9d, r9d
mov r8d, 0x50
mov qword [rsp + 0x38], r12
lea rdx, [rax + 4]
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], 0
call qword [sym.imp.WININET.dll_InternetConnectA]
mov rcx, r13
mov qword [r12 + 0x58], rax
call fcn.004cea4a
mov r8d, dword [rsp + 0x98]
mov rdx, qword [rsp + 0x90]
mov rcx, r13
call fcn.004cec42
mov rax, qword [rsp + 0x40]
xor r9d, r9d
mov rcx, qword [r12 + 0x58]
lea rdx, [0x005365c7]
mov qword [rsp + 0x38], r12
lea r8, [rax + 4]
mov dword [rsp + 0x30], 0x80000000
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov rcx, r13
mov qword [r12 + 0x60], rax
call fcn.004cea4a
mov rcx, qword [r12 + 0x60]
test rcx, rcx
jne 0x4a82ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
jmp 0x4a833b
xor r9d, r9d
or r8d, 0xffffffff
xor edx, edx
mov dword [rsp + 0x20], 0
call qword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x4a832c
mov r8d, 1
xor edx, edx
mov rcx, r12
call fcn.004a7d5e
jmp 0x4a8344
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
cmp eax, 0x3e5
je 0x4a8344
mov rcx, r12
call fcn.004a7cec
nop
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret