Function at 0x100161f2
Capabilities:
Get keyboard layout
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10072a7d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x90
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x10016246
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x60], eax
push 0x5aa2
push dword [ebp - 0x60]
push 0
push 0x30b
push 0x17e9
call fcn.1001b477
add esp, 0x14
jmp 0x1001647c
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x54], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x4c]
movzx eax, byte [eax]
test eax, eax
je 0x10016474
mov dword [ebp - 0x2c], 0x29f8
mov dword [ebp - 0x64], 0x10007bc8
cmp dword [ebp - 0x2c], 0x2c4f
jle 0x100162fe
and dword [ebp - 0x18], 0
jmp 0x10016290
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x5cb8
jge 0x100162f1
and dword [ebp - 0x1c], 0
jmp 0x100162a6
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x63fd
jge 0x100162ef
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x1c]
cdq
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], edx
push dword [ebp - 0x70]
push dword [ebp - 0x74]
lea ecx, [ebp - 0xa0]
call fcn.1000b06a
pop ecx
pop ecx
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
call fcn.1000f793
push eax
call fcn.100598a3
pop ecx
lea ecx, [ebp - 0xa0]
call fcn.1000f789
jmp 0x1001629f
jmp 0x10016289
push 0x1145
push 0
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x78], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x2c], 0x265a
jge 0x1001631a
push dword [ebp - 0x64]
call fcn.100598a3
pop ecx
jmp 0x10016336
or dword [ebp - 4], 0xffffffff
jmp 0x10016340
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
jne 0x1001645e
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
jne 0x1001645e
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jne 0x1001639b
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x1001639b
mov dword [ebp - 0x50], 1
jmp 0x1001639f
and dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jge 0x100163d2
mov dword [ebp - 0x34], 1
jmp 0x100163d6
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x34]
jle 0x100163e9
mov dword [ebp - 0x20], 1
jmp 0x100163ed
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x20], 0xfffffff7
jne 0x100163fc
mov dword [ebp - 0x3c], 1
jmp 0x10016400
and dword [ebp - 0x3c], 0
cmp dword [ebp - 0x3c], 0x3f29
jl 0x10016412
mov dword [ebp - 0x24], 1
jmp 0x10016416
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
sub ecx, dword [eax]
mov eax, dword [ebp - 0x14]
cmp ecx, dword [eax]
jne 0x1001642e
mov dword [ebp - 0x28], 1
jmp 0x10016432
and dword [ebp - 0x28], 0
cmp dword [ebp - 0x28], 0xe22401db
je 0x10016444
mov dword [ebp - 0x30], 1
jmp 0x10016448
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
imul eax, dword [ebp - 0x30]
cmp eax, 0xbd52a284
je 0x1001645e
and dword [ebp - 0x40], 0
jmp 0x10016465
mov dword [ebp - 0x40], 1
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
add eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x58]
mov dword [ecx], eax
jmp 0x1001647c
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret