Function at 0x14004dc70
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.140042f00
movsxd rbx, eax
test eax, eax
jne 0x14004dcb5
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.1400401a0
cmp ebx, 1
je 0x14004e80b
mov qword [rsp + 0x70], r13
cmp ebx, 2
je 0x14004e4f6
cmp ebx, 3
je 0x14004e046
jle 0x14004e034
cmp ebx, 5
jg 0x14004e034
xor edi, edi
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x80], r15
cmp word [rsi], di
je 0x14004dd1b
mov rcx, rsi
xor r12b, r12b
call fcn.14001bff0
mulsd xmm0, qword [0x140100dc8]
cvttsd2si r13d, xmm0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r14d, eax
jmp 0x14004dd26
mov r14d, dword [rsp + 0x30]
mov r12b, 1
mov r13d, edi
mov r15, rbx
mov esi, 1
nop
mov rcx, rbp
call fcn.140081b30
mov ebx, eax
cmp r15, 4
jne 0x14004dd5b
test eax, eax
je 0x14004dd5f
mov rcx, qword [0x140118280]
mov rdx, rbx
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.140001090
jmp 0x14004de10
test eax, eax
je 0x14004dd83
test r12b, r12b
jne 0x14004dd75
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [r14 + r13]
sub ecx, eax
cmp ecx, 5
jle 0x14004dd44
mov edx, esi
mov ecx, 0x64
call fcn.140001ac0
jmp 0x14004dd30
mov rbp, qword [0x140118280]
movzx eax, byte [rbp + 0x23]
test al, al
jne 0x14004ddb0
mov rcx, qword [rbp + 0x10]
lea rdx, [0x1400e24fc]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov byte [rsp + 0x20], sil
call fcn.1400b04d0
jmp 0x14004de0e
lea r12, [0x1400e24fc]
cmp qword [rbp + 8], r12
jne 0x14004ddc6
mov r14, qword [rbp + 0x10]
shr r14, 1
jmp 0x14004ddc9
mov r14, rsi
lea rcx, [r14 + 1]
lea r13, [rcx + rcx]
cmp al, 2
jne 0x14004dde2
mov rdx, r14
mov rcx, r12
call fcn.140006120
jmp 0x14004de0e
mov r8, qword [0x140112460]
cmp r13, r8
jbe 0x14004de2f
cmp r13, qword [rbp + 0x18]
jbe 0x14004de2f
lea r8, [0x1400e245c]
lea rdx, str.Memory_limit_reached__see_MaxMem_in_the_help_file_.
lea rcx, [0x140119150]
call fcn.1400404f0
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 0x14004de46
xor r8d, r8d
mov rcx, rbp
lea edx, [r8 + 4]
call fcn.1400b0b80
jmp 0x14004de10
movzx eax, byte [rbp + 0x21]
test al, 2
je 0x14004de64
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 [0x140112460]
mov r9, qword [rbp + 0x18]
and byte [rbp + 0x21], 0x82
cmp r13, r9
jbe 0x14004dfd6
movzx r10d, byte [rbp + 0x20]
movzx eax, r10b
cmp r10b, sil
jbe 0x14004de96
cmp al, 2
je 0x14004ded6
mov rbx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x30]
jmp 0x14004dfca
mov ebx, 0x80
cmp r13, rbx
ja 0x14004ded6
cmp r13, 8
ja 0x14004dead
mov ebx, 8
jmp 0x14004deb9
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
cmp r13, rax
cmovbe rbx, rax
mov rcx, rbx
call fcn.1400a9650
test rax, rax
jne 0x14004decd
mov esi, edi
jmp 0x14004de10
mov byte [rbp + 0x20], sil
jmp 0x14004dfca
cmp r13, 0x20
jae 0x14004dee6
mov ebx, SafeArrayAllocDescriptor
jmp 0x14004df90
mov ebx, 0x208
cmp r13, rbx
jb 0x14004df90
cmp r13, 0x50000
jae 0x14004df4c
pxor xmm0, xmm0
cvtsi2sd xmm0, r13
test r13, r13
jns 0x14004df13
addsd xmm0, qword [0x140100da8]
mulsd xmm0, qword [0x140100de0]
movsd xmm1, qword [0x140100dd8]
xor ecx, ecx
comisd xmm0, xmm1
jbe 0x14004df42
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x14004df42
movabs rax, 0x8000000000000000
mov rcx, rax
cvttsd2si rbx, xmm0
add rbx, rcx
jmp 0x14004df90
cmp r13, 0x320000
jae 0x14004df5e
lea rbx, [r13 + 0x8000]
jmp 0x14004df90
cmp r13, 0xc80000
jae 0x14004df89
movabs rax, 0x47ae147ae147ae15
mov rbx, r13
mul r13
sub rbx, rdx
shr rbx, 1
add rbx, rdx
shr rbx, 6
add rbx, r13
jmp 0x14004df90
lea rbx, [r13 + 0x20000]
cmp rbx, r8
cmova rbx, r8
cmp r10b, 2
jne 0x14004dfb1
test r9, r9
je 0x14004dfb1
mov rcx, qword [rbp + 8]
movzx r13d, sil
call fcn.1400ca390
jmp 0x14004dfb4
xor r13b, r13b
test rbx, rbx
js 0x14004e000
mov rcx, rbx
call fcn.1400c98f4
test rax, rax
je 0x14004e000
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 0x14004dfeb
lea r8, [r14 + r14]
mov rdx, r12
call fcn.1400ca550
mov rax, qword [rbp + 8]
lea rcx, [r14 + r14]
mov word [rcx + rax], di
mov qword [rbp + 0x10], rcx
jmp 0x14004de10
test r13b, r13b
je 0x14004e016
lea rax, [0x140119108]
mov qword [rbp + 0x18], rdi
mov qword [rbp + 8], rax
jmp 0x14004e01d
mov rax, qword [rbp + 8]
mov word [rax], di
mov qword [rbp + 0x10], rdi
lea r8, [0x1400e245c]
lea rdx, str.Out_of_memory.
jmp 0x14004de02
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.1400cbccc
movzx r11d, ax
add r11d, 0xffffffbf
cmp r11d, 0x11
ja case.0x14004e079.67
lea rdx, [0x140000000]
movsxd rax, r11d
mov ebx, 0x80
mov ecx, dword [rdx + rax*4 + 0x4e844]
add rcx, rdx
jmp rcx
mov edi, 0x40
jmp 0x14004e0a0
mov edi, 0x4000
jmp 0x14004e0a0
mov edi, SafeArrayAllocDescriptor
jmp 0x14004e0a0
mov edi, 0x8000
jmp 0x14004e0a0
mov edi, ebx
jmp 0x14004e0a0
mov edi, 0x100
cmp word [rbp], 0
je 0x14004e0b1
mov rcx, rbp
call fcn.140081b30
jmp 0x14004e0b7
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
test eax, eax
je 0x14004e118
mov r8d, eax
xor edx, edx
mov ecx, 0x200
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbp, rax
test rax, rax
je 0x14004e118
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 [0x140118280]
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 [0x140118280]
movzx eax, byte [rbp + 0x23]
test al, al
je 0x14004e56e
lea r12, [0x1400e24fc]
mov esi, 1
cmp qword [rbp + 8], r12
jne 0x14004e146
mov r13, qword [rbp + 0x10]
shr r13, 1
jmp 0x14004e149
mov r13, rsi
lea rcx, [r13 + 1]
lea rdi, [rcx + rcx]
cmp al, 2
je 0x14004e5bb
mov r8, qword [0x140112460]
cmp rdi, r8
jbe 0x14004e16f
cmp rdi, qword [rbp + 0x18]
ja 0x14004e5df
cmp rcx, 2
jb 0x14004e606
movzx eax, byte [rbp + 0x21]
test al, 2
je 0x14004e197
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 [0x140112460]
mov r9, qword [rbp + 0x18]
and byte [rbp + 0x21], 0x82
cmp rdi, r9
jbe 0x14004e7af
movzx r10d, byte [rbp + 0x20]
movzx eax, r10b
cmp r10b, sil
jbe 0x14004e1c9
cmp al, 2
je 0x14004e1e2
mov rbx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x30]
jmp 0x14004e7a3
cmp rdi, rbx
ja 0x14004e1e2
cmp rdi, 8
ja 0x14004e3bd
mov ebx, 8
jmp 0x14004e3c9
cmp rdi, 0x20
jae 0x14004e1f2
mov ebx, SafeArrayAllocDescriptor
jmp 0x14004e29c
mov ebx, 0x208
cmp rdi, rbx
jb 0x14004e29c
cmp rdi, 0x50000
jae 0x14004e258
pxor xmm0, xmm0
cvtsi2sd xmm0, rdi
test rdi, rdi
jns 0x14004e21f
addsd xmm0, qword [0x140100da8]
mulsd xmm0, qword [0x140100de0]
movsd xmm1, qword [0x140100dd8]
xor ecx, ecx
comisd xmm0, xmm1
jbe 0x14004e24e
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x14004e24e
movabs rax, 0x8000000000000000
mov rcx, rax
cvttsd2si rbx, xmm0
add rbx, rcx
jmp 0x14004e29c
cmp rdi, 0x320000
jae 0x14004e26a
lea rbx, [rdi + 0x8000]
jmp 0x14004e29c
cmp rdi, 0xc80000
jae 0x14004e295
movabs rax, 0x47ae147ae147ae15
mov rbx, rdi
mul rdi
sub rbx, rdx
shr rbx, 1
add rbx, rdx
shr rbx, 6
add rbx, rdi
jmp 0x14004e29c
lea rbx, [rdi + 0x20000]
cmp rbx, r8
cmova rbx, r8
cmp r10b, 2
jne 0x14004e2bd
test r9, r9
je 0x14004e2bd
mov rcx, qword [rbp + 8]
movzx edi, sil
call fcn.1400ca390
jmp 0x14004e2c0
xor dil, dil
test rbx, rbx
js 0x14004e2d6
mov rcx, rbx
call fcn.1400c98f4
test rax, rax
jne 0x14004e79f
test dil, dil
je 0x14004e7dd
lea rax, [0x140119108]
xor edi, edi
mov qword [rbp + 8], rax
mov qword [rbp + 0x18], rdi
jmp 0x14004e7e6
mov rbp, qword [0x140118280]
movzx eax, byte [rbp + 0x23]
test al, al
je 0x14004e56e
lea r12, [0x1400e24fc]
mov esi, 1
cmp qword [rbp + 8], r12
jne 0x14004e323
mov r13, qword [rbp + 0x10]
shr r13, 1
jmp 0x14004e326
mov r13, rsi
lea rcx, [r13 + 1]
lea rdi, [rcx + rcx]
cmp al, 2
je 0x14004e5bb
mov r8, qword [0x140112460]
cmp rdi, r8
jbe 0x14004e34c
cmp rdi, qword [rbp + 0x18]
ja 0x14004e5df
cmp rcx, 2
jb 0x14004e606
movzx eax, byte [rbp + 0x21]
test al, 2
je 0x14004e374
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 [0x140112460]
mov r9, qword [rbp + 0x18]
and byte [rbp + 0x21], 0x82
cmp rdi, r9
jbe 0x14004e7af
movzx r10d, byte [rbp + 0x20]
movzx eax, r10b
cmp r10b, sil
jbe 0x14004e3a6
cmp al, 2
je 0x14004e3e3
mov rbx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x30]
jmp 0x14004e7a3
mov ebx, 0x80
cmp rdi, rbx
ja 0x14004e3e3
cmp rdi, 8
ja 0x14004e3bd
mov ebx, 8
jmp 0x14004e3c9
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
cmp rdi, rax
cmovbe rbx, rax
mov rcx, rbx
call fcn.1400a9650
test rax, rax
je 0x14004e69e
mov byte [rbp + 0x20], sil
jmp 0x14004e7a3
cmp rdi, 0x20
jae 0x14004e3f3
mov ebx, SafeArrayAllocDescriptor
jmp 0x14004e49d
mov ebx, 0x208
cmp rdi, rbx
jb 0x14004e49d
cmp rdi, 0x50000
jae 0x14004e459
pxor xmm0, xmm0
cvtsi2sd xmm0, rdi
test rdi, rdi
jns 0x14004e420
addsd xmm0, qword [0x140100da8]
mulsd xmm0, qword [0x140100de0]
movsd xmm1, qword [0x140100dd8]
xor ecx, ecx
comisd xmm0, xmm1
jbe 0x14004e44f
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x14004e44f
movabs rax, 0x8000000000000000
mov rcx, rax
cvttsd2si rbx, xmm0
add rbx, rcx
jmp 0x14004e49d
cmp rdi, 0x320000
jae 0x14004e46b
lea rbx, [rdi + 0x8000]
jmp 0x14004e49d
cmp rdi, 0xc80000
jae 0x14004e496
movabs rax, 0x47ae147ae147ae15
mov rbx, rdi
mul rdi
sub rbx, rdx
shr rbx, 1
add rbx, rdx
shr rbx, 6
add rbx, rdi
jmp 0x14004e49d
lea rbx, [rdi + 0x20000]
cmp rbx, r8
cmova rbx, r8
cmp r10b, 2
jne 0x14004e4be
test r9, r9
je 0x14004e4be
mov rcx, qword [rbp + 8]
movzx edi, sil
call fcn.1400ca390
jmp 0x14004e4c1
xor dil, dil
test rbx, rbx
js 0x14004e4d7
mov rcx, rbx
call fcn.1400c98f4
test rax, rax
jne 0x14004e79f
test dil, dil
je 0x14004e7dd
lea rax, [0x140119108]
xor edi, edi
mov qword [rbp + 0x18], rdi
mov qword [rbp + 8], rax
jmp 0x14004e7e6
mov rcx, rbp
call fcn.140081b30
mov esi, eax
test eax, eax
je 0x14004e55f
mov r8d, eax
xor edx, edx
mov ecx, 0x1f0fff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x14004e55f
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 [0x140118280]
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 [0x140118280]
movzx eax, byte [rbp + 0x23]
test al, al
jne 0x14004e591
mov rcx, qword [rbp + 0x10]
lea rdx, [0x1400e24fc]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
call fcn.1400b04d0
mov esi, eax
jmp 0x14004de1d
lea r12, [0x1400e24fc]
mov esi, 1
cmp qword [rbp + 8], r12
jne 0x14004e5ac
mov r13, qword [rbp + 0x10]
shr r13, 1
jmp 0x14004e5af
mov r13, rsi
lea rcx, [r13 + 1]
lea rdi, [rcx + rcx]
cmp al, 2
jne 0x14004e5cd
mov rdx, r13
mov rcx, r12
call fcn.140006120
mov esi, eax
jmp 0x14004de1d
mov r8, qword [0x140112460]
cmp rdi, r8
jbe 0x14004e600
cmp rdi, qword [rbp + 0x18]
jbe 0x14004e600
lea r8, [0x1400e245c]
lea rdx, str.Memory_limit_reached__see_MaxMem_in_the_help_file_.
lea rcx, [0x140119150]
call fcn.1400404f0
mov esi, eax
jmp 0x14004de1d
cmp rcx, 2
jae 0x14004e61a
xor r8d, r8d
mov rcx, rbp
lea edx, [r8 + 4]
call fcn.1400b0b80
jmp 0x14004de1d
movzx eax, byte [rbp + 0x21]
test al, 2
je 0x14004e638
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 [0x140112460]
mov r9, qword [rbp + 0x18]
and byte [rbp + 0x21], 0x82
cmp rdi, r9
jbe 0x14004e7af
movzx r10d, byte [rbp + 0x20]
movzx eax, r10b
cmp r10b, sil
jbe 0x14004e66a
cmp al, 2
je 0x14004e6a7
mov rbx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x30]
jmp 0x14004e7a3
mov ebx, 0x80
cmp rdi, rbx
ja 0x14004e6a7
cmp rdi, 8
ja 0x14004e681
mov ebx, 8
jmp 0x14004e68d
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
cmp rdi, rax
cmovbe rbx, rax
mov rcx, rbx
call fcn.1400a9650
test rax, rax
jne 0x14004e3da
xor edi, edi
mov esi, edi
jmp 0x14004de1d
cmp rdi, 0x20
jae 0x14004e6b7
mov ebx, SafeArrayAllocDescriptor
jmp 0x14004e761
mov ebx, 0x208
cmp rdi, rbx
jb 0x14004e761
cmp rdi, 0x50000
jae 0x14004e71d
pxor xmm0, xmm0
cvtsi2sd xmm0, rdi
test rdi, rdi
jns 0x14004e6e4
addsd xmm0, qword [0x140100da8]
mulsd xmm0, qword [0x140100de0]
movsd xmm1, qword [0x140100dd8]
xor ecx, ecx
comisd xmm0, xmm1
jbe 0x14004e713
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x14004e713
movabs rax, 0x8000000000000000
mov rcx, rax
cvttsd2si rbx, xmm0
add rbx, rcx
jmp 0x14004e761
cmp rdi, 0x320000
jae 0x14004e72f
lea rbx, [rdi + 0x8000]
jmp 0x14004e761
cmp rdi, 0xc80000
jae 0x14004e75a
movabs rax, 0x47ae147ae147ae15
mov rbx, rdi
mul rdi
sub rbx, rdx
shr rbx, 1
add rbx, rdx
shr rbx, 6
add rbx, rdi
jmp 0x14004e761
lea rbx, [rdi + 0x20000]
cmp rbx, r8
cmova rbx, r8
cmp r10b, 2
jne 0x14004e782
test r9, r9
je 0x14004e782
mov rcx, qword [rbp + 8]
movzx edi, sil
call fcn.1400ca390
jmp 0x14004e785
xor dil, dil
test rbx, rbx
js 0x14004e4d7
mov rcx, rbx
call fcn.1400c98f4
test rax, rax
je 0x14004e4d7
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 0x14004e7c5
lea r8, [r13 + r13]
mov rdx, r12
call fcn.1400ca550
mov rax, qword [rbp + 8]
lea rcx, [r13 + r13]
xor edi, edi
mov word [rcx + rax], di
mov qword [rbp + 0x10], rcx
jmp 0x14004de1d
mov rax, qword [rbp + 8]
xor edi, edi
mov word [rax], di
lea r8, [0x1400e245c]
lea rdx, str.Out_of_memory.
lea rcx, [0x140119150]
mov qword [rbp + 0x10], rdi
call fcn.1400404f0
mov esi, eax
jmp 0x14004de1d
cmp word [rbp], 0
je 0x14004e81c
mov rcx, rbp
call fcn.140081b30
jmp 0x14004e822
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov rcx, qword [0x140118280]
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