Function at 0x14004d820
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.140042bf0
movsxd rbx, eax
test eax, eax
jne 0x14004d865
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.14003fe90
cmp ebx, 1
je 0x14004e3bb
mov qword [rsp + 0x70], r13
cmp ebx, 2
je 0x14004e0a6
cmp ebx, 3
je 0x14004dbf6
jle 0x14004dbe4
cmp ebx, 5
jg 0x14004dbe4
xor edi, edi
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x80], r15
cmp word [rsi], di
je 0x14004d8cb
mov rcx, rsi
xor r12b, r12b
call fcn.14001bba0
mulsd xmm0, qword [0x1400ffd78]
cvttsd2si r13d, xmm0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r14d, eax
jmp 0x14004d8d6
mov r14d, dword [rsp + 0x30]
mov r12b, 1
mov r13d, edi
mov r15, rbx
mov esi, 1
nop
mov rcx, rbp
call fcn.1400813c0
mov ebx, eax
cmp r15, 4
jne 0x14004d90b
test eax, eax
je 0x14004d90f
mov rcx, qword [0x140117318]
mov rdx, rbx
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.140001090
jmp 0x14004d9c0
test eax, eax
je 0x14004d933
test r12b, r12b
jne 0x14004d925
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [r14 + r13]
sub ecx, eax
cmp ecx, 5
jle 0x14004d8f4
mov edx, esi
mov ecx, 0x64
call fcn.140001a70
jmp 0x14004d8e0
mov rbp, qword [0x140117318]
movzx eax, byte [rbp + 0x23]
test al, al
jne 0x14004d960
mov rcx, qword [rbp + 0x10]
lea rdx, [0x1400e14fc]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov byte [rsp + 0x20], sil
call fcn.1400afc70
jmp 0x14004d9be
lea r12, [0x1400e14fc]
cmp qword [rbp + 8], r12
jne 0x14004d976
mov r14, qword [rbp + 0x10]
shr r14, 1
jmp 0x14004d979
mov r14, rsi
lea rcx, [r14 + 1]
lea r13, [rcx + rcx]
cmp al, 2
jne 0x14004d992
mov rdx, r14
mov rcx, r12
call fcn.1400060a0
jmp 0x14004d9be
mov r8, qword [0x140111460]
cmp r13, r8
jbe 0x14004d9df
cmp r13, qword [rbp + 0x18]
jbe 0x14004d9df
lea r8, [0x1400e14ec]
lea rdx, str.Memory_limit_reached__see_MaxMem_in_the_help_file_.
lea rcx, [0x1401181e0]
call fcn.1400401e0
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 0x14004d9f6
xor r8d, r8d
mov rcx, rbp
lea edx, [r8 + 4]
call fcn.1400b0320
jmp 0x14004d9c0
movzx eax, byte [rbp + 0x21]
test al, 2
je 0x14004da14
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 [0x140111460]
mov r9, qword [rbp + 0x18]
and byte [rbp + 0x21], 0x82
cmp r13, r9
jbe 0x14004db86
movzx r10d, byte [rbp + 0x20]
movzx eax, r10b
cmp r10b, sil
jbe 0x14004da46
cmp al, 2
je 0x14004da86
mov rbx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x30]
jmp 0x14004db7a
mov ebx, 0x80
cmp r13, rbx
ja 0x14004da86
cmp r13, 8
ja 0x14004da5d
mov ebx, 8
jmp 0x14004da69
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
cmp r13, rax
cmovbe rbx, rax
mov rcx, rbx
call fcn.1400a8f20
test rax, rax
jne 0x14004da7d
mov esi, edi
jmp 0x14004d9c0
mov byte [rbp + 0x20], sil
jmp 0x14004db7a
cmp r13, 0x20
jae 0x14004da96
mov ebx, SafeArrayAllocDescriptor
jmp 0x14004db40
mov ebx, 0x208
cmp r13, rbx
jb 0x14004db40
cmp r13, 0x50000
jae 0x14004dafc
pxor xmm0, xmm0
cvtsi2sd xmm0, r13
test r13, r13
jns 0x14004dac3
addsd xmm0, qword [0x1400ffd58]
mulsd xmm0, qword [0x1400ffd90]
movsd xmm1, qword [0x1400ffd88]
xor ecx, ecx
comisd xmm0, xmm1
jbe 0x14004daf2
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x14004daf2
movabs rax, 0x8000000000000000
mov rcx, rax
cvttsd2si rbx, xmm0
add rbx, rcx
jmp 0x14004db40
cmp r13, 0x320000
jae 0x14004db0e
lea rbx, [r13 + 0x8000]
jmp 0x14004db40
cmp r13, 0xc80000
jae 0x14004db39
movabs rax, 0x47ae147ae147ae15
mov rbx, r13
mul r13
sub rbx, rdx
shr rbx, 1
add rbx, rdx
shr rbx, 6
add rbx, r13
jmp 0x14004db40
lea rbx, [r13 + 0x20000]
cmp rbx, r8
cmova rbx, r8
cmp r10b, 2
jne 0x14004db61
test r9, r9
je 0x14004db61
mov rcx, qword [rbp + 8]
movzx r13d, sil
call fcn.1400c9b30
jmp 0x14004db64
xor r13b, r13b
test rbx, rbx
js 0x14004dbb0
mov rcx, rbx
call fcn.1400c9094
test rax, rax
je 0x14004dbb0
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 0x14004db9b
lea r8, [r14 + r14]
mov rdx, r12
call fcn.1400c9cf0
mov rax, qword [rbp + 8]
lea rcx, [r14 + r14]
mov word [rcx + rax], di
mov qword [rbp + 0x10], rcx
jmp 0x14004d9c0
test r13b, r13b
je 0x14004dbc6
lea rax, [0x140118198]
mov qword [rbp + 0x18], rdi
mov qword [rbp + 8], rax
jmp 0x14004dbcd
mov rax, qword [rbp + 8]
mov word [rax], di
mov qword [rbp + 0x10], rdi
lea r8, [0x1400e14ec]
lea rdx, str.Out_of_memory.
jmp 0x14004d9b2
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.1400cb46c
movzx r11d, ax
add r11d, 0xffffffbf
cmp r11d, 0x11
ja case.0x14004dc29.67
lea rdx, [0x140000000]
movsxd rax, r11d
mov ebx, 0x80
mov ecx, dword [rdx + rax*4 + 0x4e3f4]
add rcx, rdx
jmp rcx
mov edi, 0x40
jmp 0x14004dc50
mov edi, 0x4000
jmp 0x14004dc50
mov edi, SafeArrayAllocDescriptor
jmp 0x14004dc50
mov edi, 0x8000
jmp 0x14004dc50
mov edi, ebx
jmp 0x14004dc50
mov edi, 0x100
cmp word [rbp], 0
je 0x14004dc61
mov rcx, rbp
call fcn.1400813c0
jmp 0x14004dc67
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
test eax, eax
je 0x14004dcc8
mov r8d, eax
xor edx, edx
mov ecx, 0x200
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbp, rax
test rax, rax
je 0x14004dcc8
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 [0x140117318]
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 [0x140117318]
movzx eax, byte [rbp + 0x23]
test al, al
je 0x14004e11e
lea r12, [0x1400e14fc]
mov esi, 1
cmp qword [rbp + 8], r12
jne 0x14004dcf6
mov r13, qword [rbp + 0x10]
shr r13, 1
jmp 0x14004dcf9
mov r13, rsi
lea rcx, [r13 + 1]
lea rdi, [rcx + rcx]
cmp al, 2
je 0x14004e16b
mov r8, qword [0x140111460]
cmp rdi, r8
jbe 0x14004dd1f
cmp rdi, qword [rbp + 0x18]
ja 0x14004e18f
cmp rcx, 2
jb 0x14004e1b6
movzx eax, byte [rbp + 0x21]
test al, 2
je 0x14004dd47
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 [0x140111460]
mov r9, qword [rbp + 0x18]
and byte [rbp + 0x21], 0x82
cmp rdi, r9
jbe 0x14004e35f
movzx r10d, byte [rbp + 0x20]
movzx eax, r10b
cmp r10b, sil
jbe 0x14004dd79
cmp al, 2
je 0x14004dd92
mov rbx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x30]
jmp 0x14004e353
cmp rdi, rbx
ja 0x14004dd92
cmp rdi, 8
ja 0x14004df6d
mov ebx, 8
jmp 0x14004df79
cmp rdi, 0x20
jae 0x14004dda2
mov ebx, SafeArrayAllocDescriptor
jmp 0x14004de4c
mov ebx, 0x208
cmp rdi, rbx
jb 0x14004de4c
cmp rdi, 0x50000
jae 0x14004de08
pxor xmm0, xmm0
cvtsi2sd xmm0, rdi
test rdi, rdi
jns 0x14004ddcf
addsd xmm0, qword [0x1400ffd58]
mulsd xmm0, qword [0x1400ffd90]
movsd xmm1, qword [0x1400ffd88]
xor ecx, ecx
comisd xmm0, xmm1
jbe 0x14004ddfe
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x14004ddfe
movabs rax, 0x8000000000000000
mov rcx, rax
cvttsd2si rbx, xmm0
add rbx, rcx
jmp 0x14004de4c
cmp rdi, 0x320000
jae 0x14004de1a
lea rbx, [rdi + 0x8000]
jmp 0x14004de4c
cmp rdi, 0xc80000
jae 0x14004de45
movabs rax, 0x47ae147ae147ae15
mov rbx, rdi
mul rdi
sub rbx, rdx
shr rbx, 1
add rbx, rdx
shr rbx, 6
add rbx, rdi
jmp 0x14004de4c
lea rbx, [rdi + 0x20000]
cmp rbx, r8
cmova rbx, r8
cmp r10b, 2
jne 0x14004de6d
test r9, r9
je 0x14004de6d
mov rcx, qword [rbp + 8]
movzx edi, sil
call fcn.1400c9b30
jmp 0x14004de70
xor dil, dil
test rbx, rbx
js 0x14004de86
mov rcx, rbx
call fcn.1400c9094
test rax, rax
jne 0x14004e34f
test dil, dil
je 0x14004e38d
lea rax, [0x140118198]
xor edi, edi
mov qword [rbp + 8], rax
mov qword [rbp + 0x18], rdi
jmp 0x14004e396
mov rbp, qword [0x140117318]
movzx eax, byte [rbp + 0x23]
test al, al
je 0x14004e11e
lea r12, [0x1400e14fc]
mov esi, 1
cmp qword [rbp + 8], r12
jne 0x14004ded3
mov r13, qword [rbp + 0x10]
shr r13, 1
jmp 0x14004ded6
mov r13, rsi
lea rcx, [r13 + 1]
lea rdi, [rcx + rcx]
cmp al, 2
je 0x14004e16b
mov r8, qword [0x140111460]
cmp rdi, r8
jbe 0x14004defc
cmp rdi, qword [rbp + 0x18]
ja 0x14004e18f
cmp rcx, 2
jb 0x14004e1b6
movzx eax, byte [rbp + 0x21]
test al, 2
je 0x14004df24
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 [0x140111460]
mov r9, qword [rbp + 0x18]
and byte [rbp + 0x21], 0x82
cmp rdi, r9
jbe 0x14004e35f
movzx r10d, byte [rbp + 0x20]
movzx eax, r10b
cmp r10b, sil
jbe 0x14004df56
cmp al, 2
je 0x14004df93
mov rbx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x30]
jmp 0x14004e353
mov ebx, 0x80
cmp rdi, rbx
ja 0x14004df93
cmp rdi, 8
ja 0x14004df6d
mov ebx, 8
jmp 0x14004df79
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
cmp rdi, rax
cmovbe rbx, rax
mov rcx, rbx
call fcn.1400a8f20
test rax, rax
je 0x14004e24e
mov byte [rbp + 0x20], sil
jmp 0x14004e353
cmp rdi, 0x20
jae 0x14004dfa3
mov ebx, SafeArrayAllocDescriptor
jmp 0x14004e04d
mov ebx, 0x208
cmp rdi, rbx
jb 0x14004e04d
cmp rdi, 0x50000
jae 0x14004e009
pxor xmm0, xmm0
cvtsi2sd xmm0, rdi
test rdi, rdi
jns 0x14004dfd0
addsd xmm0, qword [0x1400ffd58]
mulsd xmm0, qword [0x1400ffd90]
movsd xmm1, qword [0x1400ffd88]
xor ecx, ecx
comisd xmm0, xmm1
jbe 0x14004dfff
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x14004dfff
movabs rax, 0x8000000000000000
mov rcx, rax
cvttsd2si rbx, xmm0
add rbx, rcx
jmp 0x14004e04d
cmp rdi, 0x320000
jae 0x14004e01b
lea rbx, [rdi + 0x8000]
jmp 0x14004e04d
cmp rdi, 0xc80000
jae 0x14004e046
movabs rax, 0x47ae147ae147ae15
mov rbx, rdi
mul rdi
sub rbx, rdx
shr rbx, 1
add rbx, rdx
shr rbx, 6
add rbx, rdi
jmp 0x14004e04d
lea rbx, [rdi + 0x20000]
cmp rbx, r8
cmova rbx, r8
cmp r10b, 2
jne 0x14004e06e
test r9, r9
je 0x14004e06e
mov rcx, qword [rbp + 8]
movzx edi, sil
call fcn.1400c9b30
jmp 0x14004e071
xor dil, dil
test rbx, rbx
js 0x14004e087
mov rcx, rbx
call fcn.1400c9094
test rax, rax
jne 0x14004e34f
test dil, dil
je 0x14004e38d
lea rax, [0x140118198]
xor edi, edi
mov qword [rbp + 0x18], rdi
mov qword [rbp + 8], rax
jmp 0x14004e396
mov rcx, rbp
call fcn.1400813c0
mov esi, eax
test eax, eax
je 0x14004e10f
mov r8d, eax
xor edx, edx
mov ecx, 0x1f0fff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x14004e10f
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 [0x140117318]
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 [0x140117318]
movzx eax, byte [rbp + 0x23]
test al, al
jne 0x14004e141
mov rcx, qword [rbp + 0x10]
lea rdx, [0x1400e14fc]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
call fcn.1400afc70
mov esi, eax
jmp 0x14004d9cd
lea r12, [0x1400e14fc]
mov esi, 1
cmp qword [rbp + 8], r12
jne 0x14004e15c
mov r13, qword [rbp + 0x10]
shr r13, 1
jmp 0x14004e15f
mov r13, rsi
lea rcx, [r13 + 1]
lea rdi, [rcx + rcx]
cmp al, 2
jne 0x14004e17d
mov rdx, r13
mov rcx, r12
call fcn.1400060a0
mov esi, eax
jmp 0x14004d9cd
mov r8, qword [0x140111460]
cmp rdi, r8
jbe 0x14004e1b0
cmp rdi, qword [rbp + 0x18]
jbe 0x14004e1b0
lea r8, [0x1400e14ec]
lea rdx, str.Memory_limit_reached__see_MaxMem_in_the_help_file_.
lea rcx, [0x1401181e0]
call fcn.1400401e0
mov esi, eax
jmp 0x14004d9cd
cmp rcx, 2
jae 0x14004e1ca
xor r8d, r8d
mov rcx, rbp
lea edx, [r8 + 4]
call fcn.1400b0320
jmp 0x14004d9cd
movzx eax, byte [rbp + 0x21]
test al, 2
je 0x14004e1e8
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 [0x140111460]
mov r9, qword [rbp + 0x18]
and byte [rbp + 0x21], 0x82
cmp rdi, r9
jbe 0x14004e35f
movzx r10d, byte [rbp + 0x20]
movzx eax, r10b
cmp r10b, sil
jbe 0x14004e21a
cmp al, 2
je 0x14004e257
mov rbx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x30]
jmp 0x14004e353
mov ebx, 0x80
cmp rdi, rbx
ja 0x14004e257
cmp rdi, 8
ja 0x14004e231
mov ebx, 8
jmp 0x14004e23d
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
cmp rdi, rax
cmovbe rbx, rax
mov rcx, rbx
call fcn.1400a8f20
test rax, rax
jne 0x14004df8a
xor edi, edi
mov esi, edi
jmp 0x14004d9cd
cmp rdi, 0x20
jae 0x14004e267
mov ebx, SafeArrayAllocDescriptor
jmp 0x14004e311
mov ebx, 0x208
cmp rdi, rbx
jb 0x14004e311
cmp rdi, 0x50000
jae 0x14004e2cd
pxor xmm0, xmm0
cvtsi2sd xmm0, rdi
test rdi, rdi
jns 0x14004e294
addsd xmm0, qword [0x1400ffd58]
mulsd xmm0, qword [0x1400ffd90]
movsd xmm1, qword [0x1400ffd88]
xor ecx, ecx
comisd xmm0, xmm1
jbe 0x14004e2c3
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x14004e2c3
movabs rax, 0x8000000000000000
mov rcx, rax
cvttsd2si rbx, xmm0
add rbx, rcx
jmp 0x14004e311
cmp rdi, 0x320000
jae 0x14004e2df
lea rbx, [rdi + 0x8000]
jmp 0x14004e311
cmp rdi, 0xc80000
jae 0x14004e30a
movabs rax, 0x47ae147ae147ae15
mov rbx, rdi
mul rdi
sub rbx, rdx
shr rbx, 1
add rbx, rdx
shr rbx, 6
add rbx, rdi
jmp 0x14004e311
lea rbx, [rdi + 0x20000]
cmp rbx, r8
cmova rbx, r8
cmp r10b, 2
jne 0x14004e332
test r9, r9
je 0x14004e332
mov rcx, qword [rbp + 8]
movzx edi, sil
call fcn.1400c9b30
jmp 0x14004e335
xor dil, dil
test rbx, rbx
js 0x14004e087
mov rcx, rbx
call fcn.1400c9094
test rax, rax
je 0x14004e087
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 0x14004e375
lea r8, [r13 + r13]
mov rdx, r12
call fcn.1400c9cf0
mov rax, qword [rbp + 8]
lea rcx, [r13 + r13]
xor edi, edi
mov word [rcx + rax], di
mov qword [rbp + 0x10], rcx
jmp 0x14004d9cd
mov rax, qword [rbp + 8]
xor edi, edi
mov word [rax], di
lea r8, [0x1400e14ec]
lea rdx, str.Out_of_memory.
lea rcx, [0x1401181e0]
mov qword [rbp + 0x10], rdi
call fcn.1400401e0
mov esi, eax
jmp 0x14004d9cd
cmp word [rbp], 0
je 0x14004e3cc
mov rcx, rbp
call fcn.1400813c0
jmp 0x14004e3d2
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov rcx, qword [0x140117318]
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