Function at 0x140045c04
Capabilities:
Check for time delay via gettickcount
Create thread
Encode data using xor

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x4b0
mov qword [rax - 0x208], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14019be90]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
mov r13, rcx
mov qword [rsp + 0x1d8], rcx
xor r14d, r14d
mov dword [rsp + 0x48], r14d
mov byte [0x14019ec12], r14b
mov byte [0x1401a3ea4], 1
call fcn.14001129c
test eax, eax
jne 0x140046f45
lea rax, [rsp + 0x2b0]
mov qword [rsp + 0xe8], rax
lea rdx, str.bfe5e3f5f8fbfcfd
lea rcx, [rsp + 0x2b0]
call fcn.1400020f8
nop
mov rdx, rax
lea rcx, [rsp + 0x1f0]
call fcn.140022c74
nop
mov rdx, qword [rax]
lea r12, [r13 + 0x20]
test rdx, rdx
je 0x140045cc0
mov rcx, qword [r12]
cmp dword [rcx - 0x10], r14d
jl 0x140045cc0
call fcn.1400bbf1c
test rax, rax
jne 0x140045cc9
or r15, 0xffffffffffffffff
mov eax, r15d
jmp 0x140045cd4
sub rax, qword [r12]
sar rax, 1
or r15, 0xffffffffffffffff
cmp eax, r15d
setne bl
mov rdx, qword [rsp + 0x1f0]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x140045cfe
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
jne 0x140045d48
mov rax, 0xffffffff80000001
mov qword [r13 + 0x2e0], rax
mov qword [0x14019ed48], rax
lea rax, [rsp + 0x120]
mov qword [rsp + 0x38], rax
lea r8, [r13 + 0x1a0]
lea rdx, str.Software_
lea rcx, [rsp + 0x120]
call fcn.140018cd0
nop
mov rcx, rax
call fcn.14003d5d8
mov rax, qword [r13 + 0x2e0]
mov qword [r13 + 0x2c8], rax
lea rdx, [0x14019fb30]
cmp byte [0x1401a588d], r14b
jne 0x140045daf
mov dword [rsp + 0x490], 0x6002d
mov dword [rsp + 0x494], 0xb0018
mov word [rsp + 0x498], r14w
mov rcx, r14
lea rax, [0x14019ed90]
movzx eax, byte [rcx + rax]
xor ax, word [rsp + rcx*2 + 0x490]
mov word [rdx + rcx*2], ax
inc rcx
cmp rcx, 4
jl 0x140045d88
mov byte [0x1401a588d], 1
lea rcx, [r13 + 0x1a0]
mov rax, r15
inc rax
cmp word [rdx + rax*2], r14w
jne 0x140045db9
mov r8d, eax
call fcn.14000e4ec
cmp dword [r13 + 0x2d8], r14d
jne 0x140045ddf
mov dword [r13 + 0x2d8], 1
lea rax, [rsp + 0x250]
mov qword [rsp + 0x38], rax
lea rdx, str.bffbf5f5e0f1fcf9e6f5f9fee4f8f5f4f1e2fbad
lea rcx, [rsp + 0x250]
call fcn.1400020f8
nop
mov rdx, rax
lea rcx, [rsp + 0x130]
call fcn.140022c74
nop
mov rdx, qword [rax]
test rdx, rdx
je 0x140045e2e
mov rcx, qword [r12]
cmp dword [rcx - 0x10], r14d
jl 0x140045e2e
call fcn.1400bbf1c
test rax, rax
jne 0x140045e33
mov eax, r15d
jmp 0x140045e3a
sub rax, qword [r12]
sar rax, 1
test eax, eax
setns bl
mov rdx, qword [rsp + 0x130]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x140045e63
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
je 0x140045f36
lea rax, [rsp + 0x290]
mov qword [rsp + 0x38], rax
lea rdx, str.bffbf5f5e0f1fcf9e6f5f9fee4f8f5f4f1e2fbad
lea rcx, [rsp + 0x290]
call fcn.1400020f8
nop
mov rdx, rax
lea rcx, [rsp + 0x1e8]
call fcn.140022c74
nop
mov r8, rax
mov rdx, r12
lea rcx, [rsp + 0x140]
call fcn.14002244c
nop
mov rdx, qword [rax]
lea rcx, [rsp + 0x400]
call fcn.140018fb0
nop
mov rcx, qword [rax]
call fcn.1400bc240
mov dword [r13 + 0x1e8], eax
lea rax, [rsp + 0x408]
mov rcx, qword [rsp + 0x400]
cmp rcx, rax
je 0x140045eed
call fcn.1400bbc10
nop
mov rdx, qword [rsp + 0x140]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x140045f12
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x1e8]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x140045f36
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rsp + 0x150]
mov qword [rsp + 0x38], rax
lea rdx, str.bfe7f1f9e4e4f9fdf5f2f5e4e7f5f5fef3f8f5f3fbe3ad
lea rcx, [rsp + 0x150]
call fcn.1400020f8
nop
mov rdx, rax
lea rcx, [rsp + 0x1f8]
call fcn.140022c74
nop
mov rdx, qword [rax]
test rdx, rdx
je 0x140045f85
mov rcx, qword [r12]
cmp dword [rcx - 0x10], r14d
jl 0x140045f85
call fcn.1400bbf1c
test rax, rax
jne 0x140045f8a
mov eax, r15d
jmp 0x140045f91
sub rax, qword [r12]
sar rax, 1
test eax, eax
setns bl
mov rdx, qword [rsp + 0x1f8]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x140045fba
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
je 0x14004608d
lea rax, [rsp + 0x160]
mov qword [rsp + 0x38], rax
lea rdx, str.bfe7f1f9e4e4f9fdf5f2f5e4e7f5f5fef3f8f5f3fbe3ad
lea rcx, [rsp + 0x160]
call fcn.1400020f8
nop
mov rdx, rax
lea rcx, [rsp + 0x170]
call fcn.140022c74
nop
mov r8, rax
mov rdx, r12
lea rcx, [rsp + 0x208]
call fcn.14002244c
nop
mov rdx, qword [rax]
lea rcx, [rsp + 0x370]
call fcn.140018fb0
nop
mov rcx, qword [rax]
call fcn.1400bc240
mov dword [r13 + 0x1e4], eax
lea rax, [rsp + 0x378]
mov rcx, qword [rsp + 0x370]
cmp rcx, rax
je 0x140046044
call fcn.1400bbc10
nop
mov rdx, qword [rsp + 0x208]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x140046069
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x170]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x14004608d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rsp + 0x218]
mov qword [rsp + 0x38], rax
lea rdx, str.bff4f5f2e5f7f6f9fcf5
lea rcx, [rsp + 0x218]
call fcn.1400020f8
nop
mov rdx, rax
lea rcx, [rsp + 0x180]
call fcn.140022c74
nop
mov rdx, qword [rax]
test rdx, rdx
je 0x1400460dc
mov rcx, qword [r12]
cmp dword [rcx - 0x10], r14d
jl 0x1400460dc
call fcn.1400bbf1c
test rax, rax
jne 0x1400460e1
mov eax, r15d
jmp 0x1400460e8
sub rax, qword [r12]
sar rax, 1
test eax, eax
setns bl
mov rdx, qword [rsp + 0x180]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x140046111
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
je 0x140046257
lea rax, [rsp + 0x228]
mov qword [rsp + 0x38], rax
lea rdx, [0x140136ec8]
lea rcx, [rsp + 0xf8]
call fcn.140002d94
nop
lea rdx, str.bff4f5f2e5f7f6f9fcf5
lea rcx, [rsp + 0x228]
call fcn.1400020f8
nop
mov rdx, rax
lea rcx, [rsp + 0x238]
call fcn.140022c74
nop
mov r8, rax
mov rdx, r12
lea rcx, [rsp + 0x190]
call fcn.14002244c
nop
mov r8, rax
lea rdx, [rsp + 0xf8]
lea rcx, [rsp + 0xe0]
call fcn.14000dac8
nop
mov rdx, qword [rsp + 0x190]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x1400461b3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x238]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x1400461d8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0xf8]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x1400461fc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [r13 + 0x2b8]
lea rdx, [rsp + 0xe0]
call fcn.1400021c4
lea r9, [r13 + 0x1f8]
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r14d
lea r8, [0x14004a2a0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
mov rdx, qword [rsp + 0xe0]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x140046257
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdi, [0x14019b9a8]
mov rcx, rdi
mov rax, qword [0x14019b9a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x38], rax
lea rdx, str.bfd4fcfcdef1fdf5a6a4c4ffd9fefaf5f3e4c4ffd3f8e2fffdf5
lea rcx, [rsp + 0x1a0]
call fcn.1400020f8
nop
mov rdx, rax
lea rcx, [rsp + 0x248]
call fcn.140022c74
nop
mov rdx, qword [rax]
test rdx, rdx
je 0x1400462c3
mov rcx, qword [r12]
cmp dword [rcx - 0x10], r14d
jl 0x1400462c3
call fcn.1400bbf1c
test rax, rax
jne 0x1400462c8
mov eax, r15d
jmp 0x1400462cf
sub rax, qword [r12]
sar rax, 1
test eax, eax
setns bl
mov rdx, qword [rsp + 0x248]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x1400462f8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
je 0x14004639e
lea rax, [rsp + 0x1b0]
mov qword [rsp + 0x38], rax
lea rdx, str.bfd4fcfcdef1fdf5a6a4c4ffd9fefaf5f3e4c4ffd3f8e2fffdf5
lea rcx, [rsp + 0x1b0]
call fcn.1400020f8
nop
mov rdx, rax
lea rcx, [rsp + 0x1c0]
call fcn.140022c74
nop
mov r8, rax
mov rdx, r12
lea rcx, [rsp + 0x258]
call fcn.14002244c
nop
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.1400021c4
nop
mov rdx, qword [rsp + 0x258]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x14004637a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x1c0]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x14004639e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, rdi
mov rax, qword [0x14019b9a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
mov rcx, rdi
mov rax, qword [0x14019b9a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x268]
mov qword [rsp + 0x38], rax
lea rdx, str.bfd4fcfcdef1fdf5a6a4cfa1c4ffd9fefaf5f3e4c4ffd3f8e2fffdf5ad
lea rcx, [rsp + 0x268]
call fcn.1400020f8
nop
mov rdx, rax
lea rcx, [rsp + 0x1d0]
call fcn.140022c74
nop
mov rdx, qword [rax]
test rdx, rdx
je 0x140046419
mov rcx, qword [r12]
cmp dword [rcx - 0x10], r14d
jl 0x140046419
call fcn.1400bbf1c
test rax, rax
jne 0x14004641e
mov eax, r15d
jmp 0x140046425
sub rax, qword [r12]
sar rax, 1
test eax, eax
setns bl
mov rdx, qword [rsp + 0x1d0]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x14004644e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
je 0x1400464f4
lea rax, [rsp + 0x278]
mov qword [rsp + 0x38], rax
lea rdx, str.bfd4fcfcdef1fdf5a6a4cfa1c4ffd9fefaf5f3e4c4ffd3f8e2fffdf5ad
lea rcx, [rsp + 0x278]
call fcn.1400020f8
nop
mov rdx, rax
lea rcx, [rsp + 0x288]
call fcn.140022c74
nop
mov r8, rax
mov rdx, r12
lea rcx, [rsp + 0x1e0]
call fcn.14002244c
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1400021c4
nop
mov rdx, qword [rsp + 0x1e0]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x1400464d0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x288]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x1400464f4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rsp + 0x298]
mov qword [rsp + 0x38], rax
lea rdx, str.bfd4fcfcdef1fdf5a6a4cfa2c4ffd9fefaf5f3e4c4ffd3f8e2fffdf5ad
lea rcx, [rsp + 0x298]
call fcn.1400020f8
nop
mov rdx, rax
lea rcx, [rsp + 0x260]
call fcn.140022c74
nop
mov rdx, qword [rax]
test rdx, rdx
je 0x140046543
mov rcx, qword [r12]
cmp dword [rcx - 0x10], r14d
jl 0x140046543
call fcn.1400bbf1c
test rax, rax
jne 0x140046548
mov eax, r15d
jmp 0x14004654f
sub rax, qword [r12]
sar rax, 1
test eax, eax
setns bl
mov rdx, qword [rsp + 0x260]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x140046578
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
je 0x14004661e
lea rax, [rsp + 0x200]
mov qword [rsp + 0x38], rax
lea rdx, str.bfd4fcfcdef1fdf5a6a4cfa2c4ffd9fefaf5f3e4c4ffd3f8e2fffdf5ad
lea rcx, [rsp + 0x200]
call fcn.1400020f8
nop
mov rdx, rax
lea rcx, [rsp + 0x210]
call fcn.140022c74
nop
mov r8, rax
mov rdx, r12
lea rcx, [rsp + 0x110]
call fcn.14002244c
nop
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.1400021c4
nop
mov rdx, qword [rsp + 0x110]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x1400465fa
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x210]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x14004661e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, rdi
mov rax, qword [0x14019b9a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x270]
mov qword [rsp + 0x38], rax
lea rdx, str.bffeffe6f1a6a4f2f9e4f5e8f5
lea rcx, [rsp + 0x270]
call fcn.1400020f8
nop
mov rdx, rax
lea rcx, [rsp + 0x220]
call fcn.140022c74
nop
mov rdx, qword [rax]
test rdx, rdx
je 0x140046683
mov rcx, qword [r12]
cmp dword [rcx - 0x10], r14d
jl 0x140046683
call fcn.1400bbf1c
test rax, rax
jne 0x140046688
mov eax, r15d
jmp 0x14004668f
sub rax, qword [r12]
sar rax, 1
test eax, eax
setns bl
mov rdx, qword [rsp + 0x220]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x1400466b8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
je 0x14004675f
lea rax, [rsp + 0x2a0]
mov qword [rsp + 0x38], rax
lea rdx, str.bffeffe6f1a6a4f2f9e4f5e8f5
lea rcx, [rsp + 0x2a0]
call fcn.1400020f8
nop
mov rdx, rax
lea rcx, [rsp + 0x280]
call fcn.140022c74
nop
mov r8, rax
mov rdx, r12
lea rcx, [rsp + 0x230]
call fcn.14002244c
nop
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.1400021c4
nop
mov rdx, qword [rsp + 0x230]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x14004673a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x280]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x14004675f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rax, [rsp + 0x240]
mov qword [rsp + 0x340], rax
lea rax, [rsp + 0x2b8]
mov qword [rsp + 0x350], rax
lea rax, [rsp + 0x118]
mov qword [rsp + 0x360], rax
lea rax, [rsp + 0x128]
mov qword [rsp + 0x2e0], rax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x240]
call fcn.140002cf8
mov rsi, rax
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x2b8]
call fcn.140002cf8
mov rdi, rax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x118]
call fcn.140002cf8
mov rbx, rax
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x128]
call fcn.140002cf8
nop
mov qword [rsp + 0x20], rsi
mov r9, rdi
mov r8, rbx
mov rdx, rax
mov rcx, r13
call fcn.140047024
mov edi, 1
mov dl, dil
mov rcx, r13
call fcn.14004a90c
lea rax, [rsp + 0x138]
mov qword [rsp + 0x330], rax
lea rdx, str.bff4fffee4e7f1f9e4f6ffe2fcf9f7f8e4
lea rcx, [rsp + 0x138]
call fcn.1400020f8
nop
mov rdx, rax
lea rcx, [rsp + 0x148]
call fcn.140022c74
mov qword [rsp + 0x2f0], rax
mov rdx, qword [rax]
mov qword [rsp + 0x338], rdx
mov qword [rsp + 0x300], r12
test rdx, rdx
jne 0x140046871
mov ecx, r15d
jmp 0x1400468b2
mov rcx, qword [r12]
mov eax, dword [rcx - 0x10]
mov dword [rsp + 0x2a8], eax
test eax, eax
js 0x14004686c
mov qword [rsp + 0x358], rcx
call fcn.1400bbf1c
mov rcx, rax
mov qword [rsp + 0x310], rax
test rax, rax
je 0x14004686c
mov rax, qword [r12]
mov qword [rsp + 0x348], rax
sub rcx, rax
sar rcx, 1
mov dword [rsp + 0x44], ecx
cmp ecx, r15d
sete byte [rsp + 0x40]
mov rcx, qword [rsp + 0x148]
add rcx, 0xffffffffffffffe8
mov qword [rsp + 0x158], rcx
mov eax, r15d
lock xadd dword [rcx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x1400468f2
mov rdx, qword [rsp + 0x158]
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp byte [rsp + 0x40], r14b
je 0x140046ae4
mov rcx, r13
call fcn.140048f84
mov dword [rsp + 0x70], eax
test eax, eax
je 0x1400469c0
lea rax, [rsp + 0x168]
mov qword [rsp + 0x320], rax
lea rdx, str.bff4f5f2e5f7f6f9fcf5
lea rcx, [rsp + 0x168]
call fcn.1400020f8
nop
mov rdx, rax
lea rcx, [rsp + 0x178]
call fcn.140022c74
mov qword [rsp + 0x328], rax
mov ebx, edi
mov dword [rsp + 0x48], ebx
mov rdx, qword [rax]
mov qword [rsp + 0x2d8], rdx
mov qword [rsp + 0x2e8], r12
test rdx, rdx
je 0x1400469b9
mov rcx, qword [r12]
mov eax, dword [rcx - 0x10]
mov dword [rsp + 0x2ac], eax
test eax, eax
js 0x1400469b9
mov qword [rsp + 0x2f8], rcx
call fcn.1400bbf1c
mov rcx, rax
mov qword [rsp + 0x308], rax
test rax, rax
je 0x1400469b9
mov rax, qword [r12]
mov qword [rsp + 0x318], rax
sub rcx, rax
sar rcx, 1
mov dword [rsp + 0x1c8], ecx
cmp ecx, r15d
jne 0x1400469c4
mov byte [rsp + 0x30], dil
jmp 0x1400469c9
mov ebx, dword [rsp + 0x48]
mov byte [rsp + 0x30], r14b
test dil, bl
je 0x140046a09
and ebx, 0xfffffffe
mov dword [rsp + 0x48], ebx
mov rcx, qword [rsp + 0x178]
add rcx, 0xffffffffffffffe8
mov qword [rsp + 0x188], rcx
mov eax, r15d
lock xadd dword [rcx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x140046a09
mov rdx, qword [rsp + 0x188]
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp byte [rsp + 0x30], r14b
je 0x140046af1
mov rcx, qword [rsp + 0x60]
add rcx, 0xffffffffffffffe8
mov qword [rsp + 0x198], rcx
mov eax, r15d
lock xadd dword [rcx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x140046a46
mov rdx, qword [rsp + 0x198]
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x68]
add rcx, 0xffffffffffffffe8
mov qword [rsp + 0x1a8], rcx
mov eax, r15d
lock xadd dword [rcx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x140046a78
mov rdx, qword [rsp + 0x1a8]
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x50]
add rcx, 0xffffffffffffffe8
mov qword [rsp + 0x1b8], rcx
mov eax, r15d
lock xadd dword [rcx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x140046aaa
mov rdx, qword [rsp + 0x1b8]
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x58]
add rcx, 0xffffffffffffffe8
mov qword [rsp + 0xe8], rcx
mov eax, r15d
lock xadd dword [rcx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x140046adb
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, dword [rsp + 0x70]
jmp 0x140046f45
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [r13 + 0x1e0], eax
mov qword [r13 + 0x2b0], r13
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rbx, rax
lea rax, vtable.WTL::CMessageLoop.0
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], r14
mov qword [rsp + 0x90], r14
mov qword [rsp + 0x98], r14
mov qword [rsp + 0xa0], r14
lea rdx, [rsp + 0x80]
call fcn.140040970
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [r13 + 0x1ec], eax
lea rcx, [r13 + 0x1f8]
mov rdx, rbx
call fcn.14004bb44
test rax, rax
jne 0x140046c83
call fcn.14004121c
mov rdx, rax
lea rcx, [rsp + 0xf0]
call fcn.1400020f8
nop
lea rdx, [rsp + 0xf0]
mov rcx, r13
call fcn.14004b1f4
nop
mov rdx, qword [rsp + 0xf0]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x140046bae
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x140046bc8
call fcn.1400bbc10
mov qword [rsp + 0x98], r14
mov qword [rsp + 0xa0], r14
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x140046bea
call fcn.1400bbc10
mov qword [rsp + 0x88], r14
mov qword [rsp + 0x90], r14
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x140046c14
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x140046c36
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x140046c58
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x140046c79
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 2
jmp 0x140046f45
mov esi, r14d
mov ebx, edi
jmp 0x140046cc7
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xa8]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x140046ccb
mov edx, esi
lea rcx, [rsp + 0x80]
mov rax, qword [rsp + 0x80]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
add esi, edi
test eax, eax
jne 0x140046cc7
mov ebx, r14d
test ebx, ebx
jne 0x140046c8a
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xa8]
call qword [sym.imp.USER32.dll_GetMessageW]
cmp eax, r15d
je 0x140046cc7
test eax, eax
je 0x140046d48
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x80]
mov rax, qword [rsp + 0x80]
call qword [rax]
test eax, eax
jne 0x140046d24
lea rcx, [rsp + 0xa8]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0xa8]
call qword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [rsp + 0xb0]
sub eax, 0xf
je 0x140046cc7
sub eax, 0x91
je 0x140046cc7
sub eax, 0x78
je 0x140046cc7
cmp eax, 0xe8
je 0x140046cc7
jmp 0x140046c83
mov rbx, qword [0x1401a5810]
add rbx, 0x18
mov qword [rsp + 0x2c0], rbx
mov byte [rsp + 0x2c8], r14b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x2c8], dil
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, eax
mov edx, r14d
mov rcx, qword [0x1401a57b8]
cmp dword [rcx + 0x10], r14d
jle 0x140046da0
mov rax, qword [rcx]
cmp dword [rax], r8d
je 0x140046da3
add edx, edi
add rax, 4
cmp edx, dword [rcx + 0x10]
jl 0x140046d90
mov edx, r15d
cmp edx, r15d
je 0x140046dad
call fcn.14004bdb8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [rsp + 0x2c8], r14b
lea rdx, str.task
mov rcx, qword [r13 + 0xe0]
call fcn.1400cf0b4
test eax, eax
sete al
test al, al
je 0x140046de3
mov rcx, r13
call fcn.140014628
nop
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x140046dfd
call fcn.1400bbc10
mov qword [rsp + 0x98], r14
mov qword [rsp + 0xa0], r14
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x140046e1f
call fcn.1400bbc10
mov qword [rsp + 0x88], r14
mov qword [rsp + 0x90], r14
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x140046e49
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x140046e6b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x140046e8d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x140046eae
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x140046f45
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.1400bb0d0
lea r11, [rsp + 0x4b0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret