Function at 0x44b4a0
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x1c
mov al, byte [esp + 0x24]
mov edx, ecx
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x24], edx
xor esi, esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], esi
mov byte [esp + 0x1d], 0
test al, al
je 0x44b4d0
cmp byte [edx + 0x45], 0
je 0x44b4d0
mov ch, 1
jmp 0x44b4d2
xor ch, ch
mov ebx, dword [esp + 0x30]
mov ebp, ebx
mov byte [esp + 0x14], ch
cmp byte [ebx], 0
je 0x44b800
mov ebx, edx
nop word [eax + eax]
mov byte [esp + 0x1c], 0
mov cl, byte [ebp]
movsx eax, cl
sub eax, 0x7b
je 0x44b540
sub eax, 2
je 0x44b573
test ch, ch
je 0x44b510
inc esi
mov dword [esp + 0x20], esi
jmp 0x44b573
push 0
mov byte [esp + 0x20], cl
mov byte [esp + 0x19], 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ecx
push 1
lea edx, [esp + 0x21]
lea ecx, [esp + 0x28]
call fcn.0041c000
mov dh, al
add esp, 0xc
mov byte [esp + 0x13], dh
jmp 0x44b6e1
lea edi, [ebp + 1]
push 0x7d
push edi
call fcn.004b7be9
mov esi, eax
add esp, 8
test esi, esi
je 0x44b567
mov ecx, esi
sub ecx, ebp
sub ecx, 1
jne 0x44b5e1
inc esi
cmp byte [esi], 0x7d
je 0x44b5e6
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
mov ch, byte [esp + 0x14]
inc ebp
cmp byte [ebp], 0
jne 0x44b4f0
mov ebx, dword [esp + 0x30]
mov edx, dword [esp + 0x24]
test esi, esi
je 0x44b7fc
mov eax, dword [edx + 0x1c]
cmp esi, eax
jbe 0x44b797
test eax, eax
je 0x44b5a8
push dword [edx + 0x18]
call fcn.004b2343
add esp, 4
lea eax, [esi + 1]
push eax
call fcn.004b2c3e
mov edx, dword [esp + 0x28]
add esp, 4
mov dword [edx + 0x18], eax
test eax, eax
jne 0x44b794
push 0x4d0335
push str.Out_of_memory.
mov ecx, 0x4e9a70
call fcn.004470d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x10
cmp ecx, 1
jne 0x44b606
mov ch, byte [esp + 0x14]
test ch, ch
je 0x44b600
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
inc esi
mov dword [esp + 0x20], esi
jmp 0x44b573
mov al, byte [edi]
mov byte [esp + 0x1c], al
push 0
mov byte [esi], 0
mov byte [esp + 0x1b], 0
mov byte [esp + 0x19], 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ecx
push 1
lea edx, [esp + 0x21]
mov ecx, edi
call fcn.0041c000
add esp, 0xc
mov byte [esp + 0x13], al
test al, al
je 0x44b6bc
movzx ecx, byte [edi]
mov dword [esp + 0x28], ecx
test ecx, 0xffffff80
je 0x44b64c
xor edi, edi
jmp 0x44b65d
push 2
push ecx
call fcn.004b47c1
mov ecx, dword [esp + 0x30]
add esp, 8
mov edi, eax
mov dl, cl
and dl, 0xdf
test edi, edi
movzx eax, dl
movzx edx, cl
cmove eax, edx
cmp al, 0x56
jne 0x44b681
mov cl, byte [ebp + 2]
call fcn.00412890
cmp al, 0x4b
jne 0x44b681
mov al, 1
jmp 0x44b683
xor al, al
cmp dword [ebx + 8], 0
mov byte [esp + 0x16], al
je 0x44b6d0
test al, al
jne 0x44b6d0
mov al, byte [esp + 0x13]
mov dl, 1
mov cl, al
call fcn.0041c560
movzx edi, ax
mov dword [esp + 0x18], edi
test di, di
je 0x44b6d4
xor edi, 0x100
xor dh, dh
mov dword [esp + 0x18], edi
mov byte [esp + 0x13], dh
jmp 0x44b6d8
lea edx, [esp + 0x17]
mov ecx, edi
call fcn.0041bf10
movzx edi, ax
mov dword [esp + 0x18], edi
jmp 0x44b6d4
mov edi, dword [esp + 0x18]
mov dh, byte [esp + 0x13]
mov byte [esi], 0x7d
mov ebp, esi
mov esi, dword [esp + 0x20]
test dh, dh
je 0x44b764
cmp byte [esp + 0x1c], 0
je 0x44b71f
cmp byte [esp + 0x34], 0
je 0x44b71f
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_IsCharAlphaA]
test eax, eax
jne 0x44b71b
movzx eax, byte [esp + 0x13]
lea ecx, [ebx + 0x54]
add ecx, eax
mov al, byte [esp + 0x15]
and al, 0x30
neg al
sbb al, al
add al, 2
or byte [ecx], al
jmp 0x44b764
mov dh, byte [esp + 0x13]
mov dl, byte [esp + 0x38]
lea ecx, [ebx + 0x54]
movzx eax, dh
add ecx, eax
mov al, dl
not al
mov byte [esp + 0x15], al
and al, byte [ecx]
or al, byte [esp + 0x3c]
mov byte [ecx], al
test dl, dl
je 0x44b768
cmp byte [esp + 0x16], 0
jne 0x44b768
xor dl, dl
mov cl, dh
call fcn.0041c560
movzx eax, ax
test ax, ax
je 0x44b764
mov cl, byte [esp + 0x15]
add eax, 0x154
add eax, ebx
and byte [eax], cl
mov dl, byte [esp + 0x38]
test di, di
jne 0x44b778
cmp byte [esp + 0x17], 0
je 0x44b56f
movzx eax, di
lea ecx, [ebx + 0x154]
add ecx, eax
mov al, dl
not al
and al, byte [ecx]
or al, byte [esp + 0x3c]
mov byte [ecx], al
jmp 0x44b56f
mov dword [edx + 0x1c], esi
mov cl, byte [ebx]
mov esi, dword [edx + 0x18]
test cl, cl
je 0x44b7ea
movsx eax, cl
sub eax, 0x7b
je 0x44b7b2
sub eax, 2
je 0x44b7e2
mov byte [esi], cl
inc esi
jmp 0x44b7e2
lea edi, [ebx + 1]
push 0x7d
push edi
call fcn.004b7be9
mov edx, eax
add esp, 8
test edx, edx
je 0x44b7e2
cmp edx, edi
jne 0x44b7d4
cmp byte [edx + 1], 0x7d
lea ecx, [edx + 1]
cmove edx, ecx
lea eax, [ebx + 2]
cmp edx, eax
jne 0x44b7e0
mov al, byte [edi]
mov byte [esi], al
inc esi
mov ebx, edx
mov cl, byte [ebx + 1]
inc ebx
test cl, cl
jne 0x44b7a0
pop edi
mov byte [esi], 0
mov eax, 1
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x10
mov al, byte [esp + 0x34]
test al, al
je 0x44b826
cmp dword [edx + 0x1c], 0
je 0x44b81f
mov eax, dword [edx + 0x18]
pop edi
pop esi
pop ebp
mov byte [eax], 0
mov eax, 1
pop ebx
add esp, 0x1c
ret 0x10
mov dword [edx + 0x18], 0x4d0335
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret 0x10