Function at 0x48ca70
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a09cd
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4c70c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x4c], esi
mov dword [esi], 0
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [ebp - 4], 3
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edx, eax
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x40]
call fcn.00461450
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x28]
xor eax, eax
push 0x20
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
call fcn.00407b50
mov ecx, eax
mov dword [ebp - 0x18], 0x18
mov eax, dword [str.User_activity_prepare_:]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x14], 0x1f
mov dword [ecx], eax
mov eax, dword [0x4b1204]
mov dword [ecx + 4], eax
mov eax, dword [0x4b1208]
mov dword [ecx + 8], eax
mov eax, dword [0x4b120c]
mov dword [ecx + 0xc], eax
mov eax, dword [0x4b1210]
mov dword [ecx + 0x10], eax
mov eax, dword [0x4b1214]
mov dword [ecx + 0x14], eax
mov byte [ecx + 0x18], 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x48]
push eax
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x40]
call fcn.00488190
mov byte [ebp - 4], 4
add esp, 8
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x48cb9b
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x48cb91
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48cc9b
push ecx
push edx
call fcn.00435dd2
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x48cbd9
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x48cbcf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48cc9b
push ecx
push edx
call fcn.00435dd2
add esp, 8
push 0x14
call fcn.00435b4c
mov dword [ebp - 0x44], eax
add esp, 4
mov dword [eax], vtable.CUserActivity.0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0x48c100
mov dword [eax + 0x10], 0
mov ecx, dword [esi]
mov dword [esi], eax
test ecx, ecx
je 0x48cc0f
mov eax, dword [ecx]
push 1
call dword [eax]
push 0x14
call fcn.00435b4c
mov dword [ebp - 0x44], eax
add esp, 4
mov dword [eax], vtable.CUserActivity.0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0x4887c0
mov dword [eax + 0x10], 0
mov ecx, dword [esi + 4]
mov dword [esi + 4], eax
test ecx, ecx
je 0x48cc47
mov eax, dword [ecx]
push 1
call dword [eax]
push 0x14
call fcn.00435b4c
mov dword [ebp - 0x4c], eax
add esp, 4
mov dword [eax], vtable.CUserActivity.0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0x485d60
mov dword [eax + 0x10], 0
mov ecx, dword [esi + 8]
mov dword [esi + 8], eax
test ecx, ecx
je 0x48cc7f
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00435b39
mov esp, ebp
pop ebp
ret
call fcn.0043f67c
int3