Function at 0x14005b090
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.140026d20
movsxd rbx, eax
test eax, eax
jne 0x14005b0d5
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.14004e250
cmp ebx, 1
je 0x14005bc2b
mov qword [rsp + 0x70], r13
cmp ebx, 2
je 0x14005b916
cmp ebx, 3
je 0x14005b466
jle 0x14005b454
cmp ebx, 5
jg 0x14005b454
xor edi, edi
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x80], r15
cmp word [rsi], di
je 0x14005b13b
mov rcx, rsi
xor r12b, r12b
call fcn.140024340
mulsd xmm0, qword [0x140112058]
cvttsd2si r13d, xmm0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r14d, eax
jmp 0x14005b146
mov r14d, dword [rsp + 0x30]
mov r12b, 1
mov r13d, edi
mov r15, rbx
mov esi, 1
nop
mov rcx, rbp
call fcn.14008e8d0
mov ebx, eax
cmp r15, 4
jne 0x14005b17b
test eax, eax
je 0x14005b17f
mov rcx, qword [0x14012b628]
mov rdx, rbx
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.140001090
jmp 0x14005b230
test eax, eax
je 0x14005b1a3
test r12b, r12b
jne 0x14005b195
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [r14 + r13]
sub ecx, eax
cmp ecx, 5
jle 0x14005b164
mov edx, esi
mov ecx, WSAAsyncSelect
call fcn.140001b60
jmp 0x14005b150
mov rbp, qword [0x14012b628]
movzx eax, byte [rbp + 0x23]
test al, al
jne 0x14005b1d0
mov rcx, qword [rbp + 0x10]
lea rdx, [0x1400f1604]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov byte [rsp + 0x20], sil
call fcn.1400bd650
jmp 0x14005b22e
lea r12, [0x1400f1604]
cmp qword [rbp + 8], r12
jne 0x14005b1e6
mov r14, qword [rbp + 0x10]
shr r14, 1
jmp 0x14005b1e9
mov r14, rsi
lea rcx, [r14 + 1]
lea r13, [rcx + rcx]
cmp al, 2
jne 0x14005b202
mov rdx, r14
mov rcx, r12
call fcn.140006d20
jmp 0x14005b22e
mov r8, qword [0x1401255a0]
cmp r13, r8
jbe 0x14005b24f
cmp r13, qword [rbp + 0x18]
jbe 0x14005b24f
lea r8, [0x1400f1514]
lea rdx, str.Memory_limit_reached__see_MaxMem_in_the_help_file_.
lea rcx, [0x14012c5c0]
call fcn.14004e5e0
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 0x14005b266
xor r8d, r8d
mov rcx, rbp
lea edx, [r8 + 4]
call fcn.1400bdd00
jmp 0x14005b230
movzx eax, byte [rbp + 0x21]
test al, 2
je 0x14005b284
mov rcx, qword [rbp]
and al, 0x3d
mov byte [rbp + 0x21], al
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov r8, qword [0x1401255a0]
mov r9, qword [rbp + 0x18]
and byte [rbp + 0x21], 0x82
cmp r13, r9
jbe 0x14005b3f6
movzx r10d, byte [rbp + 0x20]
movzx eax, r10b
cmp r10b, sil
jbe 0x14005b2b6
cmp al, 2
je 0x14005b2f6
mov rbx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x30]
jmp 0x14005b3ea
mov ebx, 0x80
cmp r13, rbx
ja 0x14005b2f6
cmp r13, 8
ja 0x14005b2cd
mov ebx, 8
jmp 0x14005b2d9
mov eax, reloc.WSOCK32.dll_recv
cmp r13, rax
cmovbe rbx, rax
mov rcx, rbx
call fcn.1400b60b0
test rax, rax
jne 0x14005b2ed
mov esi, edi
jmp 0x14005b230
mov byte [rbp + 0x20], sil
jmp 0x14005b3ea
cmp r13, 0x20
jae 0x14005b306
mov ebx, SafeArrayAllocDescriptor
jmp 0x14005b3b0
mov ebx, 0x208
cmp r13, rbx
jb 0x14005b3b0
cmp r13, 0x50000
jae 0x14005b36c
pxor xmm0, xmm0
cvtsi2sd xmm0, r13
test r13, r13
jns 0x14005b333
addsd xmm0, qword [0x140112038]
mulsd xmm0, qword [0x140112070]
movsd xmm1, qword [0x140112068]
xor ecx, ecx
comisd xmm0, xmm1
jbe 0x14005b362
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x14005b362
movabs rax, 0x8000000000000000
mov rcx, rax
cvttsd2si rbx, xmm0
add rbx, rcx
jmp 0x14005b3b0
cmp r13, 0x320000
jae 0x14005b37e
lea rbx, [r13 + 0x8000]
jmp 0x14005b3b0
cmp r13, 0xc80000
jae 0x14005b3a9
movabs rax, 0x47ae147ae147ae15
mov rbx, r13
mul r13
sub rbx, rdx
shr rbx, 1
add rbx, rdx
shr rbx, 6
add rbx, r13
jmp 0x14005b3b0
lea rbx, [r13 + 0x20000]
cmp rbx, r8
cmova rbx, r8
cmp r10b, 2
jne 0x14005b3d1
test r9, r9
je 0x14005b3d1
mov rcx, qword [rbp + 8]
movzx r13d, sil
call fcn.1400d6fd8
jmp 0x14005b3d4
xor r13b, r13b
test rbx, rbx
js 0x14005b420
mov rcx, rbx
call fcn.1400d6f18
test rax, rax
je 0x14005b420
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 0x14005b40b
lea r8, [r14 + r14]
mov rdx, r12
call fcn.1400d7a40
mov rax, qword [rbp + 8]
lea rcx, [r14 + r14]
mov word [rcx + rax], di
mov qword [rbp + 0x10], rcx
jmp 0x14005b230
test r13b, r13b
je 0x14005b436
lea rax, [0x14012c4b8]
mov qword [rbp + 0x18], rdi
mov qword [rbp + 8], rax
jmp 0x14005b43d
mov rax, qword [rbp + 8]
mov word [rax], di
mov qword [rbp + 0x10], rdi
lea r8, [0x1400f1514]
lea rdx, str.Out_of_memory.
jmp 0x14005b222
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.1400d9934
movzx r11d, ax
add r11d, 0xffffffbf
cmp r11d, 0x11
ja case.0x14005b499.67
lea rdx, [0x140000000]
movsxd rax, r11d
mov ebx, 0x80
mov ecx, dword [rdx + rax*4 + 0x5bc64]
add rcx, rdx
jmp rcx
mov edi, 0x40
jmp 0x14005b4c0
mov edi, 0x4000
jmp 0x14005b4c0
mov edi, SafeArrayAllocDescriptor
jmp 0x14005b4c0
mov edi, 0x8000
jmp 0x14005b4c0
mov edi, ebx
jmp 0x14005b4c0
mov edi, 0x100
cmp word [rbp], 0
je 0x14005b4d1
mov rcx, rbp
call fcn.14008e8d0
jmp 0x14005b4d7
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
test eax, eax
je 0x14005b538
mov r8d, eax
xor edx, edx
mov ecx, 0x200
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbp, rax
test rax, rax
je 0x14005b538
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 [0x14012b628]
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 [0x14012b628]
movzx eax, byte [rbp + 0x23]
test al, al
je 0x14005b98e
lea r12, [0x1400f1604]
mov esi, 1
cmp qword [rbp + 8], r12
jne 0x14005b566
mov r13, qword [rbp + 0x10]
shr r13, 1
jmp 0x14005b569
mov r13, rsi
lea rcx, [r13 + 1]
lea rdi, [rcx + rcx]
cmp al, 2
je 0x14005b9db
mov r8, qword [0x1401255a0]
cmp rdi, r8
jbe 0x14005b58f
cmp rdi, qword [rbp + 0x18]
ja 0x14005b9ff
cmp rcx, 2
jb 0x14005ba26
movzx eax, byte [rbp + 0x21]
test al, 2
je 0x14005b5b7
mov rcx, qword [rbp]
and al, 0x3d
mov byte [rbp + 0x21], al
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov r8, qword [0x1401255a0]
mov r9, qword [rbp + 0x18]
and byte [rbp + 0x21], 0x82
cmp rdi, r9
jbe 0x14005bbcf
movzx r10d, byte [rbp + 0x20]
movzx eax, r10b
cmp r10b, sil
jbe 0x14005b5e9
cmp al, 2
je 0x14005b602
mov rbx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x30]
jmp 0x14005bbc3
cmp rdi, rbx
ja 0x14005b602
cmp rdi, 8
ja 0x14005b7dd
mov ebx, 8
jmp 0x14005b7e9
cmp rdi, 0x20
jae 0x14005b612
mov ebx, SafeArrayAllocDescriptor
jmp 0x14005b6bc
mov ebx, 0x208
cmp rdi, rbx
jb 0x14005b6bc
cmp rdi, 0x50000
jae 0x14005b678
pxor xmm0, xmm0
cvtsi2sd xmm0, rdi
test rdi, rdi
jns 0x14005b63f
addsd xmm0, qword [0x140112038]
mulsd xmm0, qword [0x140112070]
movsd xmm1, qword [0x140112068]
xor ecx, ecx
comisd xmm0, xmm1
jbe 0x14005b66e
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x14005b66e
movabs rax, 0x8000000000000000
mov rcx, rax
cvttsd2si rbx, xmm0
add rbx, rcx
jmp 0x14005b6bc
cmp rdi, 0x320000
jae 0x14005b68a
lea rbx, [rdi + 0x8000]
jmp 0x14005b6bc
cmp rdi, 0xc80000
jae 0x14005b6b5
movabs rax, 0x47ae147ae147ae15
mov rbx, rdi
mul rdi
sub rbx, rdx
shr rbx, 1
add rbx, rdx
shr rbx, 6
add rbx, rdi
jmp 0x14005b6bc
lea rbx, [rdi + 0x20000]
cmp rbx, r8
cmova rbx, r8
cmp r10b, 2
jne 0x14005b6dd
test r9, r9
je 0x14005b6dd
mov rcx, qword [rbp + 8]
movzx edi, sil
call fcn.1400d6fd8
jmp 0x14005b6e0
xor dil, dil
test rbx, rbx
js 0x14005b6f6
mov rcx, rbx
call fcn.1400d6f18
test rax, rax
jne 0x14005bbbf
test dil, dil
je 0x14005bbfd
lea rax, [0x14012c4b8]
xor edi, edi
mov qword [rbp + 8], rax
mov qword [rbp + 0x18], rdi
jmp 0x14005bc06
mov rbp, qword [0x14012b628]
movzx eax, byte [rbp + 0x23]
test al, al
je 0x14005b98e
lea r12, [0x1400f1604]
mov esi, 1
cmp qword [rbp + 8], r12
jne 0x14005b743
mov r13, qword [rbp + 0x10]
shr r13, 1
jmp 0x14005b746
mov r13, rsi
lea rcx, [r13 + 1]
lea rdi, [rcx + rcx]
cmp al, 2
je 0x14005b9db
mov r8, qword [0x1401255a0]
cmp rdi, r8
jbe 0x14005b76c
cmp rdi, qword [rbp + 0x18]
ja 0x14005b9ff
cmp rcx, 2
jb 0x14005ba26
movzx eax, byte [rbp + 0x21]
test al, 2
je 0x14005b794
mov rcx, qword [rbp]
and al, 0x3d
mov byte [rbp + 0x21], al
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov r8, qword [0x1401255a0]
mov r9, qword [rbp + 0x18]
and byte [rbp + 0x21], 0x82
cmp rdi, r9
jbe 0x14005bbcf
movzx r10d, byte [rbp + 0x20]
movzx eax, r10b
cmp r10b, sil
jbe 0x14005b7c6
cmp al, 2
je 0x14005b803
mov rbx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x30]
jmp 0x14005bbc3
mov ebx, 0x80
cmp rdi, rbx
ja 0x14005b803
cmp rdi, 8
ja 0x14005b7dd
mov ebx, 8
jmp 0x14005b7e9
mov eax, reloc.WSOCK32.dll_recv
cmp rdi, rax
cmovbe rbx, rax
mov rcx, rbx
call fcn.1400b60b0
test rax, rax
je 0x14005babe
mov byte [rbp + 0x20], sil
jmp 0x14005bbc3
cmp rdi, 0x20
jae 0x14005b813
mov ebx, SafeArrayAllocDescriptor
jmp 0x14005b8bd
mov ebx, 0x208
cmp rdi, rbx
jb 0x14005b8bd
cmp rdi, 0x50000
jae 0x14005b879
pxor xmm0, xmm0
cvtsi2sd xmm0, rdi
test rdi, rdi
jns 0x14005b840
addsd xmm0, qword [0x140112038]
mulsd xmm0, qword [0x140112070]
movsd xmm1, qword [0x140112068]
xor ecx, ecx
comisd xmm0, xmm1
jbe 0x14005b86f
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x14005b86f
movabs rax, 0x8000000000000000
mov rcx, rax
cvttsd2si rbx, xmm0
add rbx, rcx
jmp 0x14005b8bd
cmp rdi, 0x320000
jae 0x14005b88b
lea rbx, [rdi + 0x8000]
jmp 0x14005b8bd
cmp rdi, 0xc80000
jae 0x14005b8b6
movabs rax, 0x47ae147ae147ae15
mov rbx, rdi
mul rdi
sub rbx, rdx
shr rbx, 1
add rbx, rdx
shr rbx, 6
add rbx, rdi
jmp 0x14005b8bd
lea rbx, [rdi + 0x20000]
cmp rbx, r8
cmova rbx, r8
cmp r10b, 2
jne 0x14005b8de
test r9, r9
je 0x14005b8de
mov rcx, qword [rbp + 8]
movzx edi, sil
call fcn.1400d6fd8
jmp 0x14005b8e1
xor dil, dil
test rbx, rbx
js 0x14005b8f7
mov rcx, rbx
call fcn.1400d6f18
test rax, rax
jne 0x14005bbbf
test dil, dil
je 0x14005bbfd
lea rax, [0x14012c4b8]
xor edi, edi
mov qword [rbp + 0x18], rdi
mov qword [rbp + 8], rax
jmp 0x14005bc06
mov rcx, rbp
call fcn.14008e8d0
mov esi, eax
test eax, eax
je 0x14005b97f
mov r8d, eax
xor edx, edx
mov ecx, 0x1f0fff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x14005b97f
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 [0x14012b628]
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 [0x14012b628]
movzx eax, byte [rbp + 0x23]
test al, al
jne 0x14005b9b1
mov rcx, qword [rbp + 0x10]
lea rdx, [0x1400f1604]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
call fcn.1400bd650
mov esi, eax
jmp 0x14005b23d
lea r12, [0x1400f1604]
mov esi, 1
cmp qword [rbp + 8], r12
jne 0x14005b9cc
mov r13, qword [rbp + 0x10]
shr r13, 1
jmp 0x14005b9cf
mov r13, rsi
lea rcx, [r13 + 1]
lea rdi, [rcx + rcx]
cmp al, 2
jne 0x14005b9ed
mov rdx, r13
mov rcx, r12
call fcn.140006d20
mov esi, eax
jmp 0x14005b23d
mov r8, qword [0x1401255a0]
cmp rdi, r8
jbe 0x14005ba20
cmp rdi, qword [rbp + 0x18]
jbe 0x14005ba20
lea r8, [0x1400f1514]
lea rdx, str.Memory_limit_reached__see_MaxMem_in_the_help_file_.
lea rcx, [0x14012c5c0]
call fcn.14004e5e0
mov esi, eax
jmp 0x14005b23d
cmp rcx, 2
jae 0x14005ba3a
xor r8d, r8d
mov rcx, rbp
lea edx, [r8 + 4]
call fcn.1400bdd00
jmp 0x14005b23d
movzx eax, byte [rbp + 0x21]
test al, 2
je 0x14005ba58
mov rcx, qword [rbp]
and al, 0x3d
mov byte [rbp + 0x21], al
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov r8, qword [0x1401255a0]
mov r9, qword [rbp + 0x18]
and byte [rbp + 0x21], 0x82
cmp rdi, r9
jbe 0x14005bbcf
movzx r10d, byte [rbp + 0x20]
movzx eax, r10b
cmp r10b, sil
jbe 0x14005ba8a
cmp al, 2
je 0x14005bac7
mov rbx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x30]
jmp 0x14005bbc3
mov ebx, 0x80
cmp rdi, rbx
ja 0x14005bac7
cmp rdi, 8
ja 0x14005baa1
mov ebx, 8
jmp 0x14005baad
mov eax, reloc.WSOCK32.dll_recv
cmp rdi, rax
cmovbe rbx, rax
mov rcx, rbx
call fcn.1400b60b0
test rax, rax
jne 0x14005b7fa
xor edi, edi
mov esi, edi
jmp 0x14005b23d
cmp rdi, 0x20
jae 0x14005bad7
mov ebx, SafeArrayAllocDescriptor
jmp 0x14005bb81
mov ebx, 0x208
cmp rdi, rbx
jb 0x14005bb81
cmp rdi, 0x50000
jae 0x14005bb3d
pxor xmm0, xmm0
cvtsi2sd xmm0, rdi
test rdi, rdi
jns 0x14005bb04
addsd xmm0, qword [0x140112038]
mulsd xmm0, qword [0x140112070]
movsd xmm1, qword [0x140112068]
xor ecx, ecx
comisd xmm0, xmm1
jbe 0x14005bb33
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x14005bb33
movabs rax, 0x8000000000000000
mov rcx, rax
cvttsd2si rbx, xmm0
add rbx, rcx
jmp 0x14005bb81
cmp rdi, 0x320000
jae 0x14005bb4f
lea rbx, [rdi + 0x8000]
jmp 0x14005bb81
cmp rdi, 0xc80000
jae 0x14005bb7a
movabs rax, 0x47ae147ae147ae15
mov rbx, rdi
mul rdi
sub rbx, rdx
shr rbx, 1
add rbx, rdx
shr rbx, 6
add rbx, rdi
jmp 0x14005bb81
lea rbx, [rdi + 0x20000]
cmp rbx, r8
cmova rbx, r8
cmp r10b, 2
jne 0x14005bba2
test r9, r9
je 0x14005bba2
mov rcx, qword [rbp + 8]
movzx edi, sil
call fcn.1400d6fd8
jmp 0x14005bba5
xor dil, dil
test rbx, rbx
js 0x14005b8f7
mov rcx, rbx
call fcn.1400d6f18
test rax, rax
je 0x14005b8f7
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 0x14005bbe5
lea r8, [r13 + r13]
mov rdx, r12
call fcn.1400d7a40
mov rax, qword [rbp + 8]
lea rcx, [r13 + r13]
xor edi, edi
mov word [rcx + rax], di
mov qword [rbp + 0x10], rcx
jmp 0x14005b23d
mov rax, qword [rbp + 8]
xor edi, edi
mov word [rax], di
lea r8, [0x1400f1514]
lea rdx, str.Out_of_memory.
lea rcx, [0x14012c5c0]
mov qword [rbp + 0x10], rdi
call fcn.14004e5e0
mov esi, eax
jmp 0x14005b23d
cmp word [rbp], 0
je 0x14005bc3c
mov rcx, rbp
call fcn.14008e8d0
jmp 0x14005bc42
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov rcx, qword [0x14012b628]
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