Function at 0x1400e2d7c
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, 0x98
mov qword [rbp - 0x49], 0xfffffffffffffffe
mov r15d, r9d
mov rax, rdx
mov rsi, rcx
xor edi, edi
mov r12d, edi
mov qword [rbp - 0x31], rdi
mov qword [rbp - 0x29], rdi
mov r13d, edi
mov qword [rbp - 0x41], rdi
mov qword [rbp - 0x39], rdi
mov dword [rbp + 0x4f], edi
mov qword [rbp + 0x8f], rcx
mov dword [rbp + 0x67], edi
mov r14d, r9d
cmp qword [rcx + 8], rdi
jne 0x1400e35b5
cmp qword [rcx + 0x10], rdi
jne 0x1400e35b5
test r15b, 0x10
je 0x1400e2df5
or r14d, 1
or dword [rcx + 0x350], 0xffffffff
lea rdx, [0x14014dd40]
mov rcx, qword [0x14014dd40]
cmp rcx, rdx
je 0x1400e2e32
test byte [rcx + 0x1c], 4
je 0x1400e2e32
mov edx, 0x30
mov qword [rsp + 0x20], r8
mov r9, rax
lea r8, [0x140129d70]
mov rcx, qword [rcx + 0x10]
call fcn.14000abd8
lea rbx, [rsi + 0x88]
mov rcx, rbx
call fcn.1400e75b0
cmp qword [rsi], rdi
jne 0x1400e3063
mov dword [rsp + 0x20], 0x10000000
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
lea rcx, str.MSDW
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rsi], rax
test rax, rax
jne 0x1400e2eb9
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 [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400e3056
test byte [rcx + 0x1c], 1
je 0x1400e3056
mov edx, 0x31
jmp 0x1400e3043
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 0x1400e2f24
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 [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400e3056
test byte [rcx + 0x1c], 1
je 0x1400e3056
mov edx, 0x32
jmp 0x1400e3043
mov r9d, 8
lea r8, [rbp + 0x8f]
lea edx, [r9 + 0x25]
mov rcx, qword [rsi]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x1400e2f8a
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 [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400e3056
test byte [rcx + 0x1c], 1
je 0x1400e3056
mov edx, 0x33
jmp 0x1400e3043
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 0x1400e2fe9
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 [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400e3056
test byte [rcx + 0x1c], 1
je 0x1400e3056
mov edx, 0x34
jmp 0x1400e3043
cmp dword [rsi + 0x40], edi
je 0x1400e3063
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 0x1400e3063
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 [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400e3056
test byte [rcx + 0x1c], 1
je 0x1400e3056
mov edx, 0x35
mov r9d, edi
lea r8, [0x140129d70]
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
mov rcx, rbx
call fcn.1400e761c
jmp 0x1400e35ba
mov rcx, rbx
call fcn.1400e761c
mov rcx, qword [rsi + 0x20]
call sub.KERNEL32.dll_ResetEvent
mov rcx, qword [rsi + 0x30]
call sub.KERNEL32.dll_ResetEvent
mov dword [rsi + 0x360], edi
mov dword [rsi + 0x124], edi
mov rbx, qword [rbp + 0x77]
test rbx, rbx
je 0x1400e30f0
mov dword [rbp - 0x21], edi
mov rax, qword [rbp + 0x7f]
mov qword [rbp - 0x19], rax
mov rcx, rbx
call qword [fcn.140009050]
lea rcx, [rbp - 0x21]
call rbx
mov edi, eax
test eax, eax
jns 0x1400e30f0
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400e35ba
test byte [rcx + 0x1c], 1
je 0x1400e35ba
mov edx, 0x36
mov r9d, edi
lea r8, [0x140129d70]
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
jmp 0x1400e35ba
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 0x1400e3156
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 [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400e35ba
test byte [rcx + 0x1c], 1
je 0x1400e35ba
mov edx, 0x37
jmp 0x1400e30d8
call sub.KERNEL32.dll_GetTickCount
mov ebx, eax
mov edx, r14d
mov ecx, r14d
mov eax, r14d
and al, 8
lea r8, str.POST
neg al
sbb r10, r10
and r10, r8
lea rax, [0x140129cf8]
and cl, 4
cmovne r10, rax
lea rax, [0x140129cf0]
and dl, 2
cmovne r10, rax
mov qword [rbp - 0x51], 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 0x1400e3217
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 [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400e35ba
test byte [rcx + 0x1c], 1
je 0x1400e35ba
mov edx, 0x38
jmp 0x1400e30d8
call sub.KERNEL32.dll_GetTickCount
cmp eax, ebx
jae 0x1400e3226
sub eax, ebx
dec eax
jmp 0x1400e3228
sub eax, ebx
mov dword [rsi + 0x124], eax
test r14b, 0x10
je 0x1400e329f
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 0x1400e329f
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 [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400e35ba
test byte [rcx + 0x1c], 1
je 0x1400e35ba
mov edx, 0x39
jmp 0x1400e30d8
test edi, edi
je 0x1400e330e
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 0x1400e330e
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 [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400e35ba
test byte [rcx + 0x1c], 1
je 0x1400e35ba
mov edx, 0x3a
jmp 0x1400e30d8
mov rdx, qword [rbp + 0x97]
test rdx, rdx
je 0x1400e337a
mov r9d, 0x20000000
or r8d, 0xffffffff
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x1400e337a
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 [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400e35ba
test byte [rcx + 0x1c], 1
je 0x1400e35ba
mov edx, 0x3b
jmp 0x1400e30d8
mov eax, 0x17e0c00
cmp dword [rsi + 0x40], 0
mov ebx, 0x17e0000
cmove ebx, eax
mov rcx, rsi
call fcn.1400e1bd4
xor r9d, r9d
mov r8d, ebx
lea rdx, [0x1400e1ec0]
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
mov rbx, rax
mov rcx, rsi
call fcn.1400e1c24
cmp rbx, 0xffffffffffffffff
jne 0x1400e3401
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 [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400e35ba
test byte [rcx + 0x1c], 1
je 0x1400e35ba
lea edx, [rbx + 0x3d]
jmp 0x1400e30d8
and dword [rsi + 0x120], 0
test r14b, 0x20
jne 0x1400e3497
call sub.KERNEL32.dll_GetTickCount
mov ebx, eax
lea rax, [rbp + 0x4f]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x41]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x31]
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8, qword [rbp + 0x5f]
mov rdx, qword [rbp + 0x57]
mov rcx, rsi
call fcn.1400e224c
mov edi, eax
call sub.KERNEL32.dll_GetTickCount
cmp eax, ebx
jae 0x1400e3458
sub eax, ebx
dec eax
jmp 0x1400e345a
sub eax, ebx
mov dword [rsi + 0x120], eax
test edi, edi
jns 0x1400e348f
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400e35ba
test byte [rcx + 0x1c], 1
je 0x1400e35ba
mov edx, 0x3d
jmp 0x1400e30d8
mov r12, qword [rbp - 0x31]
mov r13, qword [rbp - 0x41]
mov rcx, qword [0x14014dd40]
lea rbx, [0x14014dd40]
cmp rcx, rbx
je 0x1400e34db
test byte [rcx + 0x1c], 4
je 0x1400e34db
mov edx, 0x3e
mov rax, qword [rbp - 0x51]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x5f]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x57]
lea r8, [0x140129d70]
mov rcx, qword [rcx + 0x10]
call fcn.140025b48
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.1400e2ba8
mov edi, eax
test eax, eax
jns 0x1400e3526
mov rcx, qword [0x14014dd40]
cmp rcx, rbx
je 0x1400e35ba
test byte [rcx + 0x1c], 1
je 0x1400e35ba
mov edx, 0x3f
mov r9d, eax
jmp 0x1400e30db
test r15b, 0x40
je 0x1400e35b1
call sub.KERNEL32.dll_GetTickCount
mov ebx, eax
mov rcx, qword [rsi + 0x10]
call fcn.1400e201c
mov edi, eax
call sub.KERNEL32.dll_GetTickCount
cmp eax, ebx
jae 0x1400e3551
sub eax, ebx
dec eax
jmp 0x1400e3553
sub eax, ebx
mov dword [rsi + 0x350], eax
mov rcx, qword [0x14014dd40]
lea rdx, [0x14014dd40]
cmp rcx, rdx
je 0x1400e3598
test byte [rcx + 0x1c], 8
je 0x1400e3598
mov edx, 0x40
mov r9d, eax
lea r8, [0x140129d70]
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
mov rcx, qword [0x14014dd40]
lea rdx, [0x14014dd40]
test edi, edi
jns 0x1400e35b1
cmp rcx, rdx
je 0x1400e35ba
test byte [rcx + 0x1c], 2
je 0x1400e35ba
mov edx, 0x41
jmp 0x1400e30d8
xor edi, edi
jmp 0x1400e35ba
mov edi, 0x8000000a
mov edx, 1
lea rcx, [rbp - 0x41]
call fcn.1400d9748
nop
mov edx, 1
lea rcx, [rbp - 0x31]
call fcn.1400d9748
mov eax, edi
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret