Function at 0x1000f81f4
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 0x1000f8848
cmp qword [rcx + 0x10], r15
jne 0x1000f8848
mov dword [rcx + 0x44], r15d
lea rax, [0x100152eb8]
mov rcx, qword [0x100152eb8]
cmp rcx, rax
je 0x1000f82a4
test byte [rcx + 0x1c], 4
je 0x1000f82a4
lea edx, [rbp + 0x2a]
mov qword [rsp + 0x20], r8
mov r9, r13
lea r8, [0x10001db30]
mov rcx, qword [rcx + 0x10]
call fcn.10003b380
lea rcx, [rsi + 0x88]
call fcn.1000fa1c0
cmp qword [rsi], r15
jne 0x1000f8539
mov dword [rsp + 0x20], 0x10000000
xor r9d, r9d
xor r8d, r8d
mov edx, ebp
lea rcx, [0x100027218]
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rsi], rax
cmp rax, r15
jne 0x1000f833b
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 [0x100152eb8]
lea r14, [0x100152eb8]
cmp rcx, r14
je 0x1000f8528
test byte [rcx + 0x1c], bpl
je 0x1000f8528
mov edx, 0x2c
mov r9d, edi
lea r8, [0x10001db30]
mov rcx, qword [rcx + 0x10]
call fcn.100036328
jmp 0x1000f8528
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 0x1000f83bc
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 [0x100152eb8]
lea r14, [0x100152eb8]
cmp rcx, r14
je 0x1000f8528
test byte [rcx + 0x1c], bpl
je 0x1000f8528
mov edx, 0x2d
mov r9d, edi
lea r8, [0x10001db30]
mov rcx, qword [rcx + 0x10]
call fcn.100036328
jmp 0x1000f8528
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 0x1000f8436
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 [0x100152eb8]
lea r14, [0x100152eb8]
cmp rcx, r14
je 0x1000f8528
test byte [rcx + 0x1c], bpl
je 0x1000f8528
mov edx, 0x2e
mov r9d, edi
lea r8, [0x10001db30]
mov rcx, qword [rcx + 0x10]
call fcn.100036328
jmp 0x1000f8528
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 0x1000f84b7
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 [0x100152eb8]
lea r14, [0x100152eb8]
cmp rcx, r14
je 0x1000f8528
test byte [rcx + 0x1c], bpl
je 0x1000f8528
mov edx, 0x2f
mov r9d, edi
lea r8, [0x10001db30]
mov rcx, qword [rcx + 0x10]
call fcn.100036328
jmp 0x1000f8528
cmp dword [rsi + 0x40], r15d
je 0x1000f8539
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 0x1000f8539
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 [0x100152eb8]
lea r14, [0x100152eb8]
cmp rcx, r14
je 0x1000f8528
test byte [rcx + 0x1c], bpl
je 0x1000f8528
mov edx, 0x30
mov r9d, edi
lea r8, [0x10001db30]
mov rcx, qword [rcx + 0x10]
call fcn.100036328
lea rcx, [rsi + 0x88]
call fcn.1000fa22c
jmp 0x1000f884d
lea rcx, [rsi + 0x88]
call fcn.1000fa22c
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 0x1000f85e1
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 [0x100152eb8]
lea r14, [0x100152eb8]
cmp rcx, r14
je 0x1000f884d
test byte [rcx + 0x1c], bpl
je 0x1000f884d
mov edx, 0x32
mov r9d, edi
lea r8, [0x10001db30]
mov rcx, qword [rcx + 0x10]
call fcn.100036328
jmp 0x1000f884d
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 0x1000f867c
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 [0x100152eb8]
lea r14, [0x100152eb8]
cmp rcx, r14
je 0x1000f884d
test byte [rcx + 0x1c], 1
je 0x1000f884d
mov edx, 0x33
mov r9d, edi
lea r8, [0x10001db30]
mov rcx, qword [rcx + 0x10]
call fcn.100036328
jmp 0x1000f884d
mov eax, 0x7e0c00
cmp dword [rsi + 0x40], r15d
cmove edi, eax
mov rcx, rsi
call fcn.1000f71a4
xor r9d, r9d
mov r8d, edi
lea rdx, [0x1000f7490]
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
mov rbx, rax
mov rcx, rsi
call fcn.1000f71f4
cmp rbx, 0xffffffffffffffff
jne 0x1000f8713
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 [0x100152eb8]
lea r14, [0x100152eb8]
cmp rcx, r14
je 0x1000f884d
test byte [rcx + 0x1c], 1
je 0x1000f884d
lea edx, [rbx + 0x37]
mov r9d, edi
lea r8, [0x10001db30]
mov rcx, qword [rcx + 0x10]
call fcn.100036328
jmp 0x1000f884d
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.1000f75dc
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, ebx
jae 0x1000f8763
sub eax, ebx
dec eax
jmp 0x1000f8765
sub eax, ebx
mov dword [rsi + 0x120], eax
cmp edi, r15d
jge 0x1000f87ae
mov rcx, qword [0x100152eb8]
lea r14, [0x100152eb8]
cmp rcx, r14
je 0x1000f884d
test byte [rcx + 0x1c], 1
je 0x1000f884d
mov edx, 0x37
mov r9d, edi
lea r8, [0x10001db30]
mov rcx, qword [rcx + 0x10]
call fcn.100036328
jmp 0x1000f884d
mov rcx, qword [0x100152eb8]
lea r14, [0x100152eb8]
cmp rcx, r14
je 0x1000f87e9
test byte [rcx + 0x1c], 4
je 0x1000f87e9
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.100057d6c
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.1000f7f9c
mov edi, eax
cmp eax, r15d
jge 0x1000f8843
mov rcx, qword [0x100152eb8]
cmp rcx, r14
je 0x1000f884d
test byte [rcx + 0x1c], 1
je 0x1000f884d
mov edx, 0x39
mov r9d, eax
lea r8, [0x10001db30]
mov rcx, qword [rcx + 0x10]
call fcn.100036328
jmp 0x1000f884d
mov edi, r15d
jmp 0x1000f884d
mov edi, 0x8000000a
mov edx, 1
lea rcx, [rsp + 0x58]
call fcn.1000f64fc
nop
mov edx, 1
lea rcx, [rsp + 0x68]
call fcn.1000f64fc
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