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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov rdi, rcx
mov rcx, qword [rcx + 0x18]
xor esi, esi
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [rdi + 0x28], 1
cmp qword [rdi + 0x40], rbx
jne 0x18001ee3d
mov rax, qword [rdi + 0x38]
mov rcx, qword [rdi + 8]
lea r8d, [rsi + 0x50]
mov rdx, qword [rax + 0xa0]
mov eax, edi
xor r9d, r9d
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], 3
and qword [rsp + 0x20], rbx
call qword [sym.imp.WININET.dll_InternetConnectW]
mov qword [rdi + 0x40], rax
mov rcx, qword [rdi + 0x40]
mov r14d, 0x3e5
test rcx, rcx
jne 0x18001ee77
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, r14d
jne 0x18001efbf
mov rcx, qword [rdi + 0x18]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rdi + 0x40]
test rcx, rcx
je 0x18001efbf
mov rax, qword [rdi + 0x38]
mov dword [rdi + 0x28], 2
mov ebp, edi
mov r8, qword [rax + 0xa8]
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x30], 0x84400000
and qword [rsp + 0x28], rbx
and qword [rsp + 0x20], rbx
lea rdx, str.POST
xor r9d, r9d
call qword [sym.imp.WININET.dll_HttpOpenRequestW]
mov rsi, rax
test rax, rax
jne 0x18001eee1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, r14d
jne 0x18001efbf
mov rcx, qword [rdi + 0x20]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [rdi + 0x74], ebx
jne 0x18001efbf
xor edx, edx
lea rcx, [rsp + 0x40]
lea r8d, [rdx + 0x38]
call fcn.1800d7640
mov rax, qword [rdi + 0x38]
mov dword [rsp + 0x40], reloc.WS2_32.dll_getservbyport
mov ecx, dword [rax + 0x90]
mov dword [rsp + 0x6c], ecx
lea rcx, str.Content_Type:_application_x_www_form_urlencoded_r
mov qword [rsp + 0x50], rcx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rdx, [rsp + 0x40]
mov r9d, 9
xor r8d, r8d
mov rcx, rsi
mov dword [rsp + 0x58], eax
mov dword [rdi + 0x28], 3
mov qword [rsp + 0x20], rbp
call qword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
jne 0x18001ef63
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, r14d
jne 0x18001efbf
mov rcx, qword [rdi + 0x20]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [rdi + 0x74], ebx
jne 0x18001efbf
mov rax, qword [rdi + 0x38]
and dword [rdi + 0x80], ebx
and dword [rsp + 0xa0], ebx
mov dword [rdi + 0x28], 4
cmp qword [rax + 0x98], 0x10
mov rcx, qword [rax + 0x90]
jb 0x18001ef95
mov rdx, qword [rax + 0x80]
jmp 0x18001ef9c
lea rdx, [rax + 0x80]
mov r8d, ecx
lea r9, [rsp + 0xa0]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x18001efe8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, r14d
je 0x18001efc6
mov ebx, 0x80004005
jmp 0x18001efe8
mov rcx, qword [rdi + 0x20]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r11d, ebx
mov ebx, 0x80004005
cmp dword [rdi + 0x74], r11d
cmovne r11d, ebx
mov ebx, r11d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x74], eax
test rsi, rsi
je 0x18001efff
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rdi + 0x40]
test rcx, rcx
je 0x18001f00e
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea r11, [rsp + 0x80]
mov eax, ebx
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret