Function at 0x100013c0
Capabilities:
Get keyboard layout
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x150
mov eax, esp
mov dword [eax + 4], 6
mov dword [eax], 0x4bbef4
mov eax, dword [sym.imp.GDI32.dll_SetBkColor]
call eax
sub esp, 8
mov ecx, esp
mov dword [ecx + 4], 0xeaa371
mov dword [ecx], 0x23dd24
mov ecx, dword [sym.imp.GDI32.dll_SelectClipRgn]
mov dword [esp + 0x7c], eax
call ecx
sub esp, 8
xor ecx, ecx
lea edx, [esp + 0x80]
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], edx
mov dword [esp + 0x70], ecx
jmp 0x10001482
mov eax, esp
mov dword [eax + 0x10], 0xf30
mov dword [eax + 0xc], 0x75
mov dword [eax + 8], 0x2ce
mov dword [eax + 4], 0x963
mov dword [eax], 0xf78691
mov eax, dword [sym.imp.GDI32.dll_Ellipse]
call eax
sub esp, 0x14
mov ecx, esp
mov dword [ecx + 0x10], 0x1af
mov dword [ecx + 0xc], 0x351
mov dword [ecx + 8], 0x16f
mov dword [ecx + 4], 0xb7
mov dword [ecx], 0xe138ce
mov ecx, dword [sym.imp.GDI32.dll_Rectangle]
mov dword [esp + 0x6c], eax
call ecx
sub esp, 0x14
mov dword [esp + 0x68], eax
jmp 0x100014e6
mov eax, dword [esp + 0x70]
mov ecx, esp
mov dword [ecx], 0x4fe
mov ecx, dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [esp + 0x64], eax
call ecx
sub esp, 4
xor ecx, ecx
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], ecx
mov eax, dword [esp + 0x5c]
mov ecx, 0x38e38e39
mov dword [esp + 0x58], eax
mul ecx
shr edx, 2
imul eax, edx, 0x12
mov ecx, dword [esp + 0x58]
sub ecx, eax
mov eax, ecx
sub eax, 6
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], eax
je 0x1000141b
jmp 0x100014d7
mov eax, dword [esp + 0x54]
sub eax, 9
mov dword [esp + 0x4c], eax
jne 0x1000151a
jmp 0x100014e6
mov eax, esp
mov dword [eax + 4], 0xdbe
mov dword [eax], 0x437c65
mov eax, dword [sym.imp.USER32.dll_ShowWindow]
call eax
sub esp, 8
mov ecx, esp
mov dword [ecx], 0xeac122
mov ecx, dword [sym.imp.USER32.dll_DestroyMenu]
mov dword [esp + 0x48], eax
call ecx
sub esp, 4
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x58]
add eax, 1
cmp eax, 0xc2
mov dword [esp + 0x5c], eax
jne 0x100014a7
xor eax, eax
mov ecx, esp
lea edx, [esp + 0x140]
mov dword [ecx], edx
mov ecx, dword [sym.imp.USER32.dll_GetCursorPos]
mov dword [esp + 0x40], eax
call ecx
sub esp, 4
xor ecx, ecx
mov edx, dword [esp + 0x64]
sub edx, 2
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], edx
je 0x10001594
jmp 0x10001567
mov eax, dword [esp + 0x64]
sub eax, 0x2f
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
jne 0x100015b3
jmp 0x1000157e
mov eax, esp
mov dword [eax], 0xe53bae
mov eax, dword [sym.imp.USER32.dll_IsWindowUnicode]
call eax
sub esp, 4
mov dword [esp + 0x28], eax
mov eax, esp
mov dword [eax + 4], 0x916
mov dword [eax], 0xd37e5d
mov eax, dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call eax
sub esp, 8
mov dword [esp + 0x24], eax
jmp 0x10001613
mov eax, dword [esp + 0x2c]
xor ecx, ecx
mov edx, 0xc0
mov esi, dword [esp + 0x74]
mov dword [esp], esi
mov dword [esp + 4], 0
mov dword [esp + 8], 0xc0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
call sub.msvcrt.dll_memset
mov eax, esp
lea ecx, [esp + 0x80]
mov dword [eax], ecx
call sub.POWRPROF.dll_WriteGlobalPwrPolicy
sub esp, 4
mov ecx, dword [esp + 0x20]
add ecx, 1
cmp ecx, 0xa
mov byte [esp + 0x17], al
mov dword [esp + 0x2c], ecx
jne 0x100015b3
mov eax, dword [esp + 0x64]
add eax, 1
cmp eax, 0xc0
mov dword [esp + 0x70], eax
jne 0x10001482
lea esp, [ebp - 4]
pop esi
pop ebp
ret