Function at 0x72972dd8
Capabilities:
Get keyboard layout

Disassembly:
and byte [esi + 0x27], 0xdf
jmp 0x72972e92
mov dword [esi + 0x70], 0x80000005
mov dword [esi + 0x74], 0x80000008
jmp 0x72972ecf
mov dword [esi + 0x98], ebx
jmp 0x7297308c
sub esp, 0x94
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x24]
and eax, 0x3f7eafff
mov dword [esi + 0xb0], ebx
movzx edx, word [ecx + 0x2c]
mov di, word [ecx + 0x28]
and dx, 0x8081
shl edx, 0x10
or eax, edx
or eax, 0x815000
test di, 0x800
mov dword [esi + 0x24], eax
jne 0x72972e1d
or al, 4
mov dword [esi + 0x24], eax
mov eax, edi
shr eax, 0xf
test al, 1
je 0x72972e2a
or byte [esi + 0x24], 0x80
mov eax, dword [ecx]
mov edi, dword [eax]
mov eax, edi
shl eax, 0x17
sar eax, 0x1f
test al, al
je 0x72972e40
or word [esi + 0x26], 0x220
cmp dword [0x72a4e898], ebx
je 0x72972e92
mov eax, dword [esi + 0x30]
test byte [eax + 0x20], 0x10
jne 0x72972e92
cmp dword [eax + 0x58], ebx
je 0x72972d2d
cmp ecx, dword [0x72a4f268]
je 0x72972d2d
cmp ecx, dword [0x72a4f258]
je 0x72972d2d
mov eax, dword [eax + 0xa0]
cmp eax, ebx
je 0x72972d2d
mov ecx, dword [esi + 0x24]
mov eax, dword [eax + 0x24]
xor eax, ecx
and eax, 0x20000000
xor eax, ecx
mov dword [esi + 0x24], eax
or dword [esi + 0x24], 2
cmp dword [0x72a4e7e8], ebx
mov eax, dword [esi + 0x24]
jne 0x72972eb1
test edi, 0x80000
je 0x72972eb1
or eax, 0x40000
mov dword [esi + 0x24], eax
mov eax, edi
shl eax, 0xd
sar eax, 0x1f
test al, al
je 0x72972d36
mov dword [esi + 0x70], 0x8000000f
mov dword [esi + 0x74], 0x80000012
xor eax, eax
lea edi, [esi + 0x58]
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x34], ebx
mov byte [esi + 0xce], bl
mov word [esi + 0xcc], bx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [esi + 0x68]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esi + 0x28]
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x9c], ebx
cmp word [eax + 0x46], bx
mov dword [esi + 0xa0], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xac], ebx
mov dword [esi + 0xb4], ebx
mov dword [esi + 0xb8], ebx
mov dword [esi + 0xbc], ebx
mov word [esi + 0xc2], bx
mov word [esi + 0xc0], bx
mov word [esi + 0xc6], bx
mov word [esi + 0xc8], bx
mov word [esi + 0xca], bx
mov dword [esi + 0xa4], ebx
je 0x72972d49
cmp dword [esi + 0x98], ebx
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
jne 0x72972fb3
push 0x14
push 8
push dword [0x72a4e7cc]
call edi
cmp eax, ebx
mov dword [esi + 0x98], eax
je 0x729730c8
mov ebp, dword [esi + 0x98]
cmp dword [ebp + 8], ebx
jne 0x72972fd6
mov eax, dword [esi + 0x28]
movzx eax, word [eax + 0x46]
shl eax, 2
push eax
push 8
push dword [0x72a4e7cc]
call edi
mov dword [ebp + 8], eax
cmp dword [ebp], ebx
jne 0x72972ff9
mov eax, dword [esi + 0x28]
mov ebp, dword [esi + 0x98]
movzx eax, word [eax + 0x46]
shl eax, 2
push eax
push 8
push dword [0x72a4e7cc]
call edi
mov dword [ebp], eax
cmp dword [ebp + 4], ebx
jne 0x7297301c
mov eax, dword [esi + 0x28]
mov ebp, dword [esi + 0x98]
movzx eax, word [eax + 0x46]
shl eax, 2
push eax
push 8
push dword [0x72a4e7cc]
call edi
mov dword [ebp + 4], eax
cmp dword [ebp + 0x10], ebx
jne 0x7297303e
mov eax, dword [esi + 0x28]
mov ebp, dword [esi + 0x98]
movzx eax, word [eax + 0x46]
shl eax, 2
push eax
push ebx
push dword [0x72a4e7cc]
call edi
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0xc], ebx
jne 0x72973061
mov eax, dword [esi + 0x28]
mov ebp, dword [esi + 0x98]
movzx eax, word [eax + 0x46]
shl eax, 2
push eax
push 8
push dword [0x72a4e7cc]
call edi
mov dword [ebp + 0xc], eax
cmp dword [ebp + 8], ebx
je 0x729730c8
cmp dword [ebp], ebx
je 0x729730c8
cmp dword [ebp + 4], ebx
je 0x729730c8
mov edi, dword [ebp + 0x10]
cmp edi, ebx
je 0x729730c8
cmp dword [ebp + 0xc], ebx
je 0x729730c8
mov eax, dword [esi + 0x28]
movzx ecx, word [eax + 0x46]
cmp ecx, ebx
jle 0x7297308c
or eax, 0xffffffff
rep stosd dword es:[edi], eax
cmp word [0x72a4f8b8], 0xffff
jne 0x729730c8
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x729730b7
mov eax, dword [esp + 0x20]
mov dword [0x72a50774], eax
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
and ax, 0x3ff
mov word [0x72a4f8b8], ax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret