Function at 0x1000ae234
Capabilities:
Check for time delay via gettickcount
Initialize winhttp library
Prepare http request

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov r14d, r9d
mov r12, r8
mov r13, rdx
mov rsi, rcx
xor r15d, r15d
mov qword [rax - 0x40], r15
mov dword [rax - 0x34], r15d
mov dword [rax - 0x38], r15d
mov qword [rax - 0x50], r15
mov dword [rax - 0x44], r15d
mov dword [rax - 0x48], r15d
mov dword [rax - 0x68], r15d
mov qword [rax - 0x60], rcx
mov edi, 0x7e0000
mov dword [rax + 8], r15d
lea ebp, [r15 + 1]
cmp qword [rcx + 8], r15
jne 0x1000ae890
cmp qword [rcx + 0x10], r15
jne 0x1000ae890
mov dword [rcx + 0x44], r15d
lea rax, [0x1000dedd8]
mov rcx, qword [0x1000dedd8]
cmp rcx, rax
je 0x1000ae2e4
test byte [rcx + 0x1c], 4
je 0x1000ae2e4
lea edx, [rbp + 0x2a]
mov qword [rsp + 0x20], r8
mov r9, r13
lea r8, [0x100002f38]
mov rcx, qword [rcx + 0x10]
call fcn.100020694
lea rcx, [rsi + 0x88]
call fcn.1000b0220
cmp qword [rsi], r15
jne 0x1000ae57e
mov dword [rsp + 0x20], 0x10000000
xor r9d, r9d
xor r8d, r8d
mov edx, ebp
lea rcx, [0x10001aa08]
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rsi], rax
cmp rax, r15
jne 0x1000ae37c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
cmp eax, r15d
cmovle edi, eax
mov eax, 0x80004005
cmp edi, r15d
cmovge edi, eax
mov rcx, qword [0x1000dedd8]
lea r14, [0x1000dedd8]
cmp rcx, r14
je 0x1000ae56d
test byte [rcx + 0x1c], bpl
je 0x1000ae56d
mov edx, 0x2c
mov r9d, edi
lea r8, [0x100002f38]
mov rcx, qword [rcx + 0x10]
call fcn.100020d8c
jmp 0x1000ae56d
mov r9d, 0x7530
mov dword [rsp + 0x20], r9d
mov edx, 0x1d4c0
mov r8d, 0xea60
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
cmp eax, r15d
jne 0x1000ae3fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
cmp eax, r15d
cmovle edi, eax
mov eax, 0x80004005
cmp edi, r15d
cmovge edi, eax
mov rcx, qword [0x1000dedd8]
lea r14, [0x1000dedd8]
cmp rcx, r14
je 0x1000ae56d
test byte [rcx + 0x1c], bpl
je 0x1000ae56d
mov edx, 0x2d
mov r9d, edi
lea r8, [0x100002f38]
mov rcx, qword [rcx + 0x10]
call fcn.100020d8c
jmp 0x1000ae56d
mov r9d, 8
lea r8, [rsp + 0x48]
lea edx, [r9 + 0x25]
mov rcx, qword [rsi]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
cmp eax, r15d
jne 0x1000ae479
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
cmp eax, r15d
cmovle edi, eax
mov eax, 0x80004005
cmp edi, r15d
cmovge edi, eax
mov rcx, qword [0x1000dedd8]
lea r14, [0x1000dedd8]
cmp rcx, r14
je 0x1000ae56d
test byte [rcx + 0x1c], bpl
je 0x1000ae56d
mov edx, 0x2e
mov r9d, edi
lea r8, [0x100002f38]
mov rcx, qword [rcx + 0x10]
call fcn.100020d8c
jmp 0x1000ae56d
mov dword [rsp + 0xb0], ebp
mov r9d, 4
lea r8, [rsp + 0xb0]
lea edx, [r9 + 0x54]
mov rcx, qword [rsi]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
cmp eax, r15d
jne 0x1000ae4fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
cmp eax, r15d
cmovle edi, eax
mov eax, 0x80004005
cmp edi, r15d
cmovge edi, eax
mov rcx, qword [0x1000dedd8]
lea r14, [0x1000dedd8]
cmp rcx, r14
je 0x1000ae56d
test byte [rcx + 0x1c], bpl
je 0x1000ae56d
mov edx, 0x2f
mov r9d, edi
lea r8, [0x100002f38]
mov rcx, qword [rcx + 0x10]
call fcn.100020d8c
jmp 0x1000ae56d
cmp dword [rsi + 0x40], r15d
je 0x1000ae57e
lea r8, [rsi + 0x30]
mov edx, 0x63
lea r9d, [rdx - 0x5b]
mov rcx, qword [rsi]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
cmp eax, r15d
jne 0x1000ae57e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
cmp eax, r15d
cmovle edi, eax
mov eax, 0x80004005
cmp edi, r15d
cmovge edi, eax
mov rcx, qword [0x1000dedd8]
lea r14, [0x1000dedd8]
cmp rcx, r14
je 0x1000ae56d
test byte [rcx + 0x1c], bpl
je 0x1000ae56d
mov edx, 0x30
mov r9d, edi
lea r8, [0x100002f38]
mov rcx, qword [rcx + 0x10]
call fcn.100020d8c
lea rcx, [rsi + 0x88]
call fcn.1000b028c
jmp 0x1000ae895
lea rcx, [rsi + 0x88]
call fcn.1000b028c
mov rcx, qword [rsi + 0x20]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rsi + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [rsi + 0x340], r15d
xor r9d, r9d
movzx r8d, word [rsp + 0xf0]
mov rdx, r13
mov rcx, qword [rsi]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r11, rax
mov qword [rsi + 8], rax
cmp rax, r15
jne 0x1000ae627
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
cmp eax, r15d
cmovle edi, eax
mov eax, 0x80004005
cmp edi, r15d
cmovge edi, eax
mov rcx, qword [0x1000dedd8]
lea r14, [0x1000dedd8]
cmp rcx, r14
je 0x1000ae895
test byte [rcx + 0x1c], bpl
je 0x1000ae895
mov edx, 0x32
mov r9d, edi
lea r8, [0x100002f38]
mov rcx, qword [rcx + 0x10]
call fcn.100020d8c
jmp 0x1000ae895
mov eax, r14d
neg eax
sbb ecx, ecx
and ecx, 0x800000
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov r8, r12
mov rbp, qword [rsp + 0xd0]
mov rdx, rbp
mov rcx, r11
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rsi + 0x10], rax
cmp rax, r15
jne 0x1000ae6c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
cmp eax, r15d
cmovle edi, eax
mov eax, 0x80004005
cmp edi, r15d
cmovge edi, eax
mov rcx, qword [0x1000dedd8]
lea r14, [0x1000dedd8]
cmp rcx, r14
je 0x1000ae895
test byte [rcx + 0x1c], 1
je 0x1000ae895
mov edx, 0x33
mov r9d, edi
lea r8, [0x100002f38]
mov rcx, qword [rcx + 0x10]
call fcn.100020d8c
jmp 0x1000ae895
mov eax, 0x7e0c00
cmp dword [rsi + 0x40], r15d
cmove edi, eax
mov rcx, rsi
call fcn.1000ad1d8
xor r9d, r9d
mov r8d, edi
lea rdx, [0x1000ad4cc]
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
mov rbx, rax
mov rcx, rsi
call fcn.1000ad228
cmp rbx, 0xffffffffffffffff
jne 0x1000ae75b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
cmp eax, r15d
cmovle edi, eax
mov eax, 0x80004005
cmp edi, r15d
cmovge edi, eax
mov rcx, qword [0x1000dedd8]
lea r14, [0x1000dedd8]
cmp rcx, r14
je 0x1000ae895
test byte [rcx + 0x1c], 1
je 0x1000ae895
lea edx, [rbx + 0x37]
mov r9d, edi
lea r8, [0x100002f38]
mov rcx, qword [rcx + 0x10]
call fcn.100020d8c
jmp 0x1000ae895
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
mov dword [rsi + 0x120], r15d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8, r12
mov rdx, r13
mov rcx, rsi
call fcn.1000ad618
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, ebx
jae 0x1000ae7ab
sub eax, ebx
dec eax
jmp 0x1000ae7ad
sub eax, ebx
mov dword [rsi + 0x120], eax
cmp edi, r15d
jge 0x1000ae7f6
mov rcx, qword [0x1000dedd8]
lea r14, [0x1000dedd8]
cmp rcx, r14
je 0x1000ae895
test byte [rcx + 0x1c], 1
je 0x1000ae895
mov edx, 0x37
mov r9d, edi
lea r8, [0x100002f38]
mov rcx, qword [rcx + 0x10]
call fcn.100020d8c
jmp 0x1000ae895
mov rcx, qword [0x1000dedd8]
lea r14, [0x1000dedd8]
cmp rcx, r14
je 0x1000ae831
test byte [rcx + 0x1c], 4
je 0x1000ae831
mov edx, 0x38
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], r12
mov r9, r13
lea r8, [0x100002f38]
mov rcx, qword [rcx + 0x10]
call fcn.100020794
mov qword [rsp + 0x28], r15
mov eax, dword [rsp + 0xd8]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x40]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x68]
mov rcx, rsi
call fcn.1000adfdc
mov edi, eax
cmp eax, r15d
jge 0x1000ae88b
mov rcx, qword [0x1000dedd8]
cmp rcx, r14
je 0x1000ae895
test byte [rcx + 0x1c], 1
je 0x1000ae895
mov edx, 0x39
mov r9d, eax
lea r8, [0x100002f38]
mov rcx, qword [rcx + 0x10]
call fcn.100020d8c
jmp 0x1000ae895
mov edi, r15d
jmp 0x1000ae895
mov edi, 0x8000000a
mov edx, 1
lea rcx, [rsp + 0x58]
call fcn.1000ac4f8
nop
mov edx, 1
lea rcx, [rsp + 0x68]
call fcn.1000ac4f8
mov eax, edi
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret