Function at 0x10004f30
Capabilities:
Create thread
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10018b5c
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x10021008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0xf
mov byte [ebp - 0x130], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x178]
push 0
push 0x1001a585
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x164], 0xf
mov byte [ebp - 0x178], 0
call fcn.10001440
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x160]
push 0
push 0x1001a585
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 0xf
mov byte [ebp - 0x160], 0
call fcn.10001440
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x148]
push 7
push str.mtr.log
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0xf
mov byte [ebp - 0x148], 0
call fcn.10001440
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x160]
push eax
lea edx, [ebp - 0x178]
lea ecx, [ebp - 0x148]
call fcn.10002a80
mov byte [ebp - 4], 2
add esp, 8
mov edx, dword [ebp - 0x134]
cmp edx, 0x10
jb 0x10005075
mov ecx, dword [ebp - 0x148]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000506b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000506b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100174a3
add esp, 8
mov ebx, dword [ebp - 0x11c]
lea ecx, [ebp - 0x130]
mov edi, dword [ebp - 0x130]
cmp ebx, 0x10
mov edx, dword [ebp - 0x120]
push 2
cmovae ecx, edi
push 0x1001b25c
call fcn.100091a0
add esp, 8
test al, al
je 0x100051cd
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push 0x1001bd18
push 0x1007cf90
call esi
push 0x104
lea eax, [ebp - 0x118]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x14
lea eax, [ebp - 0x118]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0x1001bd18
lea eax, [ebp - 0x118]
push eax
push str._s_s
push 0x1007cfd0
call esi
add esp, 0x10
mov ecx, str.Keyboard
call fcn.10013e60
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [sym.imp.VCRUNTIME140.dll_wcsstr]
mov ecx, str.Keyboard
test eax, eax
je 0x1000515e
call fcn.10013e60
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x10005155
push 0x1001ba8c
push ebx
call esi
add esp, 8
test eax, eax
je 0x1000514a
mov byte [0x1007cf8d], 1
jmp 0x10005168
push str.Disable
push ebx
call esi
add esp, 8
mov byte [0x1007cf8d], 0
jmp 0x100051c7
mov edx, 0x1001ba8c
call fcn.10013d90
mov ecx, str.Keyboard
call fcn.10013e60
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x1000519d
push 0x1001ba8c
push ebx
call esi
add esp, 8
test eax, eax
je 0x10005192
mov al, 1
jmp 0x1000519f
push str.Disable
push ebx
call esi
add esp, 8
xor al, al
push 0
push 0
push 0
push 0x10012090
push 0
push 0
mov byte [0x1007cf8d], al
mov byte [0x1007cf8c], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x14c]
cmp edx, 0x10
jb 0x10005209
mov ecx, dword [ebp - 0x160]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100051ff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100051ff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100174a3
add esp, 8
mov edx, dword [ebp - 0x164]
cmp edx, 0x10
jb 0x10005245
mov ecx, dword [ebp - 0x178]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000523b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000523b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100174a3
add esp, 8
cmp ebx, 0x10
jb 0x10005277
lea ecx, [ebx + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x1000526d
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000526d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edi
call fcn.100174a3
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10016f21
mov esp, ebp
pop ebp
ret