Function at 0x1000f86e8
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 0x1000f8d3c
cmp qword [rcx + 0x10], r15
jne 0x1000f8d3c
mov dword [rcx + 0x44], r15d
lea rax, [0x100153eb8]
mov rcx, qword [0x100153eb8]
cmp rcx, rax
je 0x1000f8798
test byte [rcx + 0x1c], 4
je 0x1000f8798
lea edx, [rbp + 0x2a]
mov qword [rsp + 0x20], r8
and al, 0x20
mov r9, r13
lea r8, [0x10001db30]
mov rcx, qword [rcx + 0x10]
call fcn.10003b3bc
lea rcx, [rsi + 0x88]
call fcn.1000fa6b4
cmp qword [rsi], r15
jne 0x1000f8a2d
mov dword [rsp + 0x20], 0x10000000
xor r9d, r9d
xor r8d, r8d
mov edx, ebp
lea rcx, [0x100027228]
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rsi], rax
cmp rax, r15
jne 0x1000f882f
call sub.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 [0x100153eb8]
lea r14, [0x100153eb8]
cmp rcx, r14
je 0x1000f8a1c
test byte [rcx + 0x1c], bpl
je 0x1000f8a1c
mov edx, 0x2c
mov r9d, edi
lea r8, [0x10001db30]
mov rcx, qword [rcx + 0x10]
call fcn.100036510
jmp 0x1000f8a1c
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 0x1000f88b0
call sub.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 [0x100153eb8]
lea r14, [0x100153eb8]
cmp rcx, r14
je 0x1000f8a1c
test byte [rcx + 0x1c], bpl
je 0x1000f8a1c
mov edx, 0x2d
mov r9d, edi
lea r8, [0x10001db30]
mov rcx, qword [rcx + 0x10]
call fcn.100036510
jmp 0x1000f8a1c
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 0x1000f892a
call sub.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 [0x100153eb8]
lea r14, [0x100153eb8]
cmp rcx, r14
je 0x1000f8a1c
test byte [rcx + 0x1c], bpl
je 0x1000f8a1c
mov edx, 0x2e
mov r9d, edi
lea r8, [0x10001db30]
mov rcx, qword [rcx + 0x10]
call fcn.100036510
jmp 0x1000f8a1c
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 0x1000f89ab
call sub.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 [0x100153eb8]
lea r14, [0x100153eb8]
cmp rcx, r14
je 0x1000f8a1c
test byte [rcx + 0x1c], bpl
je 0x1000f8a1c
mov edx, 0x2f
mov r9d, edi
lea r8, [0x10001db30]
mov rcx, qword [rcx + 0x10]
call fcn.100036510
jmp 0x1000f8a1c
cmp dword [rsi + 0x40], r15d
je 0x1000f8a2d
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 0x1000f8a2d
call sub.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 [0x100153eb8]
lea r14, [0x100153eb8]
cmp rcx, r14
je 0x1000f8a1c
test byte [rcx + 0x1c], bpl
je 0x1000f8a1c
mov edx, 0x30
mov r9d, edi
lea r8, [0x10001db30]
mov rcx, qword [rcx + 0x10]
call fcn.100036510
lea rcx, [rsi + 0x88]
call fcn.1000fa720
jmp 0x1000f8d41
lea rcx, [rsi + 0x88]
call fcn.1000fa720
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 0x1000f8ad5
call sub.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 [0x100153eb8]
lea r14, [0x100153eb8]
cmp rcx, r14
je 0x1000f8d41
test byte [rcx + 0x1c], bpl
je 0x1000f8d41
mov edx, 0x32
mov r9d, edi
lea r8, [0x10001db30]
mov rcx, qword [rcx + 0x10]
call fcn.100036510
jmp 0x1000f8d41
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 0x1000f8b70
call sub.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 [0x100153eb8]
lea r14, [0x100153eb8]
cmp rcx, r14
je 0x1000f8d41
test byte [rcx + 0x1c], 1
je 0x1000f8d41
mov edx, 0x33
mov r9d, edi
lea r8, [0x10001db30]
mov rcx, qword [rcx + 0x10]
call fcn.100036510
jmp 0x1000f8d41
mov eax, 0x7e0c00
cmp dword [rsi + 0x40], r15d
cmove edi, eax
mov rcx, rsi
call fcn.1000f7698
xor r9d, r9d
mov r8d, edi
lea rdx, [0x1000f7984]
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
mov rbx, rax
mov rcx, rsi
call fcn.1000f76e8
cmp rbx, 0xffffffffffffffff
jne 0x1000f8c07
call sub.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 [0x100153eb8]
lea r14, [0x100153eb8]
cmp rcx, r14
je 0x1000f8d41
test byte [rcx + 0x1c], 1
je 0x1000f8d41
lea edx, [rbx + 0x37]
mov r9d, edi
lea r8, [0x10001db30]
mov rcx, qword [rcx + 0x10]
call fcn.100036510
jmp 0x1000f8d41
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.1000f7ad0
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, ebx
jae 0x1000f8c57
sub eax, ebx
dec eax
jmp 0x1000f8c59
sub eax, ebx
mov dword [rsi + 0x120], eax
cmp edi, r15d
jge 0x1000f8ca2
mov rcx, qword [0x100153eb8]
lea r14, [0x100153eb8]
cmp rcx, r14
je 0x1000f8d41
test byte [rcx + 0x1c], 1
je 0x1000f8d41
mov edx, 0x37
mov r9d, edi
lea r8, [0x10001db30]
mov rcx, qword [rcx + 0x10]
call fcn.100036510
jmp 0x1000f8d41
mov rcx, qword [0x100153eb8]
lea r14, [0x100153eb8]
cmp rcx, r14
je 0x1000f8cdd
test byte [rcx + 0x1c], 4
je 0x1000f8cdd
mov edx, 0x38
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], r12
mov r9, r13
lea r8, [0x10001db30]
mov rcx, qword [rcx + 0x10]
call fcn.100057fe8
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.1000f8490
mov edi, eax
cmp eax, r15d
jge 0x1000f8d37
mov rcx, qword [0x100153eb8]
cmp rcx, r14
je 0x1000f8d41
test byte [rcx + 0x1c], 1
je 0x1000f8d41
mov edx, 0x39
mov r9d, eax
lea r8, [0x10001db30]
mov rcx, qword [rcx + 0x10]
call fcn.100036510
jmp 0x1000f8d41
mov edi, r15d
jmp 0x1000f8d41
mov edi, 0x8000000a
mov edx, 1
lea rcx, [rsp + 0x58]
call fcn.1000f69f0
nop
mov edx, 1
lea rcx, [rsp + 0x68]
call fcn.1000f69f0
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