Function at 0x100051fd4
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x280
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x100090120]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rdx
mov r12, rcx
xor esi, esi
cmp qword [rcx + 0x3540], rsi
jne 0x10005215f
mov rdx, qword [rcx + 0x2498]
mov ecx, dword [rdx - 0x10]
mov eax, ecx
neg eax
sbb r8, r8
and r8, rdx
neg ecx
sbb edx, edx
and edx, 3
mov dword [rsp + 0x20], esi
xor r9d, r9d
lea rcx, str.VCSoapClient
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [r12 + 0x3538], rax
cmp rax, rsi
je 0x1000520f8
cmp dword [r12 + 0x24a0], esi
je 0x1000520b2
lea r9d, [rsi + 4]
lea r8, [r12 + 0x24a0]
lea edx, [rsi + 2]
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetSetOptionW]
lea r9d, [rsi + 4]
lea r8, [r12 + 0x24a0]
lea edx, [rsi + 6]
mov rcx, qword [r12 + 0x3538]
call qword [sym.imp.WININET.dll_InternetSetOptionW]
lea r9d, [rsi + 4]
lea r8, [r12 + 0x24a0]
lea edx, [rsi + 5]
mov rcx, qword [r12 + 0x3538]
call qword [sym.imp.WININET.dll_InternetSetOptionW]
lea rdx, [r12 + 0x4a]
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], 0x200
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], rsi
xor r9d, r9d
movzx r8d, word [r12 + 0x2454]
mov rcx, qword [r12 + 0x3538]
call qword [sym.imp.WININET.dll_InternetConnectW]
mov qword [r12 + 0x3540], rax
cmp rax, rsi
jne 0x10005215f
mov rcx, qword [r12 + 0x3548]
cmp rcx, rsi
je 0x100052113
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [r12 + 0x3548], rsi
mov rcx, qword [r12 + 0x3540]
cmp rcx, rsi
je 0x10005212e
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [r12 + 0x3540], rsi
mov rcx, qword [r12 + 0x3538]
cmp rcx, rsi
je 0x100052149
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [r12 + 0x3538], rsi
mov dword [r12 + 0x3530], 4
mov eax, 0x80004005
jmp 0x1000523a4
lea rcx, [0x100090238]
mov rax, qword [0x100090238]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
cmp rbx, rsi
jne 0x100052182
mov ecx, esi
jmp 0x100052194
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
mov r8d, ecx
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.1000464a8
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdx, str.Content_Type:_text_xml__charsetutf_8_r_n
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x48]
call fcn.1000464a8
nop
mov eax, esi
mov ecx, 0x800000
cmp dword [r12 + 0x2458], 3
cmove eax, ecx
or eax, 0x400200
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], eax
lea rax, str.text_
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, str.HTTP_1.0
mov r8, qword [r12 + 0x24c0]
lea rdx, str.POST
mov rcx, qword [r12 + 0x3540]
call qword [sym.imp.WININET.dll_HttpOpenRequestW]
mov qword [r12 + 0x3548], rax
cmp rax, rsi
je 0x10005234a
mov r9, qword [r12 + 0x2480]
mov ecx, dword [r9 - 0x10]
mov rbx, qword [rsp + 0x48]
mov dword [rsp + 0x20], ecx
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.WININET.dll_HttpSendRequestW]
cmp eax, esi
je 0x10005235b
mov rcx, qword [r12 + 0x3548]
mov qword [r12 + 0x2490], rcx
mov dword [rsp + 0x40], 0xff
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetLBound
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
cmp eax, esi
je 0x1000522a9
mov eax, dword [rsp + 0x40]
mov word [rsp + rax*2 + 0x70], si
lea rcx, [rsp + 0x70]
call qword [sym.imp.msvcrt.dll__wtoi]
jmp 0x1000522ab
mov eax, esi
cmp eax, 0x1f4
je 0x1000522d4
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
cmp eax, esi
jg 0x1000522cd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x1000523a4
mov dword [r12 + 0x3530], 7
mov qword [rsp + 0x50], rsi
mov rax, qword [r12]
lea rdx, [rsp + 0x50]
mov rcx, r12
call qword [rax]
cmp eax, esi
jl 0x100052338
lea rdi, [r12 + 0x2488]
mov qword [rsp + 0x58], rdi
lea rcx, [r12 + 0x3550]
mov r8, qword [rsp + 0x50]
mov rdx, rdi
call fcn.10004d3e0
cmp eax, esi
jge 0x100052329
mov dword [r12 + 0x3530], 8
cmp rdi, rsi
je 0x100052338
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsp + 0x50]
cmp rcx, rsi
je 0x10005235b
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
jmp 0x10005235b
mov dword [r12 + 0x3530], 5
mov rbx, qword [rsp + 0x48]
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
cmp eax, esi
jg 0x100052376
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 0x80004005
jmp 0x1000523a4
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.100001100
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop r12
pop rdi
pop rsi
ret