Function at 0x10048bca
Capabilities:
Get keyboard layout

Disassembly:
mov eax, 0x10089916
call fcn.10088158
sub esp, 0x78
push ebx
push esi
mov esi, edx
mov bl, cl
push 2
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x2c], esi
call fcn.10010227
mov dword [ebp - 0x18], 0
jmp 0x10048c01
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x1c], 0xffffffff
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 1
jl 0x10048bf3
mov dword [ebp - 0x18], 0
jmp 0x10048c20
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x50]
mov dword [eax + ecx*4], 0xfffffffb
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 2
jl 0x10048c10
mov dword [ebp - 0x1c], 0
jmp 0x10048c7b
mov dword [ebp - 0x18], 0x457102d1
mov byte [ebp - 0xd], 0
cmp byte [ebp - 0xd], 0
je 0x10048c48
push 0
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov dword [ebp - 0x18], 0xffffffe3
jmp 0x10048c72
mov eax, dword [ebp - 0x50]
mov dword [eax], 0x33c63384
mov byte [ebp - 0xd], 0
cmp byte [ebp - 0xd], 0
je 0x10048c6f
push 0x1e40
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 1
jl 0x10048c51
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 0xd
je 0x10048c2f
lea ecx, [ebp - 0x50]
call fcn.10010442
test bl, bl
je 0x10049007
push edi
xor ecx, ecx
push 4
inc ecx
xor ebx, ebx
mov dword [ebp - 0x14], ecx
pop edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], 0x88f4f368
push 3
mov dword [ebp - 0x20], 0xfffffff6
mov dword [ebp - 0x18], ebx
pop edi
jmp 0x10048cc7
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x74], 0x2bd7b1c2
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], edi
jl 0x10048cb9
cmp dword [ebp - 0x14], ebx
je 0x10048cda
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], 0x5c68ec0a
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x18], ebx
jmp 0x10048d0f
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x84], 5
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], edx
jl 0x10048cfe
mov dword [ebp - 0x18], 0xffffffe7
cmp dword [ebp - 0x18], 0xffffffe9
je 0x10048e65
mov esi, 0xffff
push edi
lea ecx, [ebp - 0x38]
call fcn.10010227
push 1
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.10010227
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x20], 0xffffffff
push edi
call fcn.10010227
mov dword [ebp - 0x14], 0xf5b50694
mov dword [ebp - 0x14], ebx
jmp 0x10048d70
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x38]
mov dword [eax + ecx*4], 0xe75cb554
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], edi
jl 0x10048d60
xor edx, edx
mov dword [ebp - 0x14], ebx
inc edx
jmp 0x10048d8d
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x44]
mov dword [eax + ecx*4], 0xfffd
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], edx
jl 0x10048d7d
mov dword [ebp - 0x14], ebx
jmp 0x10048da3
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x5c]
mov dword [eax + ecx*4], edx
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], edi
jl 0x10048d97
mov eax, dword [ebp - 0x38]
xor edx, edx
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 0x44]
cmp ecx, dword [eax]
mov eax, dword [ebp - 0x18]
setg dl
xor ecx, ecx
cmp edx, eax
setg cl
xor eax, eax
cmp ecx, 1
mov ecx, dword [ebp - 0x38]
setle al
cmp esi, eax
sbb eax, eax
inc eax
sub eax, dword [ecx]
je 0x10048de0
cmp dword [ecx + 4], ebx
je 0x10048de0
xor eax, eax
inc eax
jmp 0x10048de2
mov eax, ebx
cmp eax, dword [ebp - 0x20]
jg 0x10048dea
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 0x38]
cmp dword [eax], esi
jb 0x10048df9
cmp dword [ebp - 0x18], ebx
je 0x10048dfc
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov edx, dword [ebp - 0x5c]
test eax, eax
setg cl
imul eax, ecx, 0xa88f
sub eax, dword [ebp - 0x18]
neg eax
sbb eax, eax
inc eax
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x44]
mov ecx, dword [edx + 8]
add ecx, 0xffffd399
mov eax, dword [eax]
add eax, ecx
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x14], eax
call fcn.10010442
lea ecx, [ebp - 0x44]
call fcn.10010442
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.10010442
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0xffffffe9
jne 0x10048d2a
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x78]
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x7c]
neg eax
push edi
sbb eax, eax
inc eax
add eax, edi
sub ecx, eax
neg ecx
sbb ecx, ecx
add ecx, 2
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x68]
call fcn.10010227
mov dword [ebp - 0x2c], 0xa4d0
mov dword [ebp - 0x28], 0x2a727599
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x18], ebx
jmp 0x10048ebc
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x68]
mov dword [eax + ecx*4], 0xe9d05ba7
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], edi
jl 0x10048eac
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], 0
je 0x10048ed7
push ebx
push 0x1138
push ebx
call dword [sym.imp.GDI32.dll_ExtCreateRegion]
mov ecx, dword [ebp - 0x68]
xor edx, edx
mov eax, dword [ecx + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x2c]
cmp dword [ecx + 8], eax
mov eax, dword [ebp - 0x28]
setl dl
xor ecx, ecx
cmp edx, eax
setge cl
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x68]
call fcn.10010442
mov dword [ebp - 0x18], 0xfffffffd
mov dword [ebp - 0x18], 0xffffffed
cmp dword [ebp - 0x18], 0xfffffffb
jg 0x10048feb
mov edi, dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 0x14], 0xfffffffa
xor edx, edx
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
cmp ecx, eax
setge dl
xor ecx, ecx
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
cmp eax, 0xa82a
mov eax, dword [ebp - 0x18]
setl cl
xor edx, edx
cmp eax, ecx
mov eax, dword [ebp - 0x14]
setl dl
xor ecx, ecx
cmp edx, eax
mov eax, dword [ebp - 0x14]
setle cl
xor edx, edx
cmp ecx, eax
mov eax, dword [ebp - 0x14]
setg dl
xor ecx, ecx
cmp edx, eax
mov eax, dword [ebp - 0x18]
setne cl
add eax, ecx
jne 0x10048f7a
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x18], ebx
je 0x10048faa
cmp dword [ebp - 0x24], ebx
je 0x10048faa
mov dword [ebp - 0x2c], 0x62f63069
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], 0
je 0x10048fa5
push 0x24fb
call edi
push eax
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
mov eax, dword [ebp - 0x2c]
jmp 0x10048fde
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], 0
je 0x10048fc2
push ebx
push 0x1829
call edi
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], 0
je 0x10048fde
push ebx
push ebx
push 0x1586
push 0x23c
push ebx
call dword [sym.imp.USER32.dll_InsertMenuA]
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0xfffffffb
jle 0x10048f1e
mov dword [esi], ebx
xor ebx, ebx
inc ebx
pop edi
cmp dword [esi], ebx
jge 0x1004901d
mov edx, dword [ebp + 8]
mov ecx, dword [esi]
mov eax, dword [edx]
mov dword [eax + ecx*4], ebx
inc dword [esi]
cmp dword [esi], ebx
jl 0x10048ff8
jmp 0x1004901d
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetWindowOrgEx]
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret