Function at 0x1001ac10
Capabilities:
Get keyboard layout

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10024038
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x1005f2f4]
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 esi, ecx
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], esi
test esi, esi
je 0x1001ac65
mov eax, dword [esi]
push esi
mov edi, dword [eax + 4]
cmp edi, fcn.1001b4a0
jne 0x1001af5f
call fcn.1001b4a0
sub dword [ebp + 8], 2
mov dword [ebp - 4], 0
jne 0x1001ae87
mov byte [esi + 0x48], 0
push dword [esi + 0x3c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi + 0x3c], 0
push dword [esi + 0x40]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi + 0x40], 0
push dword [esi + 0x44]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi + 0x44], 0
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 1
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 2
mov ecx, dword [esi + 0xfc]
mov dword [ebp - 0x30], 0
test ecx, ecx
jne 0x1001aec9
cmp dword [esi + 0x4c], 0
lea ecx, [esi + 0x4c]
jne 0x1002875d
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x1001af14
mov eax, dword [ecx]
lea edx, [ebp - 0x24]
push edx
push ecx
mov edi, dword [eax + 0x18]
mov ecx, edi
call dword [0x100614f4]
call edi
mov ecx, dword [ebp - 0x24]
call fcn.1001b190
test al, al
jne 0x1001adc3
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1001ad2c
mov ecx, dword [eax]
lea edx, [ebp - 0x34]
push edx
push eax
mov edi, dword [ecx + 0x24]
mov ecx, edi
call dword [0x100614f4]
call edi
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x1001ad47
mov ecx, dword [eax]
lea edx, [ebp - 0x30]
push edx
push eax
mov edi, dword [ecx + 0x18]
mov ecx, edi
call dword [0x100614f4]
call edi
push 0
push ecx
mov ecx, esi
call fcn.1001a449
mov edx, dword [esi + 0x5c]
test edx, edx
je 0x1001ad74
cmp byte [esi + 0xe0], 0
jne 0x1001b018
mov ecx, 8
lea edi, [esi + 0xc0]
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x1001af98
cmp dword [esi + 0x5c], eax
jne 0x1001af3a
push 0
mov dword [esi + 0x5c], eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov ecx, dword [esi + 0x5c]
mov edx, eax
call fcn.1001ca32
push 0
push 1
push dword [ebp - 0x24]
mov ecx, esi
mov byte [esi + 0x70], al
call fcn.1001a483
push ecx
push dword [ebp - 0x24]
mov ecx, esi
call fcn.1001a7e3
push dword [ebp - 0x24]
mov ecx, esi
call fcn.1001a82a
cmp dword [esi + 0xfc], 0
jne 0x1001ae51
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 3
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x1001ae36
mov eax, dword [ecx]
lea edx, [ebp - 0x28]
push edx
push ecx
mov edi, dword [eax + 0x1c]
mov ecx, edi
call dword [0x100614f4]
call edi
test eax, eax
js 0x1001ae36
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x28], eax
jne 0x1001ae36
mov dword [ebp - 0x2c], 0
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 4
push edx
push eax
lea eax, [esi + 0x100]
lea ecx, [esi + 0x14]
push eax
lea edx, [esi + 0xfc]
call fcn.1001b6d0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x1001b033
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1001ae51
mov ecx, dword [eax]
push eax
mov edi, dword [ecx + 8]
mov ecx, edi
call dword [0x100614f4]
call edi
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x1001ae6c
mov ecx, dword [eax]
push eax
mov edi, dword [ecx + 8]
mov ecx, edi
call dword [0x100614f4]
call edi
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1001ae87
mov ecx, dword [eax]
push eax
mov edi, dword [ecx + 8]
mov ecx, edi
call dword [0x100614f4]
call edi
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x1001aea9
mov eax, dword [esi]
push esi
mov edi, dword [eax + 8]
cmp edi, fcn.1001b610
jne 0x1001af6e
call fcn.1001b610
mov eax, ebx
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.10021250
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx]
push dword [esi + 0x100]
push ecx
mov edi, dword [eax + 0x10]
mov ecx, edi
call dword [0x100614f4]
call edi
mov edx, dword [esi + 0xfc]
mov ebx, eax
test edx, edx
je 0x1001af05
mov dword [esi + 0xfc], 0
mov ecx, dword [edx]
push edx
mov edi, dword [ecx + 8]
mov ecx, edi
call dword [0x100614f4]
call edi
mov dword [esi + 0x100], 0
jmp 0x1001acd5
cmp byte [esi + 0xe0], 0
jne 0x1001af7d
xor eax, eax
lea edi, [esi + 0xc0]
mov ecx, 8
rep stosd dword es:[edi], eax
push eax
push ecx
mov ecx, esi
call fcn.1001a449
jmp 0x1001ae51
xor eax, eax
lea edi, [esi + 0xc0]
push eax
push eax
mov ecx, 8
xor edx, edx
rep stosd dword es:[edi], eax
push eax
push 3
mov cl, 1
call fcn.1001cc80
mov eax, dword [ebp - 0x30]
jmp 0x1001ad88
mov ecx, edi
call dword [0x100614f4]
call edi
jmp 0x1001ac65
mov ecx, edi
call dword [0x100614f4]
call edi
jmp 0x1001aea9
mov edx, dword [esi + 0x5c]
mov cl, 1
push 0
push 0
push 0
push 0
call fcn.1001cc80
mov byte [esi + 0xe0], 0
jmp 0x1001af1d
xor eax, eax
mov dword [esi + 0x5c], 0
mov byte [esi + 0x70], 0
lea edi, [esi + 0xc0]
mov ecx, 8
rep stosd dword es:[edi], eax
call fcn.10015cd5
test al, al
jne 0x1001b002
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov eax, dword [0x1005fa94]
test eax, eax
je 0x1001afd4
cmp dword [eax + 0x58], 0
jne 0x1001b048
mov byte [ebp - 0x28], 0
push dword [ebp - 0x28]
lea eax, [ebp - 0x20]
xor dl, dl
push 0
push 0
push 0
push eax
push 0
push 0
push 0
push 1
push 0
push 0
xor cl, cl
call fcn.10015b28
push ecx
mov ecx, esi
call fcn.1001a347
push 0
push 0
push 0
push 3
xor edx, edx
mov cl, 1
call fcn.1001cc80
jmp 0x1001adc3
push 0
push 0
push 0
push 0
mov cl, 1
call fcn.1001cc80
mov byte [esi + 0xe0], 0
jmp 0x1001ad65
mov ecx, dword [eax]
push eax
mov edi, dword [ecx + 8]
mov ecx, edi
call dword [0x100614f4]
call edi
jmp 0x1001ae36
mov byte [ebp - 0x28], 1
jmp 0x1001afd8
xor edx, edx
call fcn.100164eb
jmp 0x1001ace2