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

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0x88
mov rdi, rcx
mov rcx, qword [rcx + 0x18]
xor r14d, r14d
lea rdx, [rbp - 0x11]
mov bl, r14b
mov byte [rbp + 0x67], bl
call fcn.180005df4
test al, al
je 0x180005d31
cmp byte [rbp + 5], 2
mov r13d, dword [rdi + 0x3c]
jne 0x1800059fa
or r13d, 4
jmp 0x1800059fe
and r13d, 0xfffffffb
mov al, r14b
mov r15d, r14d
mov byte [rbp - 0x29], al
cmp byte [rdi + 1], r14b
jbe 0x180005d1f
cmp r15d, 0x194
je 0x180005d1f
test al, al
je 0x180005a4a
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x180005a41
mov edx, dword [rdi + 4]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x180005d1f
jmp 0x180005a4a
mov ecx, dword [rdi + 4]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rdi + 0x20]
mov dl, 1
mov dword [rbp - 0x1d], eax
mov byte [rbp + 0x7f], dl
cmp byte [rdi], r14b
je 0x180005a65
or eax, 1
mov dl, 2
mov dword [rbp - 0x1d], eax
mov byte [rbp + 0x7f], dl
mov cl, r14b
mov byte [rbp + 0x77], cl
test dl, dl
je 0x180005d0e
cmp cl, 1
jne 0x180005a7e
and eax, 0xfffffffe
mov dword [rbp - 0x1d], eax
mov edx, eax
lea rcx, [0x1800036a0]
mov dword [rsp + 0x20], r14d
not edx
and edx, 1
cmp qword [rdi + 0x10], r14
cmovne rcx, qword [rdi + 0x10]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r12, rax
test rax, rax
je 0x180005cfa
lea rbx, [0x180007010]
lea rsi, [0x180007014]
mov r14d, 4
mov edx, dword [rbx]
mov r9d, 4
mov r8, rsi
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetSetOptionA]
add rsi, 8
add rbx, 8
dec r14
jne 0x180005ac6
movzx r8d, word [rbp + 3]
mov rdx, qword [rbp - 0x11]
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], r14d
xor r9d, r9d
mov rcx, r12
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], r14
call qword [sym.imp.WININET.dll_InternetConnectA]
mov rcx, rax
mov qword [rbp + 7], rax
test rax, rax
jne 0x180005b30
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov bl, byte [rbp + 0x67]
jmp 0x180005cfa
mov rsi, r14
test r13b, 8
je 0x180005b41
mov rsi, qword [rdi + 0x40]
mov r14d, dword [rdi + 0x48]
mov eax, dword [rdi + 0x38]
mov r12d, r13d
mov edx, 0x8444f700
mov dword [rbp - 0x19], eax
mov rax, qword [rdi + 0x30]
and r12d, 2
mov qword [rbp + 0xf], rax
mov eax, 0x8404f700
cmovne eax, edx
test r13b, 4
je 0x180005b6d
bts eax, 0x17
xor r15d, r15d
lea r8, [0x1800036e4]
lea rdx, [0x1800036ec]
test r13b, 1
lea r9, [0x1800036d8]
mov dword [rbp - 0x25], r15d
cmovne rdx, r8
and qword [rsp + 0x38], r15
mov r8, qword [rbp - 9]
mov dword [rsp + 0x30], eax
lea rax, section..data
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], r15
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov rbx, rax
test rax, rax
je 0x180005c6f
test r12d, r12d
je 0x180005bcc
and dword [rbp - 0x21], r15d
jmp 0x180005bda
lea r15, [0x1800036f0]
mov dword [rbp - 0x21], 0x13
test rsi, rsi
je 0x180005c06
test r14d, r14d
je 0x180005c06
mov r12d, r14d
mov rdx, qword [rsi]
mov r9d, 0xa0000000
or r8d, 0xffffffff
mov rcx, rbx
call qword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
add rsi, 8
dec r12
jne 0x180005be7
mov eax, dword [rbp - 0x19]
mov r9, qword [rbp + 0xf]
mov r8d, dword [rbp - 0x21]
mov rdx, r15
mov rcx, rbx
mov dword [rsp + 0x20], eax
call qword [sym.imp.WININET.dll_HttpSendRequestA]
xor r14d, r14d
test eax, eax
je 0x180005c61
lea r9, [rbp - 0x19]
lea r8, [rbp - 0x21]
mov edx, 0x20000013
mov rcx, rbx
mov dword [rbp - 0x21], r14d
mov dword [rbp - 0x19], 4
mov qword [rsp + 0x20], r14
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x180005c61
mov r15d, dword [rbp - 0x21]
cmp r15d, 0xc8
jne 0x180005c64
jmp 0x180005c75
mov r15d, r14d
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x180005c72
xor r14d, r14d
mov rbx, r14
test rbx, rbx
je 0x180005caa
mov rdx, qword [rdi + 0x50]
mov r9, qword [rdi + 8]
mov r8d, dword [rdi + 0x4c]
mov rcx, rbx
test rdx, rdx
je 0x180005c95
call fcn.180005874
jmp 0x180005c9e
mov rdx, qword [rbp + 0x6f]
call fcn.1800057a4
mov rcx, rbx
mov byte [rbp + 0x67], al
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rsi, qword [rbp + 7]
lea r9, [rbp - 0x25]
lea r8, [rbp - 0x19]
mov edx, 0x15
mov rcx, rsi
mov qword [rbp - 0x19], r14
mov dword [rbp - 0x25], 8
call qword [sym.imp.WININET.dll_InternetQueryOptionA]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test ebx, ebx
je 0x180005cf3
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x180005cf3
cmp dword [rbp - 0x25], 8
jne 0x180005cf3
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov bl, byte [rbp + 0x67]
test bl, bl
jne 0x180005d1f
mov cl, byte [rbp + 0x77]
mov eax, dword [rbp - 0x1d]
inc cl
mov byte [rbp + 0x77], cl
cmp cl, byte [rbp + 0x7f]
jb 0x180005a73
mov al, byte [rbp - 0x29]
inc al
mov byte [rbp - 0x29], al
cmp al, byte [rdi + 1]
jb 0x180005a11
mov rcx, qword [rbp - 0x11]
call fcn.1800043a8
mov rcx, qword [rbp - 9]
call fcn.1800043a8
mov al, bl
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret