Function at 0x4a7472
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 0x4a7734
lea rbp, [rsp + 0x48]
mov rcx, rbp
call fcn.004cdf4c
lea rcx, [r12 + 0x70]
mov rdx, rbp
call fcn.004ce2ae
mov rcx, rbp
call fcn.004cddea
cmp qword [r12 + 0x50], 0
mov qword [r12 + 0x78], rbx
jne 0x4a75a8
lea rcx, [0x00535557]
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 0x4a7524
mov rcx, qword [0x0053bb30]
lea rdx, str.InternetOpen_failed_error
call fcn.004d0399
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, r12
mov edx, eax
call fcn.004d03e4
mov rcx, rax
call fcn.004d075f
jmp 0x4a7734
lea rdx, [0x004a6eb0]
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.004e18f0
mov qword [rdx], rax
add rax, 0x38
mov qword [rdx + 0x20], rax
lea rax, [0x004a72ba]
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 0x4a758d
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 0x4a75a3
mov rax, qword [rcx]
add rcx, qword [rax - 0x18]
call fcn.00514360
mov qword [r12 + 8], rbx
lea rdx, str.connecting...
mov rcx, rbp
mov rdi, rbp
call fcn.004cdfee
xor r8d, r8d
mov rdx, rbp
mov rcx, r12
call fcn.004a6ed4
mov rcx, rbp
call fcn.004cddea
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 0x4a76e5
lea r13, [rsp + 0x40]
mov r8d, dword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
mov dword [r12 + 0x10], 1
mov rcx, r13
call fcn.004cdfe2
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.004cddea
mov r8d, dword [rsp + 0x98]
mov rdx, qword [rsp + 0x90]
mov rcx, r13
call fcn.004cdfe2
mov rax, qword [rsp + 0x40]
xor r9d, r9d
mov rcx, qword [r12 + 0x58]
lea rdx, [0x00535587]
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.004cddea
mov rcx, qword [r12 + 0x60]
test rcx, rcx
jne 0x4a76ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
jmp 0x4a772b
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 0x4a771c
mov r8d, 1
xor edx, edx
mov rcx, r12
call fcn.004a714e
jmp 0x4a7734
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
cmp eax, 0x3e5
je 0x4a7734
mov rcx, r12
call fcn.004a70dc
nop
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret