Function at 0x44c490
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x14
push ebx
push ebp
xor eax, eax
mov edx, ecx
push esi
mov word [esp + 0x16], ax
xor esi, esi
mov al, byte [esp + 0x28]
push edi
xor edi, edi
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], esi
test al, al
je 0x44c4c3
cmp byte [edx + 0x45], 0
mov byte [esp + 0x12], 1
jne 0x44c4c8
mov byte [esp + 0x12], 0
mov ebx, dword [esp + 0x28]
mov ebp, ebx
cmp word [ebx], si
je 0x44c7de
mov ebx, ecx
nop dword [eax]
xor eax, eax
mov word [esp + 0x18], ax
movzx ecx, word [ebp]
mov eax, ecx
sub eax, 0x7b
je 0x44c536
sub eax, 2
je 0x44c56e
cmp byte [esp + 0x12], 0
je 0x44c505
inc esi
mov dword [esp + 0x1c], esi
jmp 0x44c56e
push 0
mov word [esp + 0x1c], cx
mov byte [esp + 0x15], 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ecx
push 1
lea edx, [esp + 0x1d]
lea ecx, [esp + 0x24]
call fcn.0041ca20
mov dh, al
add esp, 0xc
mov byte [esp + 0x10], dh
jmp 0x44c6af
lea edi, [ebp + 2]
push 0x7d
push edi
call fcn.004b7267
mov esi, eax
add esp, 8
test esi, esi
je 0x44c566
mov ecx, esi
sub ecx, ebp
sar ecx, 1
sub ecx, 1
jne 0x44c5e3
add esi, 2
cmp word [esi], 0x7d
je 0x44c5e8
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
add ebp, 2
cmp word [ebp], 0
jne 0x44c4e0
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
test esi, esi
je 0x44c7da
mov eax, dword [edx + 0x1c]
cmp esi, eax
jbe 0x44c761
test eax, eax
je 0x44c5a6
push dword [edx + 0x18]
call fcn.004bb7ab
add esp, 4
lea eax, [esi*2 + 2]
push eax
call fcn.004bb7a0
mov edx, dword [esp + 0x24]
add esp, 4
mov dword [edx + 0x18], eax
test eax, eax
jne 0x44c75e
push 0x4da3cc
push 0x4ee268
mov ecx, 0x509c28
call fcn.00447960
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
cmp ecx, 1
jne 0x44c605
cmp byte [esp + 0x12], 0
je 0x44c5fd
mov esi, dword [esp + 0x1c]
inc esi
mov dword [esp + 0x1c], esi
jmp 0x44c56a
mov ax, word [edi]
mov word [esp + 0x18], ax
xor eax, eax
push eax
mov word [esi], ax
mov byte [esp + 0x15], al
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ecx
push 1
lea edx, [esp + 0x1d]
mov ecx, edi
call fcn.0041ca20
add esp, 0xc
mov byte [esp + 0x10], al
test al, al
je 0x44c689
mov cx, word [edi]
call fcn.00412f70
cmp ax, 0x56
jne 0x44c650
mov cx, word [ebp + 4]
call fcn.00412f70
cmp ax, 0x4b
jne 0x44c650
mov al, 1
jmp 0x44c652
xor al, al
cmp dword [ebx + 8], 0
mov byte [esp + 0x13], al
je 0x44c699
test al, al
jne 0x44c699
mov cl, byte [esp + 0x10]
mov dl, 1
call fcn.0041cf80
movzx edi, ax
mov dword [esp + 0x14], edi
test di, di
je 0x44c69d
xor edi, 0x100
xor dh, dh
mov dword [esp + 0x14], edi
mov byte [esp + 0x10], dh
jmp 0x44c6a1
mov ecx, edi
call fcn.0041c940
movzx edi, ax
mov dword [esp + 0x14], edi
jmp 0x44c69d
mov edi, dword [esp + 0x14]
mov dh, byte [esp + 0x10]
mov eax, 0x7d
mov ebp, esi
mov word [esi], ax
mov esi, dword [esp + 0x1c]
test dh, dh
je 0x44c732
cmp word [esp + 0x18], 0
je 0x44c6ed
cmp byte [esp + 0x2c], 0
je 0x44c6ed
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_IsCharAlphaW]
test eax, eax
jne 0x44c6e9
movzx eax, byte [esp + 0x10]
lea ecx, [eax + ebx]
mov al, byte [esp + 0x11]
and al, 0x30
neg al
sbb al, al
add al, 2
or byte [ecx + 0x54], al
jmp 0x44c732
mov dh, byte [esp + 0x10]
mov dl, byte [esp + 0x30]
movzx eax, dh
lea ecx, [eax + ebx]
mov al, dl
not al
mov byte [esp + 0x11], al
and al, byte [ecx + 0x54]
or al, byte [esp + 0x34]
mov byte [ecx + 0x54], al
test dl, dl
je 0x44c736
cmp byte [esp + 0x13], 0
jne 0x44c736
xor dl, dl
mov cl, dh
call fcn.0041cf80
movzx eax, ax
test ax, ax
je 0x44c732
mov cl, byte [esp + 0x11]
add eax, 0x154
add eax, ebx
and byte [eax], cl
mov dl, byte [esp + 0x30]
test di, di
je 0x44c56e
movzx eax, di
lea ecx, [eax + ebx]
mov al, dl
not al
and al, byte [ecx + 0x154]
or al, byte [esp + 0x34]
mov byte [ecx + 0x154], al
jmp 0x44c56e
mov dword [edx + 0x1c], esi
movzx eax, word [ebx]
mov esi, dword [edx + 0x18]
test ax, ax
je 0x44c7c6
mov ecx, eax
nop
movzx eax, cx
sub eax, 0x7b
je 0x44c785
sub eax, 2
je 0x44c7b8
mov word [esi], cx
add esi, 2
jmp 0x44c7b8
lea edi, [ebx + 2]
push 0x7d
push edi
call fcn.004b7267
add esp, 8
test eax, eax
je 0x44c7b8
cmp eax, edi
jne 0x44c7a6
cmp word [eax + 2], 0x7d
lea ecx, [eax + 2]
cmove eax, ecx
lea ecx, [ebx + 4]
cmp eax, ecx
jne 0x44c7b6
mov cx, word [edi]
mov word [esi], cx
add esi, 2
mov ebx, eax
movzx eax, word [ebx + 2]
add ebx, 2
mov ecx, eax
test ax, ax
jne 0x44c770
xor eax, eax
pop edi
mov word [esi], ax
mov eax, 1
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
mov al, byte [esp + 0x2c]
test al, al
je 0x44c804
cmp dword [edx + 0x1c], 0
je 0x44c7fd
mov eax, dword [edx + 0x18]
xor ecx, ecx
pop edi
pop esi
pop ebp
mov word [eax], cx
lea eax, [ecx + 1]
pop ebx
add esp, 0x14
ret 0x10
mov dword [edx + 0x18], 0x4da3cc
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret 0x10