Function at 0x432960
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x44d8
call fcn.004c6f60
mov eax, dword [0x4f0b10]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x24], eax
cmp eax, ebx
jne 0x4329af
cmp dword [0x4f1c98], 1
mov edx, dword [ebp + 8]
sete al
test al, al
sete al
movzx ecx, al
push ecx
push edx
mov dword [0x4f1c98], ebx
call fcn.0042d120
lea esp, [ebp - 0x44e4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x4f0b6c]
mov edi, dword [0x4f0b64]
mov esi, dword [0x4f0b68]
mov dword [ebp - 0x20], eax
mov dword [0x4f1c98], ebx
mov dword [0x4f1cc4], 1
mov word [0x4f1cc8], bx
mov dword [0x4f1cd4], 0x3fff
mov al, byte [edi]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov byte [ebp - 6], bl
test al, al
je 0x432ac0
lea ebx, [edi + 1]
lea ebx, [ebx]
movzx esi, al
test esi, 0xffffff80
jne 0x432a1d
push 2
push esi
call fcn.004bb66e
add esp, 8
test eax, eax
je 0x432a1d
and esi, 0xffffffdf
mov eax, esi
movsx eax, al
add eax, 0xffffffd6
cmp eax, 0x2c
ja case.0x432a35.43
movzx ecx, byte [eax + 0x43327c]
jmp dword [ecx*4 + 0x433254]
mov byte [0x4f1cc4], 0
jmp case.0x432a35.43
mov byte [0x4f1cc5], 1
jmp case.0x432a35.43
mov byte [0x4f1cc6], 1
jmp case.0x432a35.43
mov byte [0x4f1cc7], 1
jmp case.0x432a35.43
push ebx
call fcn.004bb6b6
add esp, 4
mov dword [0x4f1cd4], eax
cmp eax, 0x3fff
jle case.0x432a35.43
mov dword [0x4f1cd4], 0x3fff
jmp case.0x432a35.43
mov esi, ebx
call fcn.0041a440
fmul qword [0x4e58d8]
call fcn.004c9200
mov dword [ebp - 0x18], eax
jmp case.0x432a35.43
mov byte [0x4f1cc8], 1
jmp case.0x432a35.43
mov byte [0x4f1cc9], 1
jmp case.0x432a35.43
mov byte [ebp - 6], 1
mov al, byte [edi + 1]
inc edi
inc ebx
test al, al
jne 0x432a00
mov esi, dword [ebp - 0x1c]
xor ebx, ebx
push 0xff
lea edx, [ebp - 0x2d3]
push ebx
push edx
mov byte [ebp - 0x2d4], 0
call fcn.004c16a0
add esp, 0xc
push 0x1ff
lea eax, [ebp - 0x4d3]
push ebx
push eax
mov byte [ebp - 0x4d4], 0
call fcn.004c16a0
add esp, 0xc
mov byte [ebp - 0xb], 0
cmp byte [esi], 0
mov dword [ebp - 0x14], ebx
mov eax, esi
mov dword [ebp - 0x10], esi
je 0x432c29
mov byte [ebp - 0xc], 0
mov cl, byte [eax]
movsx eax, cl
sub eax, 0x7b
je 0x432b59
sub eax, 2
je 0x432c19
cmp byte [ebp - 6], 0
je 0x432b32
inc dword [ebp - 0x14]
jmp 0x432c19
push 0
mov byte [ebp - 0xc], cl
mov byte [ebp - 5], 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 1
lea ecx, [ebp - 5]
lea eax, [ebp - 0xc]
call fcn.00412c00
add esp, 8
mov bl, al
jmp 0x432be1
mov edi, dword [ebp - 0x10]
inc edi
push 0x7d
push edi
call fcn.004bb121
mov esi, eax
add esp, 8
test esi, esi
je 0x432c19
sub eax, dword [ebp - 0x10]
dec eax
jne 0x432b85
cmp byte [esi + 1], 0x7d
jne 0x432c19
inc esi
jmp 0x432b8a
cmp eax, 1
jne 0x432b9d
cmp byte [ebp - 6], 0
je 0x432b98
inc dword [ebp - 0x14]
jmp 0x432c19
mov cl, byte [edi]
mov byte [ebp - 0xc], cl
push 0
mov byte [esi], 0
mov byte [ebp - 5], 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 1
lea ecx, [ebp - 5]
mov eax, edi
call fcn.00412c00
mov bl, al
add esp, 8
test bl, bl
jne 0x432bdb
mov eax, edi
call fcn.00412b50
movzx eax, ax
test ax, ax
je 0x432bdb
mov edx, eax
mov byte [ebp + edx - 0x4d4], 1
mov byte [esi], 0x7d
mov dword [ebp - 0x10], esi
test bl, bl
je 0x432c19
movzx esi, bl
or byte [ebp + esi - 0x2d4], 1
cmp byte [ebp - 0xc], 0
lea esi, [ebp + esi - 0x2d4]
je 0x432c19
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaA]
test eax, eax
jne 0x432c19
test byte [ebp - 5], 0x30
je 0x432c16
or byte [esi], 2
jmp 0x432c19
or byte [esi], 4
mov eax, dword [ebp - 0x10]
inc eax
cmp byte [eax], 0
mov dword [ebp - 0x10], eax
jne 0x432b0d
mov eax, dword [ebp - 0x14]
mov dword [0x4f1ca4], 0x4d6959
test eax, eax
je 0x432c99
inc eax
call fcn.004c41d0
mov esi, dword [ebp - 0x1c]
mov eax, esp
mov dword [0x4f1ca4], eax
cmp byte [esi], 0
mov ebx, eax
je 0x432c96
mov cl, byte [esi]
movsx eax, cl
sub eax, 0x7b
je 0x432c65
sub eax, 2
je 0x432c90
mov byte [ebx], cl
inc ebx
jmp 0x432c90
lea edi, [esi + 1]
push 0x7d
push edi
call fcn.004bb121
add esp, 8
test eax, eax
je 0x432c90
cmp eax, edi
jne 0x432c82
cmp byte [eax + 1], 0x7d
jne 0x432c82
inc eax
add esi, 2
cmp eax, esi
jne 0x432c8e
mov cl, byte [edi]
mov byte [ebx], cl
inc ebx
mov esi, eax
inc esi
cmp byte [esi], 0
jne 0x432c51
mov byte [ebx], 0
mov edx, dword [ebp - 0x20]
mov dword [0x4f1cb4], 0
cmp byte [edx], 0
je 0x432eb0
cmp dword [0x4f1cb0], 0
mov ebx, 0x400
jne 0x432cfc
push 0x1000
call fcn.004ba2ed
add esp, 4
mov dword [0x4f1cb0], eax
test eax, eax
jne 0x432cf6
mov ecx, dword [ebp + 8]
push 0x4d6959
push 0
push str.Out_of_memory.
call fcn.0042d2f0
lea esp, [ebp - 0x44e4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [0x4f1cb8], ebx
mov esi, dword [ebp + 8]
cmp byte [esi + 2], 3
ja 0x432d09
xor eax, eax
jmp 0x432d7f
mov eax, dword [0x4f0b1c]
test eax, eax
je 0x432d6e
mov cl, byte [eax + 0x17]
test cl, cl
jne 0x432d21
mov edx, dword [eax + 0xc]
mov dl, byte [edx + 0x17]
jmp 0x432d23
mov dl, cl
cmp dl, 1
jne 0x432d6e
movzx edx, word [esi]
imul edx, edx, 0x15
test byte [edx + 0x4ec7ae], 0x80
jne 0x432d6e
cmp dword [0x4f0d40], 0
jne 0x432d5f
test cl, cl
jne 0x432d49
mov ecx, dword [eax + 0xc]
jmp 0x432d4b
mov ecx, eax
test byte [ecx + 0x15], 0xa
jne 0x432d5f
xor edx, edx
cmp dword [ecx + 0xc], edx
setne dl
mov ecx, edx
test ecx, ecx
je 0x432d6e
cmp eax, dword [0x4f13d8]
je 0x432d6e
call fcn.0041a920
jmp 0x432d7f
mov eax, dword [0x4f0b6c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x432d76
sub eax, edx
inc eax
cmp eax, dword [0x4f1cc0]
jbe 0x432ded
mov dword [0x4f1cc0], eax
cmp eax, 0x1000
ja 0x432d9e
mov dword [0x4f1cc0], 0x1000
mov eax, dword [0x4f1cbc]
test eax, eax
je 0x432db0
push eax
call fcn.004ba14c
add esp, 4
mov eax, dword [0x4f1cc0]
push eax
call fcn.004ba2ed
add esp, 4
mov dword [0x4f1cbc], eax
test eax, eax
jne 0x432df2
push 0x4d6959
push eax
push str.Out_of_memory.
mov ecx, esi
mov dword [0x4f1cc0], eax
call fcn.0042d2f0
lea esp, [ebp - 0x44e4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x4f1cbc]
mov ecx, dword [0x4f1cb0]
mov edx, dword [0x4f1cb4]
mov edi, dword [ebp - 0x20]
mov dword [ecx + edx*4], eax
cmp byte [edi], 0
mov esi, dword [0x4f1cbc]
je 0x432e93
mov al, byte [edi]
cmp al, 0x2c
je 0x432e1e
mov byte [esi], al
inc esi
jmp 0x432e8d
cmp byte [edi + 1], 0x2c
jne 0x432e2b
mov byte [esi], 0x2c
inc esi
inc edi
jmp 0x432e8d
mov byte [esi], 0
mov ecx, dword [0x4f1cb0]
mov eax, dword [0x4f1cb4]
mov edx, dword [ecx + eax*4]
cmp byte [edx], 0
je 0x432e59
inc eax
mov dword [0x4f1cb4], eax
inc esi
mov dword [ecx + eax*4], esi
mov byte [esi], 0
mov eax, dword [0x4f1cb4]
mov ecx, dword [0x4f1cb0]
cmp byte [edi + 1], 0
je 0x432e8d
mov edx, dword [0x4f1cb8]
cmp eax, edx
jb 0x432e8d
lea eax, [edx*4 + 0x1000]
push eax
push ecx
call fcn.004bb6d7
add esp, 8
test eax, eax
je 0x432cd3
add dword [0x4f1cb8], ebx
mov dword [0x4f1cb0], eax
inc edi
cmp byte [edi], 0
jne 0x432e13
mov byte [esi], 0
mov ecx, dword [0x4f1cb0]
mov edx, dword [0x4f1cb4]
mov eax, dword [ecx + edx*4]
cmp byte [eax], 0
je 0x432eb0
inc dword [0x4f1cb4]
cmp byte [0x4f0d31], 0
je 0x432eee
mov ecx, dword [0x4f0bd8]
push 0xc
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
test eax, eax
je 0x432ed3
mov byte [0x4f0d31], 0
push 0x10
call dword [sym.imp.USER32.dll_GetQueueStatus]
shr eax, 0x10
test al, 0x10
je 0x432eee
push 1
push 0xffffffffffffffff
call fcn.00401910
add esp, 8
or byte [0x4f14e6], 1
cmp dword [0x4f0d08], 0
lea edx, [ebp - 0x44d4]
lea eax, [ebp - 0x2d4]
lea ecx, [ebp - 0x4d4]
mov byte [ebp - 0x44d4], 0
mov dword [0x4f1ccc], edx
mov dword [0x4f1cd0], 0
mov dword [0x4f1c9c], eax
mov dword [0x4f1ca0], ecx
mov dword [0x4f1c98], 1
mov byte [0x4f0d2c], 1
jne 0x432f55
mov edx, dword [0x4ec518]
movzx eax, word [edx]
push eax
call fcn.00408200
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
jle 0x432f90
cmp byte [0x4f0d31], 0
jne 0x432f90
cmp eax, 0xa
jge 0x432f6f
mov eax, 0xa
mov ecx, dword [0x4f0bd8]
push 0x403dc0
push eax
push 0xc
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
setne dl
mov byte [0x4f0d31], dl
nop
push 1
push 0x8000012f
call fcn.00401910
mov eax, dword [0x4f1c98]
add esp, 8
cmp eax, 1
je 0x432f90
add eax, 0xfffffffe
cmp eax, 3
ja case.default.0x432fb5
jmp dword [eax*4 + 0x4332ac]
push 0x4dd6f4
call fcn.0049be50
add esp, 4
push 1
push 0
push 0xffffffffffffffff
push eax
mov eax, dword [0x4f13d8]
push eax
jmp 0x4331e0
push 0x4dd704
call fcn.0049be50
mov ecx, dword [0x4f13d8]
add esp, 4
push 1
push 0
push 0xffffffffffffffff
push eax
push ecx
jmp 0x4331e0
mov edx, dword [str.EndKey:]
mov eax, dword [0x4dd718]
push 0x78
lea ecx, [ebp - 0x9c]
push 0
push ecx
mov dword [ebp - 0xa4], edx
mov dword [ebp - 0xa0], eax
call fcn.004c16a0
mov al, byte [0x4f1cac]
add esp, 0xc
test al, al
je 0x433040
mov byte [ebp - 0x9d], al
mov byte [ebp - 0x9c], 0
jmp 0x4331a6
cmp byte [0x4f1cae], 0
je 0x433108
push 0xff
lea edx, [ebp - 0x1d3]
push 0
push edx
mov byte [ebp - 0x1d4], 0
call fcn.004c16a0
or byte [ebp - 0x1c4], 0x80
add esp, 0xc
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor esi, esi
test eax, eax
je 0x4330b6
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push esi
push eax
call edi
mov esi, eax
lea eax, [ebp - 0xd4]
push eax
push esi
mov dword [ebp - 0xd4], 0x30
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x4330b6
mov eax, dword [ebp - 0xc8]
test eax, eax
je 0x4330b6
push 0
push eax
call edi
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
xor ecx, ecx
cmp dword [0x4f0d68], ecx
push eax
setne cl
lea edx, [ebp - 0x9d]
lea eax, [ebp - 0x1d4]
xor bl, bl
push ecx
movzx ecx, byte [0x4f1ca8]
push edx
push eax
push ecx
call fcn.004131c0
movzx edx, ax
movzx eax, byte [0x4f1ca8]
add esp, 4
push edx
push eax
call dword [sym.imp.USER32.dll_ToAsciiEx]
mov byte [ebp + eax - 0x9d], bl
jmp 0x4331a6
cmp byte [0x4f1cad], 0
je 0x43316d
mov cx, word [0x4f1caa]
xor eax, eax
lea ebx, [ebx]
cmp word [eax*8 + 0x4f282c], cx
je 0x43314e
inc eax
cmp eax, 0xd
jl 0x433120
movzx eax, cx
push eax
push str.sc_03X
mov esi, 0x79
lea edi, [ebp - 0x9d]
call fcn.004a2f10
add esp, 8
jmp 0x433188
mov ecx, dword [eax*8 + 0x4f2828]
push 0x78
push ecx
lea edx, [ebp - 0x9d]
push edx
call fcn.004bd1c0
add esp, 0xc
mov byte [ebp - 0x25], 0
jmp 0x433188
mov bl, byte [0x4f1ca8]
push 1
mov eax, 0x79
lea ecx, [ebp - 0x9d]
call fcn.004129c0
add esp, 4
mov cl, byte [ebp - 0x9d]
sub cl, 0x61
cmp cl, 0x19
ja 0x4331a6
cmp byte [ebp - 0x9c], 0
jne 0x4331a6
add byte [ebp - 0x9d], 0xe0
mov eax, dword [0x4f13d8]
push 1
push 0
push 0xffffffffffffffff
lea edx, [ebp - 0xa4]
push edx
push eax
jmp 0x4331e0
push 0x4dd71c
jmp 0x432fe0
push 0x4dd728
call fcn.0049be50
mov edx, dword [0x4f13d8]
add esp, 4
push 1
push 0
push 0xffffffffffffffff
push eax
push edx
call fcn.004a5c20
cmp byte [0x4f0d31], 0
mov dword [0x4f1c98], 0
je 0x43322c
mov eax, dword [0x4f0bd8]
push 0xc
push eax
call dword [sym.imp.USER32.dll_KillTimer]
test eax, eax
je 0x433211
mov byte [0x4f0d31], 0
push 0x10
call dword [sym.imp.USER32.dll_GetQueueStatus]
shr eax, 0x10
test al, 0x10
je 0x43322c
push 1
push 0xffffffffffffffff
call fcn.00401910
add esp, 8
mov edx, dword [ebp - 0x24]
push 1
push 0
push 0xffffffffffffffff
lea ecx, [ebp - 0x44d4]
push ecx
push edx
call fcn.004a5c20
lea esp, [ebp - 0x44e4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4