Function at 0x48836d
Capabilities:
Get keyboard layout

Disassembly:
jmp 0x488350
sub esp, 0x440
mov eax, dword [0x589780]
xor eax, esp
mov dword [esp + 0x43c], eax
push ebx
mov ebx, dword [esp + 0x44c]
push ebp
push esi
mov esi, ecx
mov ecx, ebx
push edi
call fcn.004043ef
test al, al
je 0x488571
lea eax, [esp + 0x34]
mov dword [esp + 0x3c], 0
xorps xmm0, xmm0
mov ecx, ebx
push eax
movq qword [esp + 0x38], xmm0
call fcn.00404fd9
mov ecx, dword [esi + 4]
lea edx, [esp + 0x14]
push edx
push 0xc
lea edx, [esp + 0x48]
mov dword [esp + 0x50], 0
push edx
xorps xmm0, xmm0
lea edx, [esp + 0x40]
movq qword [esp + 0x4c], xmm0
mov eax, dword [ecx]
push 0xc
push edx
push dword [esp + 0x468]
mov eax, dword [eax + 0x14]
call eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov byte [esp + 0x13], al
test al, al
jne 0x488428
call ebp
mov edi, eax
call esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
push esi
push eax
push 0x4c
push str.C:projectsentryprotect_srccoredriver.cpp
lea eax, [esp + 0x60]
push str._s__d_:___u__u__error_u__SB__n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x68]
push eax
call fcn.0040946c
add esp, 0x20
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, dword [esp + 0x14]
cmp eax, 0xc
je 0x488470
call ebp
mov edi, eax
call esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push esi
push eax
push 0x4d
push str.C:projectsentryprotect_srccoredriver.cpp
lea eax, [esp + 0x5c]
push str._s__d_:___u__u__assert_failed__SB__n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x64]
push eax
call fcn.0040946c
add esp, 0x1c
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x14]
cmp byte [esp + 0x13], 0
je 0x488571
cmp eax, 0xc
jne 0x488571
mov ax, word [esp + 0x36]
cmp ax, word [esp + 0x42]
je 0x488571
mov ax, word [esp + 0x38]
cmp ax, word [esp + 0x44]
je 0x4884df
call ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push esi
push eax
push 0x4f
push str.C:projectsentryprotect_srccoredriver.cpp
lea eax, [esp + 0x5c]
push str._s__d_:___u__u__assert_failed__SB__n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x64]
push eax
call fcn.0040946c
add esp, 0x1c
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
movups xmm0, xmmword [ebx]
mov eax, dword [ebx + 0x18]
push 0
movups xmmword [esp + 0x1c], xmm0
mov dword [esp + 0x34], eax
movq xmm0, qword [ebx + 0x10]
movq qword [esp + 0x2c], xmm0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x20]
call fcn.0040ba00
test al, al
jne 0x488553
call ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push esi
push eax
push 0x53
push str.C:projectsentryprotect_srccoredriver.cpp
lea eax, [esp + 0x5c]
push str._s__d_:___u__u__assert_failed__SB__n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x64]
push eax
call fcn.0040946c
add esp, 0x1c
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
movups xmm0, xmmword [esp + 0x18]
mov eax, dword [esp + 0x30]
movups xmmword [ebx], xmm0
movq xmm0, qword [esp + 0x28]
movq qword [ebx + 0x10], xmm0
mov dword [ebx + 0x18], eax
mov al, 1
jmp 0x488573
xor al, al
mov ecx, dword [esp + 0x44c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040512d
add esp, 0x440
ret 8