Function at 0x10065cfd
Capabilities:
Get keyboard layout

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2b8
mov eax, dword [0x100c51b8]
xor eax, esp
mov dword [esp + 0x2b4], eax
lea eax, [esp + 0x29c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
lea ebx, [esp + 0x266]
mov byte [ebx - 2], 1
mov byte [ebx - 1], 0x3a
mov byte [ebx], 0x5a
mov al, 0x53
mov byte [ebx + 1], al
mov cl, 0x58
mov byte [ebx + 2], cl
mov byte [ebx + 3], cl
mov byte [ebx + 4], 0x48
mov cl, 0x43
mov byte [ebx + 5], cl
mov byte [ebx + 6], al
mov byte [ebx + 7], cl
mov byte [ebx + 8], 0x74
mov byte [ebx + 9], 0x70
mov al, 0x71
mov byte [ebx + 0xa], al
mov cl, 0x61
mov byte [ebx + 0xb], cl
mov byte [ebx + 0xc], 0x6b
mov byte [ebx + 0xd], 0x72
mov dl, 0x44
mov byte [ebx + 0xe], dl
mov ah, 0x77
mov byte [ebx + 0xf], ah
mov byte [ebx + 0x10], ah
mov byte [ebx + 0x11], 0x6e
mov byte [ebx + 0x12], 0x69
mov byte [ebx + 0x13], 0x73
mov byte [ebx + 0x14], al
mov al, 0x4d
mov byte [ebx + 0x15], al
mov ah, 0x7a
mov byte [ebx + 0x16], ah
mov ch, 0x64
mov byte [ebx + 0x17], ch
mov byte [ebx + 0x18], al
mov byte [ebx + 0x19], 0x51
mov byte [ebx + 0x1a], 0x7c
mov byte [ebx + 0x1b], ah
mov byte [ebx + 0x1c], cl
mov byte [ebx + 0x1d], ch
mov byte [ebx + 0x1e], pe_nt_image_headers32
mov byte [ebx + 0x1f], dl
mov byte [ebx + 0x20], 0x75
mov byte [ebx + 0x21], cl
mov al, 0x4e
mov byte [ebx + 0x22], al
mov byte [ebx + 0x23], 0x55
mov byte [ebx + 0x24], 0x4f
mov byte [ebx + 0x25], 0x41
mov byte [ebx + 0x26], al
mov al, 0x52
mov byte [ebx + 0x27], al
mov cl, 0x45
mov byte [ebx + 0x28], cl
mov byte [ebx + 0x29], 2
mov byte [ebx + 0x2a], 0x6f
mov byte [ebx + 0x2b], cl
mov byte [ebx + 0x2c], 0x5c
mov byte [ebx + 0x2d], 0x49
mov byte [ebx + 0x2e], al
mov byte [ebx + 0x2f], 0x4c
mov byte [ebx + 0x30], 0x4a
mov byte [ebx + 0x31], 0x66
lea eax, [esp + 0x298]
lea ecx, [esp + 0x29a]
mov dword [esp + 4], ecx
mov edx, 0x49efe5
mov ecx, 0x8d778722
cmp edx, 0x8d778722
je 0x10065e37
cmp edx, 0x49efe5
jne 0x10065e15
mov byte [eax], 0
inc eax
cmp eax, dword [esp + 4]
mov edx, 0x49efe5
cmove edx, ecx
jmp 0x10065e15
lea ebp, [esp + 0x264]
mov dword [esp + 8], ebp
mov eax, dword [esp + 8]
mov al, byte [eax]
mov byte [esp + 3], al
mov edx, 0x9723cfd4
mov edi, 0x1d0db53
mov ecx, 0x751ecc4d
lea esi, [esp + 0x40]
cmp edx, 0x1d0db52
jg 0x10065e90
cmp edx, 0x9723cfd4
je 0x10065ee4
cmp edx, 0x9c417e2e
je 0x10065ef6
cmp edx, 0xdf096680
jne 0x10065e5f
mov edx, dword [esp + 0x40]
cmp edx, 0x32
mov edx, 0x9c417e2e
cmovb edx, ecx
jmp 0x10065e5f
cmp edx, 0x1d0db53
je 0x10065f35
cmp edx, 0x3cad7952
je 0x10065f1b
cmp edx, 0x751ecc4d
jne 0x10065e5f
mov edx, dword [esp + 0x40]
mov al, byte [esp + edx + 0x266]
mov edx, dword [esp + 0x40]
mov ah, byte [esp + 0x265]
inc dl
xor dl, ah
xor dl, al
xor dl, 0x32
mov eax, dword [esp + 0x40]
mov byte [esp + eax + 0x266], dl
inc dword [esp + 0x40]
mov edx, 0xdf096680
jmp 0x10065e5f
test byte [esp + 3], 1
mov edx, 0x3cad7952
cmove edx, edi
jmp 0x10065e5f
mov edx, dword [esp + 4]
mov byte [esp + 0x298], 0
mov byte [esp + 0x299], 0
mov edx, dword [esp + 8]
mov byte [edx], 0
mov edx, 0x1d0db53
jmp 0x10065e5f
mov dword [esp + 4], esi
mov edx, dword [esp + 4]
mov dword [esp + 0x40], 0
mov edx, 0xdf096680
jmp 0x10065e5f
xor eax, eax
lea edi, [esp + 0x29c]
mov dword [edi], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
push ebx
call fcn.1009ee80
add esp, 4
mov ecx, edi
push eax
push ebx
call fcn.10007b00
lea eax, [esp + 0x24c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
lea eax, [esp + 0x271]
mov byte [eax - 0xd], 1
mov byte [eax - 0xc], 0x3a
mov byte [eax - 0xb], 0x7c
mov byte [eax - 0xa], 0x52
mov byte [eax - 9], 0x4b
mov byte [eax - 8], 0x5a
mov byte [eax - 7], 0x41
mov cl, 0x43
mov byte [eax - 6], cl
mov byte [eax - 5], 0x16
mov byte [eax - 4], 0x6d
mov byte [eax - 3], 0x5d
mov byte [eax - 2], cl
mov byte [eax - 1], 0x4e
lea ecx, [esp + 0x273]
mov dword [esp + 4], ecx
mov edx, 0xb1d02eb7
mov ecx, 0x73e08677
cmp edx, 0x73e08677
je 0x10065fe0
cmp edx, 0xb1d02eb7
jne 0x10065fbe
mov byte [eax], 0
inc eax
cmp eax, dword [esp + 4]
mov edx, 0xb1d02eb7
cmove edx, ecx
jmp 0x10065fbe
mov dword [esp + 8], ebp
mov eax, dword [esp + 8]
mov al, byte [eax]
mov byte [esp + 3], al
mov edx, 0x88c23e7f
mov edi, 0x900f9abe
mov ecx, 0x8de08987
cmp edx, 0xd22ca0ff
jg 0x10066022
cmp edx, 0x88c23e7f
je 0x10066059
cmp edx, 0x8de08987
je 0x10066068
cmp edx, 0x900f9abe
jne 0x10065ffd
jmp 0x100660ea
cmp edx, 0xd22ca100
je 0x100660b1
cmp edx, 0x4bcd24c2
je 0x100660c5
cmp edx, 0x58b8e416
jne 0x10065ffd
mov dword [esp + 4], esi
mov edx, dword [esp + 4]
mov dword [esp + 0x40], 0
mov edx, 0xd22ca100
jmp 0x10065ffd
test byte [esp + 3], 1
mov edx, 0x58b8e416
cmove edx, edi
jmp 0x10065ffd
mov edx, dword [esp + 0x40]
mov al, byte [esp + edx + 0x266]
mov edx, dword [esp + 0x40]
mov ah, byte [esp + 0x265]
mov ebp, 0x7e
sub ebp, edx
and ebp, 0x60
inc edx
and edx, 0x9f
or edx, ebp
xor dl, ah
xor dl, al
xor dl, 0x6b
mov eax, dword [esp + 0x40]
mov byte [esp + eax + 0x266], dl
inc dword [esp + 0x40]
mov edx, 0xd22ca100
jmp 0x10065ffd
mov edx, dword [esp + 0x40]
cmp edx, 0xb
mov edx, 0x4bcd24c2
cmovb edx, ecx
jmp 0x10065ffd
mov edx, dword [esp + 4]
mov byte [esp + 0x271], 0
mov byte [esp + 0x272], 0
mov edx, dword [esp + 8]
mov byte [edx], 0
mov edx, 0x900f9abe
jmp 0x10065ffd
xor esi, esi
lea edi, [esp + 0x24c]
mov dword [edi], esi
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
push ebx
call fcn.1009ee80
add esp, 4
mov ecx, edi
push eax
push ebx
call fcn.10007b00
push esi
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov dword [esp + 0x10], eax
mov ecx, 0x7311aa63
mov dword [esp + 0xc], eax
cmp ecx, 0xfec0fed6
jle 0x10066171
cmp ecx, 0x5f86802e
jg 0x100661c8
cmp ecx, 0x4429c056
jle 0x100662d3
cmp ecx, 0x4429c057
je 0x10066302
cmp ecx, 0x54be5993
jne 0x10066129
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
inc esi
mov ecx, 0x7844966
jmp 0x10066129
cmp ecx, 0xd5de5182
jg 0x10066206
cmp ecx, 0x87c30281
je 0x10066312
cmp ecx, 0xa7130424
je 0x10066347
cmp ecx, 0xc68ed83a
jne 0x10066129
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push dword [esp + 0x2c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x2cc]
cmp dword [eax + 0x10], 0
setne bl
mov ecx, 0x4429c057
jmp 0x10066129
cmp ecx, 0x5f86802f
je 0x10066359
cmp ecx, 0x64ecfe02
je 0x10066396
cmp ecx, 0x7311aa63
jne 0x10066129
cmp dword [esp + 0x10], 0
mov ecx, 0xa7130424
jle 0x10066129
mov ecx, 0x5f86802f
jmp 0x10066129
cmp ecx, 0xd5de5183
je 0x100663a2
cmp ecx, 0xde751ef2
je 0x1006633d
cmp ecx, 0xfb1d54a3
jne 0x10066129
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], esi
lea ebx, [esp + 0x148]
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x18]
mov ebp, 0x104
push ebp
xor edi, edi
push edi
push dword [esp + 0x20]
call fcn.1008c000
add esp, 0xc
lea esi, [esp + 0x44]
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x1c]
push ebp
push edi
push dword [esp + 0x24]
call fcn.1008c000
add esp, 0xc
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
movzx edi, word [eax + ecx*4]
lea ecx, [esp + 0x29c]
call fcn.10007bca
push edi
push eax
push str._s_08x
push ebp
push esi
call fcn.10009906
add esp, 0x14
mov dword [esp + 0x30], ebx
lea ecx, [esp + 0x24c]
call fcn.10007bca
push ebp
push dword [esp + 0x34]
push eax
push esi
call fcn.1005b834
add esp, 0x10
mov ecx, 0x87c30281
test eax, eax
je 0x100662c6
mov ecx, 0xde751ef2
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
jmp 0x10066129
cmp ecx, 0x7844966
jne 0x100663c0
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x20]
mov ecx, 0xfb1d54a3
cmp edx, eax
jl 0x10066129
mov ecx, 0xc68ed83a
jmp 0x10066129
mov ecx, 0xfec0fed7
mov eax, ebx
mov dword [esp + 0xc], eax
jmp 0x10066129
mov edi, dword [esp + 0x30]
push edi
call fcn.1009ee80
add esp, 4
mov ebp, dword [esp + 0x2cc]
mov ecx, ebp
push eax
push edi
call fcn.10008e94
mov ecx, ebp
push 1
push 0x100be460
call fcn.10008e94
mov ecx, 0x54be5993
jmp 0x10066129
mov ecx, 0xfec0fed7
mov dword [esp + 0xc], 0
jmp 0x10066129
mov edi, dword [esp + 0x10]
shl edi, 2
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
cmp dword [esp + 0x14], 0
mov ecx, 0x64ecfe02
je 0x10066129
mov ecx, 0xd5de5183
jmp 0x10066129
mov ecx, 0x4429c057
xor ebx, ebx
jmp 0x10066129
push dword [esp + 0x14]
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov dword [esp + 0x3c], eax
mov ecx, 0x7844966
xor esi, esi
jmp 0x10066129
cmp ecx, 0xfec0fed7
jne 0x10066129
lea ecx, [esp + 0x24c]
call fcn.100087f0
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x29c]
call fcn.100087f0
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0xc]
and bl, 1
mov ecx, dword [esp + 0x2b4]
xor ecx, esp
call fcn.100879aa
mov eax, ebx
add esp, 0x2b8
pop esi
pop edi
pop ebx
pop ebp
ret