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

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xa8
mov qword [rbp - 0x51], 0xfffffffffffffffe
mov r15d, r9d
mov rax, rdx
mov rsi, rcx
xor edi, edi
mov r12d, edi
mov qword [rbp - 0x39], rdi
mov qword [rbp - 0x31], rdi
mov r13d, edi
mov qword [rbp - 0x49], rdi
mov qword [rbp - 0x41], rdi
mov dword [rbp + 0x4f], edi
mov qword [rbp - 0x61], rcx
mov dword [rbp + 0x67], edi
mov r14d, r9d
cmp qword [rcx + 8], rdi
jne 0x14010cafb
cmp qword [rcx + 0x10], rdi
jne 0x14010cafb
test r15b, 0x10
je 0x14010c332
or r14d, 1
or dword [rcx + 0x350], 0xffffffff
lea rdx, [0x140148ea8]
mov rcx, qword [0x140148ea8]
cmp rcx, rdx
je 0x14010c36f
test byte [rcx + 0x1c], 4
je 0x14010c36f
mov edx, 0x30
mov qword [rsp + 0x20], r8
mov r9, rax
lea r8, [0x140001328]
mov rcx, qword [rcx + 0x10]
call fcn.140017150
lea rbx, [rsi + 0x88]
mov rcx, rbx
call fcn.14010efbc
cmp qword [rsi], rdi
jne 0x14010c59d
mov dword [rsp + 0x20], 0x10000000
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
lea rcx, [0x14010cb38]
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rsi], rax
test rax, rax
jne 0x14010c3f6
call sub.KERNEL32.dll_GetLastError
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, 0x80004005
test edi, edi
cmovns edi, eax
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14010c590
test byte [rcx + 0x1c], 1
je 0x14010c590
mov edx, 0x31
jmp 0x14010c57d
mov r9d, 0x7530
mov dword [rsp + 0x20], r9d
mov edx, 0x1d4c0
mov r8d, 0xea60
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x14010c461
call sub.KERNEL32.dll_GetLastError
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, 0x80004005
test edi, edi
cmovns edi, eax
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14010c590
test byte [rcx + 0x1c], 1
je 0x14010c590
mov edx, 0x32
jmp 0x14010c57d
mov r9d, 8
lea r8, [rbp - 0x61]
lea edx, [r9 + 0x25]
mov rcx, qword [rsi]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x14010c4c4
call sub.KERNEL32.dll_GetLastError
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, 0x80004005
test edi, edi
cmovns edi, eax
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14010c590
test byte [rcx + 0x1c], 1
je 0x14010c590
mov edx, 0x33
jmp 0x14010c57d
mov dword [rbp + 0x67], 1
mov r9d, 4
lea r8, [rbp + 0x67]
lea edx, [r9 + 0x54]
mov rcx, qword [rsi]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x14010c523
call sub.KERNEL32.dll_GetLastError
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, 0x80004005
test edi, edi
cmovns edi, eax
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14010c590
test byte [rcx + 0x1c], 1
je 0x14010c590
mov edx, 0x34
jmp 0x14010c57d
cmp dword [rsi + 0x40], edi
je 0x14010c59d
lea r8, [rsi + 0x30]
mov edx, 0x63
lea r9d, [rdx - 0x5b]
mov rcx, qword [rsi]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x14010c59d
call sub.KERNEL32.dll_GetLastError
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, 0x80004005
test edi, edi
cmovns edi, eax
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14010c590
test byte [rcx + 0x1c], 1
je 0x14010c590
mov edx, 0x35
mov r9d, edi
lea r8, [0x140001328]
mov rcx, qword [rcx + 0x10]
call fcn.14000fd64
mov rcx, rbx
call fcn.1401103e0
jmp 0x14010cb00
mov rcx, rbx
call fcn.1401103e0
mov rcx, qword [rsi + 0x20]
call sub.KERNEL32.dll_ResetEvent
mov rcx, qword [rsi + 0x30]
call sub.KERNEL32.dll_ResetEvent
mov dword [rsi + 0x354], edi
mov dword [rsi + 0x124], edi
mov rbx, qword [rbp + 0x77]
test rbx, rbx
je 0x14010c62a
mov dword [rbp - 0x29], edi
mov rax, qword [rbp + 0x7f]
mov qword [rbp - 0x21], rax
mov rcx, rbx
call qword [fcn.140015690]
lea rcx, [rbp - 0x29]
call rbx
mov edi, eax
test eax, eax
jns 0x14010c62a
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14010cb00
test byte [rcx + 0x1c], 1
je 0x14010cb00
mov edx, 0x36
mov r9d, edi
lea r8, [0x140001328]
mov rcx, qword [rcx + 0x10]
call fcn.14000fd64
jmp 0x14010cb00
xor r9d, r9d
movzx r8d, word [rbp + 0x87]
mov rdx, qword [rbp + 0x57]
mov rcx, qword [rsi]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rsi + 8], rax
test rax, rax
jne 0x14010c690
call sub.KERNEL32.dll_GetLastError
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, 0x80004005
test edi, edi
cmovns edi, eax
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14010cb00
test byte [rcx + 0x1c], 1
je 0x14010cb00
mov edx, 0x37
jmp 0x14010c612
call sub.KERNEL32.dll_GetTickCount
mov ebx, eax
mov edx, r14d
mov ecx, r14d
mov eax, r14d
and al, 8
lea r8, [0x14010cb58]
neg al
sbb r10, r10
and r10, r8
lea rax, [0x14010cb50]
and cl, 4
cmovne r10, rax
lea rax, [0x14010cb48]
and dl, 2
cmovne r10, rax
mov qword [rbp - 0x59], r10
mov edi, r14d
and edi, 1
mov eax, edi
shl eax, 0x17
mov dword [rsp + 0x30], eax
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rbp + 0x5f]
mov rdx, r10
mov rcx, qword [rsi + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rsi + 0x10], rax
test rax, rax
jne 0x14010c751
call sub.KERNEL32.dll_GetLastError
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, 0x80004005
test edi, edi
cmovns edi, eax
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14010cb00
test byte [rcx + 0x1c], 1
je 0x14010cb00
mov edx, 0x38
jmp 0x14010c612
call sub.KERNEL32.dll_GetTickCount
cmp eax, ebx
jae 0x14010c760
sub eax, ebx
dec eax
jmp 0x14010c762
sub eax, ebx
mov dword [rsi + 0x124], eax
test r14b, 0x10
je 0x14010c7d9
mov dword [rbp + 0x67], 1
mov r9d, 4
lea r8, [rbp + 0x67]
lea edx, [r9 + 0x49]
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x14010c7d9
call sub.KERNEL32.dll_GetLastError
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, 0x80004005
test edi, edi
cmovns edi, eax
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14010cb00
test byte [rcx + 0x1c], 1
je 0x14010cb00
mov edx, 0x39
jmp 0x14010c612
test edi, edi
je 0x14010c848
mov dword [rbp + 0x67], 1
mov r9d, 4
lea r8, [rbp + 0x67]
lea edx, [r9 + 0x4b]
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x14010c848
call sub.KERNEL32.dll_GetLastError
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, 0x80004005
test edi, edi
cmovns edi, eax
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14010cb00
test byte [rcx + 0x1c], 1
je 0x14010cb00
mov edx, 0x3a
jmp 0x14010c612
mov rdx, qword [rbp + 0x97]
test rdx, rdx
je 0x14010c8b4
mov r9d, 0x20000000
or r8d, 0xffffffff
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x14010c8b4
call sub.KERNEL32.dll_GetLastError
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, 0x80004005
test edi, edi
cmovns edi, eax
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14010cb00
test byte [rcx + 0x1c], 1
je 0x14010cb00
mov edx, 0x3b
jmp 0x14010c612
mov eax, 0x17e0c00
cmp dword [rsi + 0x40], 0
mov ebx, 0x17e0000
cmove ebx, eax
mov rcx, rsi
call fcn.14010cf84
xor r9d, r9d
mov r8d, ebx
lea rdx, [0x140110370]
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
mov rbx, rax
mov rcx, rsi
call fcn.14010ef8c
cmp rbx, 0xffffffffffffffff
jne 0x14010c93b
call sub.KERNEL32.dll_GetLastError
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, 0x80004005
test edi, edi
cmovns edi, eax
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14010cb00
test byte [rcx + 0x1c], 1
je 0x14010cb00
lea edx, [rbx + 0x3d]
jmp 0x14010c612
and dword [rsi + 0x120], 0
test r14b, 0x20
jne 0x14010c9d1
call sub.KERNEL32.dll_GetTickCount
mov ebx, eax
lea rax, [rbp + 0x4f]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x49]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x39]
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8, qword [rbp + 0x5f]
mov rdx, qword [rbp + 0x57]
mov rcx, rsi
call fcn.14010e000
mov edi, eax
call sub.KERNEL32.dll_GetTickCount
cmp eax, ebx
jae 0x14010c992
sub eax, ebx
dec eax
jmp 0x14010c994
sub eax, ebx
mov dword [rsi + 0x120], eax
test edi, edi
jns 0x14010c9c9
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14010cb00
test byte [rcx + 0x1c], 1
je 0x14010cb00
mov edx, 0x3d
jmp 0x14010c612
mov r12, qword [rbp - 0x39]
mov r13, qword [rbp - 0x49]
mov rcx, qword [0x140148ea8]
lea rbx, [0x140148ea8]
cmp rcx, rbx
je 0x14010ca15
test byte [rcx + 0x1c], 4
je 0x14010ca15
mov edx, 0x3e
mov rax, qword [rbp - 0x59]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x5f]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x57]
lea r8, [0x140001328]
mov rcx, qword [rcx + 0x10]
call fcn.140033380
mov rax, qword [rbp + 0x8f]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r14d
mov eax, dword [rbp + 0x6f]
mov dword [rsp + 0x20], eax
mov r9d, dword [rbp + 0x4f]
mov r8, r13
mov rdx, r12
mov rcx, rsi
call fcn.14010fb30
mov edi, eax
test eax, eax
jns 0x14010ca6c
mov rcx, qword [0x140148ea8]
cmp rcx, rbx
je 0x14010cb00
test byte [rcx + 0x1c], 1
je 0x14010cb00
mov edx, 0x3f
mov r9d, eax
jmp 0x14010c615
test r15b, 0x40
je 0x14010caf7
call sub.KERNEL32.dll_GetTickCount
mov ebx, eax
mov rcx, qword [rsi + 0x10]
call fcn.14010b29c
mov edi, eax
call sub.KERNEL32.dll_GetTickCount
cmp eax, ebx
jae 0x14010ca97
sub eax, ebx
dec eax
jmp 0x14010ca99
sub eax, ebx
mov dword [rsi + 0x350], eax
mov rcx, qword [0x140148ea8]
lea rdx, [0x140148ea8]
cmp rcx, rdx
je 0x14010cade
test byte [rcx + 0x1c], 8
je 0x14010cade
mov edx, 0x40
mov r9d, eax
lea r8, [0x140001328]
mov rcx, qword [rcx + 0x10]
call fcn.14000fd64
mov rcx, qword [0x140148ea8]
lea rdx, [0x140148ea8]
test edi, edi
jns 0x14010caf7
cmp rcx, rdx
je 0x14010cb00
test byte [rcx + 0x1c], 2
je 0x14010cb00
mov edx, 0x41
jmp 0x14010c612
xor edi, edi
jmp 0x14010cb00
mov edi, 0x8000000a
mov edx, 1
lea rcx, [rbp - 0x49]
call fcn.140110394
nop
mov edx, 1
lea rcx, [rbp - 0x39]
call fcn.140110394
mov eax, edi
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret