Function at 0x14004df00
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov r12, rcx
mov rcx, rdx
mov rsi, r9
mov rbp, r8
mov rdi, rdx
call fcn.1400430b0
movsxd rbx, eax
test eax, eax
jne 0x14004df45
lea rdx, str.Parameter_1_invalid.
mov r9, rdi
xor r8d, r8d
mov rcx, r12
add rsp, 0x40
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
jmp fcn.140040350
cmp ebx, 1
je 0x14004ea9b
mov qword [rsp + 0x70], r13
cmp ebx, 2
je 0x14004e786
cmp ebx, 3
je 0x14004e2d6
jle 0x14004e2c4
cmp ebx, 5
jg 0x14004e2c4
xor edi, edi
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x80], r15
cmp word [rsi], di
je 0x14004dfab
mov rcx, rsi
xor r12b, r12b
call fcn.14001c010
mulsd xmm0, qword [0x140100e38]
cvttsd2si r13d, xmm0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r14d, eax
jmp 0x14004dfb6
mov r14d, dword [rsp + 0x30]
mov r12b, 1
mov r13d, edi
mov r15, rbx
mov esi, 1
nop
mov rcx, rbp
call fcn.140081ef0
mov ebx, eax
cmp r15, 4
jne 0x14004dfeb
test eax, eax
je 0x14004dfef
mov rcx, qword [0x1401182a0]
mov rdx, rbx
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.140001090
jmp 0x14004e0a0
test eax, eax
je 0x14004e013
test r12b, r12b
jne 0x14004e005
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [r14 + r13]
sub ecx, eax
cmp ecx, 5
jle 0x14004dfd4
mov edx, esi
mov ecx, 0x64
call fcn.140001a70
jmp 0x14004dfc0
mov rbp, qword [0x1401182a0]
movzx eax, byte [rbp + 0x23]
test al, al
jne 0x14004e040
mov rcx, qword [rbp + 0x10]
lea rdx, [0x1400e24fc]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov byte [rsp + 0x20], sil
call fcn.1400b0a10
jmp 0x14004e09e
lea r12, [0x1400e24fc]
cmp qword [rbp + 8], r12
jne 0x14004e056
mov r14, qword [rbp + 0x10]
shr r14, 1
jmp 0x14004e059
mov r14, rsi
lea rcx, [r14 + 1]
lea r13, [rcx + rcx]
cmp al, 2
jne 0x14004e072
mov rdx, r14
mov rcx, r12
call fcn.140006100
jmp 0x14004e09e
mov r8, qword [0x140112480]
cmp r13, r8
jbe 0x14004e0bf
cmp r13, qword [rbp + 0x18]
jbe 0x14004e0bf
lea r8, [0x1400e245c]
lea rdx, str.Memory_limit_reached__see_MaxMem_in_the_help_file_.
lea rcx, [0x140119170]
call fcn.1400406a0
mov esi, eax
mov r14, qword [rsp + 0x78]
mov r15, qword [rsp + 0x80]
mov eax, esi
mov r13, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp rcx, 2
jae 0x14004e0d6
xor r8d, r8d
mov rcx, rbp
lea edx, [r8 + 4]
call fcn.1400b10c0
jmp 0x14004e0a0
movzx eax, byte [rbp + 0x21]
test al, 2
je 0x14004e0f4
mov rcx, qword [rbp]
and al, 0x3d
mov byte [rbp + 0x21], al
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov r8, qword [0x140112480]
mov r9, qword [rbp + 0x18]
and byte [rbp + 0x21], 0x82
cmp r13, r9
jbe 0x14004e266
movzx r10d, byte [rbp + 0x20]
movzx eax, r10b
cmp r10b, sil
jbe 0x14004e126
cmp al, 2
je 0x14004e166
mov rbx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x30]
jmp 0x14004e25a
mov ebx, 0x80
cmp r13, rbx
ja 0x14004e166
cmp r13, 8
ja 0x14004e13d
mov ebx, 8
jmp 0x14004e149
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
cmp r13, rax
cmovbe rbx, rax
mov rcx, rbx
call fcn.1400a9920
test rax, rax
jne 0x14004e15d
mov esi, edi
jmp 0x14004e0a0
mov byte [rbp + 0x20], sil
jmp 0x14004e25a
cmp r13, 0x20
jae 0x14004e176
mov ebx, SafeArrayAllocDescriptor
jmp 0x14004e220
mov ebx, 0x208
cmp r13, rbx
jb 0x14004e220
cmp r13, 0x50000
jae 0x14004e1dc
pxor xmm0, xmm0
cvtsi2sd xmm0, r13
test r13, r13
jns 0x14004e1a3
addsd xmm0, qword [0x140100e18]
mulsd xmm0, qword [0x140100e50]
movsd xmm1, qword [0x140100e48]
xor ecx, ecx
comisd xmm0, xmm1
jbe 0x14004e1d2
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x14004e1d2
movabs rax, 0x8000000000000000
mov rcx, rax
cvttsd2si rbx, xmm0
add rbx, rcx
jmp 0x14004e220
cmp r13, 0x320000
jae 0x14004e1ee
lea rbx, [r13 + 0x8000]
jmp 0x14004e220
cmp r13, 0xc80000
jae 0x14004e219
movabs rax, 0x47ae147ae147ae15
mov rbx, r13
mul r13
sub rbx, rdx
shr rbx, 1
add rbx, rdx
shr rbx, 6
add rbx, r13
jmp 0x14004e220
lea rbx, [r13 + 0x20000]
cmp rbx, r8
cmova rbx, r8
cmp r10b, 2
jne 0x14004e241
test r9, r9
je 0x14004e241
mov rcx, qword [rbp + 8]
movzx r13d, sil
call fcn.1400ca970
jmp 0x14004e244
xor r13b, r13b
test rbx, rbx
js 0x14004e290
mov rcx, rbx
call fcn.1400c9ed4
test rax, rax
je 0x14004e290
mov byte [rbp + 0x20], 2
and byte [rbp + 0x21], 0x7f
mov qword [rbp + 8], rax
mov qword [rbp + 0x18], rbx
mov rcx, qword [rbp + 8]
cmp rcx, r12
je 0x14004e27b
lea r8, [r14 + r14]
mov rdx, r12
call fcn.1400cab30
mov rax, qword [rbp + 8]
lea rcx, [r14 + r14]
mov word [rcx + rax], di
mov qword [rbp + 0x10], rcx
jmp 0x14004e0a0
test r13b, r13b
je 0x14004e2a6
lea rax, [0x140119128]
mov qword [rbp + 0x18], rdi
mov qword [rbp + 8], rax
jmp 0x14004e2ad
mov rax, qword [rbp + 8]
mov word [rax], di
mov qword [rbp + 0x10], rdi
lea r8, [0x1400e245c]
lea rdx, str.Out_of_memory.
jmp 0x14004e092
xor eax, eax
mov r13, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
movzx ecx, word [rsi]
call fcn.1400cc2ac
movzx r11d, ax
add r11d, 0xffffffbf
cmp r11d, 0x11
ja case.0x14004e309.67
lea rdx, [0x140000000]
movsxd rax, r11d
mov ebx, 0x80
mov ecx, dword [rdx + rax*4 + 0x4ead4]
add rcx, rdx
jmp rcx
mov edi, 0x40
jmp 0x14004e330
mov edi, 0x4000
jmp 0x14004e330
mov edi, SafeArrayAllocDescriptor
jmp 0x14004e330
mov edi, 0x8000
jmp 0x14004e330
mov edi, ebx
jmp 0x14004e330
mov edi, 0x100
cmp word [rbp], 0
je 0x14004e341
mov rcx, rbp
call fcn.140081ef0
jmp 0x14004e347
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
test eax, eax
je 0x14004e3a8
mov r8d, eax
xor edx, edx
mov ecx, 0x200
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbp, rax
test rax, rax
je 0x14004e3a8
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1401182a0]
xor edi, edi
test ebx, ebx
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
cmovne edi, esi
mov edx, edi
call fcn.140001090
mov r13, qword [rsp + 0x70]
mov eax, 1
add rsp, 0x40
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rbp, qword [0x1401182a0]
movzx eax, byte [rbp + 0x23]
test al, al
je 0x14004e7fe
lea r12, [0x1400e24fc]
mov esi, 1
cmp qword [rbp + 8], r12
jne 0x14004e3d6
mov r13, qword [rbp + 0x10]
shr r13, 1
jmp 0x14004e3d9
mov r13, rsi
lea rcx, [r13 + 1]
lea rdi, [rcx + rcx]
cmp al, 2
je 0x14004e84b
mov r8, qword [0x140112480]
cmp rdi, r8
jbe 0x14004e3ff
cmp rdi, qword [rbp + 0x18]
ja 0x14004e86f
cmp rcx, 2
jb 0x14004e896
movzx eax, byte [rbp + 0x21]
test al, 2
je 0x14004e427
mov rcx, qword [rbp]
and al, 0x3d
mov byte [rbp + 0x21], al
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov r8, qword [0x140112480]
mov r9, qword [rbp + 0x18]
and byte [rbp + 0x21], 0x82
cmp rdi, r9
jbe 0x14004ea3f
movzx r10d, byte [rbp + 0x20]
movzx eax, r10b
cmp r10b, sil
jbe 0x14004e459
cmp al, 2
je 0x14004e472
mov rbx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x30]
jmp 0x14004ea33
cmp rdi, rbx
ja 0x14004e472
cmp rdi, 8
ja 0x14004e64d
mov ebx, 8
jmp 0x14004e659
cmp rdi, 0x20
jae 0x14004e482
mov ebx, SafeArrayAllocDescriptor
jmp 0x14004e52c
mov ebx, 0x208
cmp rdi, rbx
jb 0x14004e52c
cmp rdi, 0x50000
jae 0x14004e4e8
pxor xmm0, xmm0
cvtsi2sd xmm0, rdi
test rdi, rdi
jns 0x14004e4af
addsd xmm0, qword [0x140100e18]
mulsd xmm0, qword [0x140100e50]
movsd xmm1, qword [0x140100e48]
xor ecx, ecx
comisd xmm0, xmm1
jbe 0x14004e4de
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x14004e4de
movabs rax, 0x8000000000000000
mov rcx, rax
cvttsd2si rbx, xmm0
add rbx, rcx
jmp 0x14004e52c
cmp rdi, 0x320000
jae 0x14004e4fa
lea rbx, [rdi + 0x8000]
jmp 0x14004e52c
cmp rdi, 0xc80000
jae 0x14004e525
movabs rax, 0x47ae147ae147ae15
mov rbx, rdi
mul rdi
sub rbx, rdx
shr rbx, 1
add rbx, rdx
shr rbx, 6
add rbx, rdi
jmp 0x14004e52c
lea rbx, [rdi + 0x20000]
cmp rbx, r8
cmova rbx, r8
cmp r10b, 2
jne 0x14004e54d
test r9, r9
je 0x14004e54d
mov rcx, qword [rbp + 8]
movzx edi, sil
call fcn.1400ca970
jmp 0x14004e550
xor dil, dil
test rbx, rbx
js 0x14004e566
mov rcx, rbx
call fcn.1400c9ed4
test rax, rax
jne 0x14004ea2f
test dil, dil
je 0x14004ea6d
lea rax, [0x140119128]
xor edi, edi
mov qword [rbp + 8], rax
mov qword [rbp + 0x18], rdi
jmp 0x14004ea76
mov rbp, qword [0x1401182a0]
movzx eax, byte [rbp + 0x23]
test al, al
je 0x14004e7fe
lea r12, [0x1400e24fc]
mov esi, 1
cmp qword [rbp + 8], r12
jne 0x14004e5b3
mov r13, qword [rbp + 0x10]
shr r13, 1
jmp 0x14004e5b6
mov r13, rsi
lea rcx, [r13 + 1]
lea rdi, [rcx + rcx]
cmp al, 2
je 0x14004e84b
mov r8, qword [0x140112480]
cmp rdi, r8
jbe 0x14004e5dc
cmp rdi, qword [rbp + 0x18]
ja 0x14004e86f
cmp rcx, 2
jb 0x14004e896
movzx eax, byte [rbp + 0x21]
test al, 2
je 0x14004e604
mov rcx, qword [rbp]
and al, 0x3d
mov byte [rbp + 0x21], al
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov r8, qword [0x140112480]
mov r9, qword [rbp + 0x18]
and byte [rbp + 0x21], 0x82
cmp rdi, r9
jbe 0x14004ea3f
movzx r10d, byte [rbp + 0x20]
movzx eax, r10b
cmp r10b, sil
jbe 0x14004e636
cmp al, 2
je 0x14004e673
mov rbx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x30]
jmp 0x14004ea33
mov ebx, 0x80
cmp rdi, rbx
ja 0x14004e673
cmp rdi, 8
ja 0x14004e64d
mov ebx, 8
jmp 0x14004e659
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
cmp rdi, rax
cmovbe rbx, rax
mov rcx, rbx
call fcn.1400a9920
test rax, rax
je 0x14004e92e
mov byte [rbp + 0x20], sil
jmp 0x14004ea33
cmp rdi, 0x20
jae 0x14004e683
mov ebx, SafeArrayAllocDescriptor
jmp 0x14004e72d
mov ebx, 0x208
cmp rdi, rbx
jb 0x14004e72d
cmp rdi, 0x50000
jae 0x14004e6e9
pxor xmm0, xmm0
cvtsi2sd xmm0, rdi
test rdi, rdi
jns 0x14004e6b0
addsd xmm0, qword [0x140100e18]
mulsd xmm0, qword [0x140100e50]
movsd xmm1, qword [0x140100e48]
xor ecx, ecx
comisd xmm0, xmm1
jbe 0x14004e6df
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x14004e6df
movabs rax, 0x8000000000000000
mov rcx, rax
cvttsd2si rbx, xmm0
add rbx, rcx
jmp 0x14004e72d
cmp rdi, 0x320000
jae 0x14004e6fb
lea rbx, [rdi + 0x8000]
jmp 0x14004e72d
cmp rdi, 0xc80000
jae 0x14004e726
movabs rax, 0x47ae147ae147ae15
mov rbx, rdi
mul rdi
sub rbx, rdx
shr rbx, 1
add rbx, rdx
shr rbx, 6
add rbx, rdi
jmp 0x14004e72d
lea rbx, [rdi + 0x20000]
cmp rbx, r8
cmova rbx, r8
cmp r10b, 2
jne 0x14004e74e
test r9, r9
je 0x14004e74e
mov rcx, qword [rbp + 8]
movzx edi, sil
call fcn.1400ca970
jmp 0x14004e751
xor dil, dil
test rbx, rbx
js 0x14004e767
mov rcx, rbx
call fcn.1400c9ed4
test rax, rax
jne 0x14004ea2f
test dil, dil
je 0x14004ea6d
lea rax, [0x140119128]
xor edi, edi
mov qword [rbp + 0x18], rdi
mov qword [rbp + 8], rax
jmp 0x14004ea76
mov rcx, rbp
call fcn.140081ef0
mov esi, eax
test eax, eax
je 0x14004e7ef
mov r8d, eax
xor edx, edx
mov ecx, 0x1f0fff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x14004e7ef
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1401182a0]
xor edi, edi
test ebx, ebx
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
cmovne edi, esi
mov edx, edi
call fcn.140001090
mov r13, qword [rsp + 0x70]
mov eax, 1
add rsp, 0x40
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rbp, qword [0x1401182a0]
movzx eax, byte [rbp + 0x23]
test al, al
jne 0x14004e821
mov rcx, qword [rbp + 0x10]
lea rdx, [0x1400e24fc]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
call fcn.1400b0a10
mov esi, eax
jmp 0x14004e0ad
lea r12, [0x1400e24fc]
mov esi, 1
cmp qword [rbp + 8], r12
jne 0x14004e83c
mov r13, qword [rbp + 0x10]
shr r13, 1
jmp 0x14004e83f
mov r13, rsi
lea rcx, [r13 + 1]
lea rdi, [rcx + rcx]
cmp al, 2
jne 0x14004e85d
mov rdx, r13
mov rcx, r12
call fcn.140006100
mov esi, eax
jmp 0x14004e0ad
mov r8, qword [0x140112480]
cmp rdi, r8
jbe 0x14004e890
cmp rdi, qword [rbp + 0x18]
jbe 0x14004e890
lea r8, [0x1400e245c]
lea rdx, str.Memory_limit_reached__see_MaxMem_in_the_help_file_.
lea rcx, [0x140119170]
call fcn.1400406a0
mov esi, eax
jmp 0x14004e0ad
cmp rcx, 2
jae 0x14004e8aa
xor r8d, r8d
mov rcx, rbp
lea edx, [r8 + 4]
call fcn.1400b10c0
jmp 0x14004e0ad
movzx eax, byte [rbp + 0x21]
test al, 2
je 0x14004e8c8
mov rcx, qword [rbp]
and al, 0x3d
mov byte [rbp + 0x21], al
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov r8, qword [0x140112480]
mov r9, qword [rbp + 0x18]
and byte [rbp + 0x21], 0x82
cmp rdi, r9
jbe 0x14004ea3f
movzx r10d, byte [rbp + 0x20]
movzx eax, r10b
cmp r10b, sil
jbe 0x14004e8fa
cmp al, 2
je 0x14004e937
mov rbx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x30]
jmp 0x14004ea33
mov ebx, 0x80
cmp rdi, rbx
ja 0x14004e937
cmp rdi, 8
ja 0x14004e911
mov ebx, 8
jmp 0x14004e91d
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
cmp rdi, rax
cmovbe rbx, rax
mov rcx, rbx
call fcn.1400a9920
test rax, rax
jne 0x14004e66a
xor edi, edi
mov esi, edi
jmp 0x14004e0ad
cmp rdi, 0x20
jae 0x14004e947
mov ebx, SafeArrayAllocDescriptor
jmp 0x14004e9f1
mov ebx, 0x208
cmp rdi, rbx
jb 0x14004e9f1
cmp rdi, 0x50000
jae 0x14004e9ad
pxor xmm0, xmm0
cvtsi2sd xmm0, rdi
test rdi, rdi
jns 0x14004e974
addsd xmm0, qword [0x140100e18]
mulsd xmm0, qword [0x140100e50]
movsd xmm1, qword [0x140100e48]
xor ecx, ecx
comisd xmm0, xmm1
jbe 0x14004e9a3
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x14004e9a3
movabs rax, 0x8000000000000000
mov rcx, rax
cvttsd2si rbx, xmm0
add rbx, rcx
jmp 0x14004e9f1
cmp rdi, 0x320000
jae 0x14004e9bf
lea rbx, [rdi + 0x8000]
jmp 0x14004e9f1
cmp rdi, 0xc80000
jae 0x14004e9ea
movabs rax, 0x47ae147ae147ae15
mov rbx, rdi
mul rdi
sub rbx, rdx
shr rbx, 1
add rbx, rdx
shr rbx, 6
add rbx, rdi
jmp 0x14004e9f1
lea rbx, [rdi + 0x20000]
cmp rbx, r8
cmova rbx, r8
cmp r10b, 2
jne 0x14004ea12
test r9, r9
je 0x14004ea12
mov rcx, qword [rbp + 8]
movzx edi, sil
call fcn.1400ca970
jmp 0x14004ea15
xor dil, dil
test rbx, rbx
js 0x14004e767
mov rcx, rbx
call fcn.1400c9ed4
test rax, rax
je 0x14004e767
mov byte [rbp + 0x20], 2
mov qword [rbp + 8], rax
mov qword [rbp + 0x18], rbx
and byte [rbp + 0x21], 0x7f
mov rcx, qword [rbp + 8]
cmp rcx, r12
je 0x14004ea55
lea r8, [r13 + r13]
mov rdx, r12
call fcn.1400cab30
mov rax, qword [rbp + 8]
lea rcx, [r13 + r13]
xor edi, edi
mov word [rcx + rax], di
mov qword [rbp + 0x10], rcx
jmp 0x14004e0ad
mov rax, qword [rbp + 8]
xor edi, edi
mov word [rax], di
lea r8, [0x1400e245c]
lea rdx, str.Out_of_memory.
lea rcx, [0x140119170]
mov qword [rbp + 0x10], rdi
call fcn.1400406a0
mov esi, eax
jmp 0x14004e0ad
cmp word [rbp], 0
je 0x14004eaac
mov rcx, rbp
call fcn.140081ef0
jmp 0x14004eab2
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov rcx, qword [0x1401182a0]
mov edx, eax
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.140001090
mov eax, 1
add rsp, 0x40
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret