Function at 0x4b7c10
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x613ad0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x90], 0x400
lea eax, [ebp - 0x8c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004b0640
add esp, 8
cmp dword [ebp + 0x14], 0
jl 0x4b7c64
mov edx, dword [ebp + 0x14]
imul edx, edx, 0x170
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3434]
mov edx, dword [ecx + edx + 0x48]
mov dword [ebp - 0x90], edx
jmp 0x4b7c98
cmp dword [ebp + 0x14], 0xfffffffe
jne 0x4b7c76
mov dword [ebp - 0x90], 0x409
jmp 0x4b7c98
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
and eax, 0xffff
movzx ecx, ax
mov dword [ebp - 0x90], ecx
push 0x5e9178
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x3c], 0
jmp 0x4b7cd4
mov eax, dword [ebp - 0x3c]
add eax, 1
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [ebp - 0x78]
jge 0x4b7cf3
mov edx, dword [ebp - 0x3c]
movzx eax, byte [ebp + edx - 0x38]
cmp eax, 0x48
jne 0x4b7cf1
mov ecx, dword [ebp - 0x3c]
mov byte [ebp + ecx - 0x38], 0x68
jmp 0x4b7ccb
mov dword [ebp - 0x3c], 0
jmp 0x4b7d05
mov edx, dword [ebp - 0x3c]
add edx, 1
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x78]
jge 0x4b7d52
mov ecx, dword [ebp - 0x3c]
movzx edx, byte [ebp + ecx - 0x38]
cmp edx, 0x68
je 0x4b7d4e
mov eax, dword [ebp - 0x3c]
movzx ecx, byte [ebp + eax - 0x38]
cmp ecx, 0x6d
je 0x4b7d4e
mov edx, dword [ebp - 0x3c]
movzx eax, byte [ebp + edx - 0x38]
cmp eax, 0x73
je 0x4b7d4e
mov ecx, dword [ebp - 0x3c]
movzx edx, byte [ebp + ecx - 0x38]
cmp edx, 0x61
je 0x4b7d4e
mov eax, dword [ebp - 0x3c]
movzx ecx, byte [ebp + eax - 0x38]
cmp ecx, 0x70
jne 0x4b7d50
jmp 0x4b7d52
jmp 0x4b7cfc
mov edx, dword [ebp - 0x3c]
mov byte [ebp + edx - 0x38], 0
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x74], eax
push 0x1e
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x8c]
push eax
push 0
mov ecx, dword [ebp - 0x90]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDateFormatA]
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp dword [ebp - 0x74], eax
jne 0x4b7d96
mov eax, 1
jmp 0x4b7e0b
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x74]
push eax
lea ecx, [ebp - 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.am_pm
lea edx, [ebp - 0x70]
push edx
call fcn.005add20
add esp, 8
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
je 0x4b7dd6
mov eax, dword [ebp - 0x7c]
mov byte [eax], 0
push 0x5e9174
lea ecx, [ebp - 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x78], eax
push 0x1e
mov eax, dword [ebp + 0x10]
add eax, dword [ebp - 0x78]
push eax
lea ecx, [ebp - 0x70]
push ecx
lea edx, [ebp - 0x8c]
push edx
push 0
mov eax, dword [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005aac48
mov esp, ebp
pop ebp
ret