Function at 0x18001a3e0
Capabilities:
Set http header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rax, rdx
lea r8, [rcx + 8]
mov rbp, rcx
mov rdx, rcx
mov r13d, 8
mov rcx, rax
mov r15d, r9d
xor esi, esi
mov edi, r13d
call fcn.180019ce4
test eax, eax
je 0x18001a64b
mov rax, qword [rsp + 0xc8]
lea rbx, [0x18003b3f6]
test rax, rax
cmovne rbx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [0x180037ae8]
xor edx, edx
lea r8d, [rax + 0x68]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r12, rax
test rax, rax
je 0x18001a64b
lea r9, [0x18003b4ec]
lea rdx, [0x18003b4aa]
mov r8, rbx
mov rcx, rax
call qword [sym.imp.USER32.dll_wsprintfA]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov r9d, dword [rsp + 0xa4]
mov r8d, dword [rsp + 0xa0]
lea rdx, [0x18003b42c]
lea rcx, [rsp + 0x30]
not r9d
not r8d
call qword [sym.imp.USER32.dll_wsprintfA]
mov rcx, r12
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea r8d, [rbx + 0x30]
add eax, ebx
xor edx, edx
lea ecx, [rax + r15 + 0xe]
lea r14d, [rcx + rbx + 9]
mov rcx, qword [0x180037ae8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r13, rax
test rax, rax
je 0x18001a59a
lea r8, [rsp + 0x30]
lea rdx, [0x18003b433]
mov rcx, rax
call qword [sym.imp.USER32.dll_wsprintfA]
mov rcx, qword [0x180037ae8]
mov r8d, r14d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x18001a588
lea r8, [rsp + 0x30]
lea rdx, [0x18003b513]
mov r9, r12
mov rcx, rax
call qword [sym.imp.USER32.dll_wsprintfA]
mov rdx, qword [rsp + 0xb0]
mov r8, r15
mov esi, eax
lea rcx, [rsi + r14]
call sub.ntdll.dll_memcpy
lea rcx, [r15 + rsi]
lea r8d, [rdi - 6]
lea rdx, [0x18002f73c]
add rcx, r14
call sub.ntdll.dll_memcpy
lea ebx, [rsi + r15 + 2]
lea r8, [rsp + 0x30]
mov ecx, ebx
lea rdx, [0x18003b417]
add rcx, r14
call qword [sym.imp.USER32.dll_wsprintfA]
mov rsi, r13
mov qword [rbp + 0x10], r14
add ebx, eax
xor edi, edi
mov dword [rbp + 0x58], ebx
jmp 0x18001a59a
mov rcx, qword [0x180037ae8]
mov r8, r13
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180037ae8]
mov r8, r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
jne 0x18001a64b
mov r8d, dword [rsp + 0xd0]
mov rdx, qword [rsp + 0xc0]
mov eax, 0xea60
test r8d, r8d
lea r9d, [rdi + 1]
mov rcx, rbp
cmove r8d, eax
and dword [rsp + 0x20], edi
call fcn.18001a10c
mov edi, eax
test eax, eax
jne 0x18001a64b
xor edx, edx
mov rcx, rsi
call fcn.18001744c
mov rbx, rax
test rax, rax
jne 0x18001a5fd
lea edi, [rax + 8]
jmp 0x18001a64b
mov rcx, qword [rbp + 0x30]
mov r9d, 0x10000000
or r8d, 0xffffffff
mov rdx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x18001a620
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x180037ae8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
jne 0x18001a64b
mov r9d, dword [rbp + 0x58]
mov r8, qword [rbp + 0x10]
mov rcx, qword [rbp + 0x30]
xor edx, edx
call fcn.18001a314
mov edi, eax
mov dword [rbp + 0x50], edi
test rsi, rsi
je 0x18001a665
mov rcx, qword [0x180037ae8]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret