Function at 0x1001185f
Capabilities:
Get keyboard layout
Get system information on windows

Disassembly:
mov eax, 0x10060c9a
call fcn.10060628
sub esp, 0x78
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], 0x7d0fa516
mov dword [ebp - 0x34], 4
push 2
mov dword [ebp - 0x20], 0xfffd
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], ebx
pop esi
jmp 0x100118a8
mov eax, dword [ebp - 0x20]
mov dword [ebp + eax*4 - 0x44], 0x273d
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], esi
jl 0x1001189a
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
neg edx
sbb edx, edx
xor ecx, ecx
neg edx
cmp edx, eax
setg cl
cmp ecx, 0xfff6
sbb eax, eax
neg eax
add eax, dword [ebp - 0x1c]
je 0x100118db
cmp dword [ebp - 0x1c], ebx
je 0x100118db
xor edi, edi
inc edi
mov ecx, edi
jmp 0x100118e0
xor edi, edi
mov ecx, ebx
inc edi
mov eax, dword [ebp - 0x1c]
push 9
pop edx
cmp edx, eax
sbb eax, eax
inc eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
add eax, ecx
xor ecx, ecx
cmp eax, 0xfffffffa
mov eax, dword [ebp - 0x1c]
setl cl
xor edx, edx
cmp ecx, eax
setg dl
xor eax, eax
sub edx, dword [ebp - 0x1c]
cmp edx, 7
setle al
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x1c]
imul eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x20], ebx
cmp dword [ebp - 0x20], edi
jg 0x100119ea
mov dword [ebp - 0x2c], 0x7af9
cmp dword [ebp - 0x2c], 0x7ce4
jle 0x100119c1
push ebx
push 6
call dword [sym.imp.USER32.dll_ShowOwnedPopups]
mov edx, ebx
mov dword [ebp - 0x1c], ebx
mov eax, ebx
mov dword [ebp - 0x24], ebx
mov edi, ebx
mov esi, ebx
add eax, edi
mov ecx, esi
sar eax, cl
lea ecx, [ebp - 0x80]
and eax, edx
cdq
push edx
push eax
call fcn.1000d000
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x10011971
mov eax, dword [eax]
push eax
call fcn.1004b356
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x80]
call fcn.1000fa70
mov eax, dword [ebp - 0x24]
inc esi
mov edx, dword [ebp - 0x1c]
cmp esi, 0x6c62
jl 0x10011954
inc edi
cmp edi, 0x476f
jl 0x10011952
inc eax
mov dword [ebp - 0x24], eax
cmp eax, 0x3b8
jl 0x10011950
inc edx
mov dword [ebp - 0x1c], edx
cmp edx, 0x3a81
jl 0x1001194b
push 0x2510
push ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
xor edi, edi
inc edi
mov eax, dword [ebp - 0x20]
cmp dword [ebp + eax*4 - 0x44], ebx
jne 0x100119ea
cmp dword [ebp - 0x2c], 0x771a
jge 0x100119de
push 0x10007c54
call fcn.1004b356
pop ecx
or dword [ebp - 4], 0xffffffff
inc dword [ebp - 0x20]
jmp 0x10011920
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x38], ecx
lea ecx, [ebp - 0x68]
push 3
call fcn.1000f6e4
push 2
pop esi
push esi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], esi
call fcn.1000f6e4
mov byte [ebp - 4], 3
mov dword [ebp - 0x1c], 0xea122098
mov dword [ebp - 0x1c], ebx
jmp 0x10011a29
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x68]
mov dword [eax + ecx*4], 0x2db58e46
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 3
jl 0x10011a19
mov dword [ebp - 0x1c], ebx
jmp 0x10011a44
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x50]
mov dword [eax + ecx*4], 0xfffffffb
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], esi
jl 0x10011a34
mov eax, dword [ebp - 0x50]
mov dword [eax], esi
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x10011a5e
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x50]
dec dword [eax]
jns 0x10011a4e
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x1c], 7
jg 0x10011b85
mov dword [ebp - 0x34], 0xfffffffb
mov dword [ebp - 0x20], 0xe9bf9f36
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x20], 0xffffffef
cmp dword [ebp - 0x20], 0x16
jle 0x10011b7d
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x10011ab2
push ebx
push 0xd81
push ebx
push 0x24e7
call dword [sym.imp.GDI32.dll_GetTextExtentPointW]
mov dword [ebp - 0x34], 0x830
cmp dword [ebp - 0x34], 0x958
jle 0x10011b1a
mov edi, ebx
mov edx, edi
mov dword [ebp - 0x30], 0x61aa
mov dword [ebp - 0x24], edx
mov esi, ebx
mov ecx, ebx
mov dword [ebp - 0x2c], ebx
mov eax, esi
shl eax, cl
mov ecx, 0x10609ad8
xor eax, edx
cdq
push edx
push eax
call fcn.1000f5cf
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x24]
inc ecx
mov dword [ebp - 0x2c], ecx
cmp ecx, 0x5c2c
jl 0x10011ad7
inc esi
cmp esi, 0x9db
jl 0x10011ad2
dec edx
dec dword [ebp - 0x30]
mov dword [ebp - 0x24], edx
jne 0x10011ad0
inc edi
cmp edi, 0x3b2b
jl 0x10011ac4
push 2
pop esi
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x10011b2b
push ebx
push ebx
call dword [sym.imp.USER32.dll_LoadMenuW]
mov byte [ebp - 4], 4
cmp dword [ebp - 0x34], 0x6db
jge 0x10011b6e
mov edx, 0x10007c94
mov ecx, 0x10609ad8
call fcn.10011079
jmp 0x10011b6e
mov dword [ebp - 4], 3
inc dword [ebp - 0x20]
jmp 0x10011a8d
inc dword [ebp - 0x1c]
jmp 0x10011a68
lea ecx, [ebp - 0x50]
call fcn.1000f766
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.1000f766
push esi
lea ecx, [ebp - 0x5c]
call fcn.1000f6e4
mov dword [ebp - 0x24], 0xdc5336de
mov dword [ebp - 0x20], ebx
jmp 0x10011bba
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x5c]
mov dword [eax + ecx*4], ebx
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], esi
jl 0x10011bae
mov esi, dword [ebp - 0x5c]
mov eax, dword [esi + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax]
xor eax, eax
test edx, edx
setle al
xor ecx, ecx
cmp eax, edx
setne cl
add ecx, edx
je 0x10011c0a
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x10011bf4
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x10011c61
push 0x2132
call dword [sym.imp.GDI32.dll_RealizePalette]
jmp 0x10011c61
mov dword [ebp - 0x38], 3
xor ecx, ecx
mov dword [ebp - 0x34], 0xfffffff7
mov eax, dword [ebp - 0x38]
cmp dword [esi + 4], eax
setge cl
mov dword [ebp - 0x34], ecx
cmp dword [ebp - 0x34], ebx
mov byte [ebp - 0x15], bl
je 0x10011c50
cmp byte [ebp - 0x15], 0
je 0x10011c61
push 0x10ff
push 0x1bbb
push 0x2124
push 0x773
call dword [sym.imp.GDI32.dll_CreateRectRgn]
jmp 0x10011c61
cmp byte [ebp - 0x15], 0
je 0x10011c61
push 0xc37
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
lea ecx, [ebp - 0x5c]
call fcn.1000f766
mov esi, dword [ebp + 0xc]
xor edx, edx
mov eax, dword [esi]
test eax, eax
mov eax, dword [esi]
setne dl
xor ecx, ecx
cmp edx, eax
mov eax, dword [esi]
setg cl
cmp ecx, 0xfff6
sbb ecx, ecx
neg ecx
add eax, ecx
je 0x10011c97
cmp dword [esi], ebx
je 0x10011c97
xor edi, edi
inc edi
jmp 0x10011c99
mov edi, ebx
mov eax, dword [esi]
push 9
pop ecx
cmp ecx, eax
mov eax, dword [ebp + 8]
sbb ecx, ecx
inc ecx
mov dword [eax], ecx
xor ecx, ecx
mov eax, dword [eax]
add eax, edi
cmp eax, 0xfffffffa
mov eax, dword [esi]
pop edi
setl cl
xor edx, edx
cmp ecx, eax
mov eax, dword [esi]
mov ecx, dword [ebp - 0x3c]
setg dl
sub edx, eax
xor eax, eax
cmp edx, 7
setle al
mov dword [ecx], eax
mov eax, dword [esi]
imul eax, dword [esi]
mov ecx, dword [ebp - 0x28]
pop esi
pop ebx
mov dword [ecx], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret