Function at 0x1006a6e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10090392
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x280], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x298]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x18], ebx
mov edi, dword [esp + 0x2a8]
mov ebp, dword [esp + 0x2ac]
test edi, edi
jne 0x1006a73a
xor al, al
jmp 0x1006aa2e
movzx eax, di
mov ecx, edi
imul edx, eax, 0x10001
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], 0
cmp edi, edx
mov dword [esp + 0x14], edx
cmove ecx, eax
xor eax, eax
mov word [esp + 0x44], ax
mov dword [esp + 0x2a0], eax
lea eax, [esp + 0x44]
push ecx
push str.SystemCurrentControlSetControlKeyboard_Layouts
push str._s_08x
push eax
call fcn.1000a7d0
mov eax, dword [ebx]
add esp, 0x10
test eax, eax
je 0x1006a9f4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RegOpenKeyExW
push eax
call esi
push str.RegQueryValueExW
push dword [ebx]
mov dword [esp + 0x24], eax
call esi
mov ecx, dword [esp + 0x18]
mov ebx, eax
push str.RegCloseKey
push dword [ecx]
call esi
mov ecx, dword [esp + 0x1c]
mov esi, eax
test ecx, ecx
je 0x1006a9f4
test ebx, ebx
je 0x1006a9f4
test esi, esi
je 0x1006a9f4
cmp dword [esp + 0x58], 8
lea edx, [esp + 0x38]
push edx
push 0x20019
lea eax, [esp + 0x4c]
mov dword [esp + 0x40], 0
cmovae eax, dword [esp + 0x4c]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ecx
test eax, eax
jne 0x1006a9f4
push 0x206
push eax
test edi, 0xffff0000
mov dword [esp + 0x48], eax
mov word [esp + 0x94], ax
lea eax, [esp + 0x96]
cmove edi, dword [esp + 0x1c]
push eax
mov dword [ebp], edi
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [esp + 0x3c], 0x208
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x48]
push eax
push 0
push str.Ime_File
push dword [esp + 0x4c]
call ebx
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x78]
call fcn.10002f90
mov byte [esp + 0x2a0], 1
cmp dword [esp + 0x84], 0
jbe 0x1006a924
xor eax, eax
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], 0
mov word [esp + 0x5c], ax
mov byte [esp + 0x2a0], 2
lea edx, [esp + 0x5c]
call fcn.1006b150
mov edx, 0x10
lea ecx, [esp + 0x5c]
call fcn.1000ac50
lea eax, [esp + 0x74]
push eax
lea edx, [esp + 0x60]
lea ecx, [esp + 0x24]
call fcn.1000b150
add esp, 4
mov byte [esp + 0x2a0], 3
lea ecx, [ebp + 4]
push eax
call fcn.10004990
mov byte [esp + 0x2a0], 2
lea ecx, [esp + 0x20]
call fcn.10002a80
mov byte [esp + 0x2a0], 1
lea ecx, [esp + 0x5c]
call fcn.10002a80
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 0x208
push eax
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x48]
push eax
push 0
push str.Layout_Display_Name
push dword [esp + 0x4c]
call ebx
test eax, eax
jne 0x1006a9aa
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x60]
call fcn.10002f90
mov byte [esp + 0x2a0], 4
lea edx, [esp + 0x5c]
lea ecx, [esp + 0x20]
call fcn.1006aa60
mov byte [esp + 0x2a0], 5
lea ecx, [ebp + 0x1c]
push eax
call fcn.10004990
mov byte [esp + 0x2a0], 4
lea ecx, [esp + 0x20]
call fcn.10002a80
mov byte [esp + 0x2a0], 1
lea ecx, [esp + 0x5c]
call fcn.10002a80
jmp 0x1006a9d9
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x48]
push eax
push 0
push str.Layout_Text
push dword [esp + 0x4c]
call ebx
lea eax, [esp + 0x8c]
push eax
lea ecx, [ebp + 0x1c]
call fcn.100049d0
push dword [esp + 0x38]
call esi
mov bl, 1
mov byte [esp + 0x2a0], 0
lea ecx, [esp + 0x74]
call fcn.10002a80
jmp 0x1006a9f6
xor bl, bl
mov dword [esp + 0x2a0], 0xffffffff
cmp dword [esp + 0x58], 8
jb 0x1006aa15
push dword [esp + 0x44]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x58], 7
mov word [esp + 0x44], ax
mov al, bl
mov dword [esp + 0x54], 0
mov ecx, dword [esp + 0x298]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.10081b94
add esp, 0x290
ret 8