Function at 0x432aa0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x44dc
call fcn.00492d90
mov eax, dword [0x4b0840]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x24], eax
push ebx
push esi
push edi
test eax, eax
jne 0x432aee
cmp dword [0x4b0960], 1
mov dword [0x4b0960], 0
sete al
test al, al
sete al
movzx eax, al
push eax
call fcn.0042de70
lea esp, [ebp - 0x44e8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4b08ac]
mov esi, dword [0x4b08a4]
mov ebx, dword [0x4b08a8]
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [0x4b0960], 0
mov dword [0x4b098c], 1
mov word [0x4b0990], 0
mov dword [0x4b099c], 0x3fff
mov dword [ebp - 0x14], eax
mov byte [ebp - 1], al
mov al, byte [esi]
mov dword [ebp - 0x18], ebx
test al, al
je 0x432bfe
lea edi, [esi + 1]
movzx ebx, al
test ebx, 0xffffff80
jne 0x432b5e
push 2
push ebx
call fcn.0048708c
add esp, 8
test eax, eax
je 0x432b5e
and ebx, 0xffffffdf
movsx eax, bl
add eax, 0xffffffd6
cmp eax, 0x2c
ja case.0x432b74.43
movzx eax, byte [eax + 0x4333ec]
jmp dword [eax*4 + 0x4333c4]
mov byte [0x4b098c], 0
jmp case.0x432b74.43
mov byte [0x4b098d], 1
jmp case.0x432b74.43
mov byte [0x4b098e], 1
jmp case.0x432b74.43
mov byte [0x4b098f], 1
jmp case.0x432b74.43
push edi
call fcn.00487180
add esp, 4
mov dword [0x4b099c], eax
cmp eax, 0x3fff
jle case.0x432b74.43
mov dword [0x4b099c], 0x3fff
jmp case.0x432b74.43
mov ecx, edi
call fcn.004145b0
mulsd xmm0, qword [0x4a6668]
cvttsd2si eax, xmm0
mov dword [ebp - 0x14], eax
jmp case.0x432b74.43
mov byte [0x4b0990], 1
jmp case.0x432b74.43
mov byte [0x4b0991], 1
jmp case.0x432b74.43
mov byte [ebp - 1], 1
mov al, byte [esi + 1]
inc esi
inc edi
test al, al
jne 0x432b41
mov ebx, dword [ebp - 0x18]
push 0xff
lea eax, [ebp - 0x1d7]
mov byte [ebp - 0x1d8], 0
push 0
push eax
call fcn.0048fd00
add esp, 0xc
mov byte [ebp - 0x4d8], 0
lea eax, [ebp - 0x4d7]
push 0x1ff
push 0
push eax
call fcn.0048fd00
xor ecx, ecx
add esp, 0xc
mov byte [ebp - 0xb], cl
mov edi, ebx
mov dword [ebp - 8], ecx
cmp byte [ebx], cl
je 0x432cc1
mov bl, byte [ebp - 1]
lea esp, [esp]
mov byte [ebp - 0xc], 0
mov dl, byte [edi]
movsx eax, dl
sub eax, 0x7b
je 0x432c93
sub eax, 2
je 0x432cb8
test bl, bl
je 0x432c6d
inc ecx
mov dword [ebp - 8], ecx
jmp 0x432cb8
push 0
mov byte [ebp - 0xc], dl
mov byte [ebp - 1], 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ecx
push 1
lea edx, [ebp - 1]
lea ecx, [ebp - 0xc]
call fcn.004134c0
add esp, 0xc
jmp 0x432d74
lea eax, [edi + 1]
push 0x7d
push eax
mov dword [ebp - 0x1c], eax
call fcn.00486ac4
mov esi, eax
add esp, 8
test esi, esi
je 0x432cb5
sub eax, edi
dec eax
jne 0x432d0f
inc esi
cmp byte [esi], 0x7d
je 0x432d14
mov ecx, dword [ebp - 8]
inc edi
cmp byte [edi], 0
jne 0x432c50
mov ebx, dword [ebp - 0x18]
mov dword [0x4b096c], 0x49e065
test ecx, ecx
je 0x432e02
lea eax, [ecx + 1]
call fcn.004903b0
mov esi, esp
mov dword [0x4b096c], esi
cmp byte [ebx], 0
je 0x432dff
lea esp, [esp]
mov cl, byte [ebx]
movsx eax, cl
sub eax, 0x7b
je 0x432dc5
sub eax, 2
je 0x432df5
mov byte [esi], cl
inc esi
jmp 0x432df5
cmp eax, 1
jne 0x432d2b
test bl, bl
je 0x432d21
mov ecx, dword [ebp - 8]
inc ecx
mov dword [ebp - 8], ecx
jmp 0x432cb8
mov edi, dword [ebp - 0x1c]
mov al, byte [edi]
mov byte [ebp - 0xc], al
jmp 0x432d2e
mov edi, dword [ebp - 0x1c]
push 0
mov byte [esi], 0
mov byte [ebp - 1], 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ecx
push 1
lea edx, [ebp - 1]
mov ecx, edi
call fcn.004134c0
add esp, 0xc
mov byte [ebp - 2], al
test al, al
jne 0x432d6f
mov ecx, edi
call fcn.00413410
movzx eax, ax
test ax, ax
je 0x432d6c
mov byte [ebp + eax - 0x4d8], 1
mov al, byte [ebp - 2]
mov byte [esi], 0x7d
mov edi, esi
test al, al
je 0x432cb5
movzx esi, al
or byte [ebp + esi - 0x1d8], 1
cmp byte [ebp - 0xc], 0
je 0x432cb5
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_IsCharAlphaA]
test eax, eax
jne 0x432cb5
test byte [ebp - 1], 0x30
mov ecx, dword [ebp - 8]
je 0x432db8
or byte [ebp + esi - 0x1d8], 2
jmp 0x432cb8
or byte [ebp + esi - 0x1d8], 4
jmp 0x432cb8
lea edi, [ebx + 1]
push 0x7d
push edi
call fcn.00486ac4
mov edx, eax
add esp, 8
test edx, edx
je 0x432df5
cmp edx, edi
jne 0x432de7
cmp byte [edx + 1], 0x7d
lea ecx, [edx + 1]
cmove edx, ecx
lea eax, [ebx + 2]
cmp edx, eax
jne 0x432df3
mov al, byte [edi]
mov byte [esi], al
inc esi
mov ebx, edx
inc ebx
cmp byte [ebx], 0
jne 0x432cf0
mov byte [esi], 0
mov ebx, dword [ebp - 0x20]
mov dword [0x4b097c], 0
cmp byte [ebx], 0
je 0x433037
mov esi, dword [0x4b0978]
test esi, esi
jne 0x432e66
push 0x1000
call fcn.00485a15
mov esi, eax
add esp, 4
mov dword [0x4b0978], esi
test esi, esi
jne 0x432e5c
mov ecx, dword [ebp - 0x10]
push 0x49e065
push 0
push str.Out_of_memory.
call fcn.0042e0a0
lea esp, [ebp - 0x44e8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [0x4b0980], 0x400
mov edi, dword [ebp - 0x10]
cmp byte [edi + 1], 3
ja 0x432e76
xor ecx, ecx
jmp 0x432efd
mov edx, dword [0x4b084c]
test edx, edx
je 0x432eeb
mov al, byte [edx + 0x17]
mov byte [ebp - 2], al
test al, al
jne 0x432e90
mov eax, dword [edx + 0xc]
mov al, byte [eax + 0x17]
cmp al, 1
jne 0x432eeb
movzx ecx, byte [edi]
lea eax, [ecx*8]
sub eax, ecx
test byte [eax*2 + 0x4ac706], 0x80
jne 0x432eeb
cmp dword [0x4af994], 0
jne 0x432ed2
cmp byte [ebp - 2], 0
jne 0x432ebe
mov ecx, dword [edx + 0xc]
jmp 0x432ec0
mov ecx, edx
test byte [ecx + 0x15], 0xa
jne 0x432ed2
xor eax, eax
cmp dword [ecx + 0xc], eax
setne al
test eax, eax
je 0x432eeb
cmp edx, dword [0x4af094]
je 0x432eeb
mov ecx, edx
call fcn.00414a40
mov esi, dword [0x4b0978]
mov ecx, eax
jmp 0x432efd
mov ecx, dword [0x4b08ac]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x432ef4
sub ecx, edx
inc ecx
cmp ecx, dword [0x4b0988]
jbe 0x432f6c
mov eax, 0x1000
cmp ecx, eax
cmova eax, ecx
mov ecx, dword [0x4b0984]
mov dword [0x4b0988], eax
test ecx, ecx
je 0x432f33
push ecx
call fcn.004858b4
mov eax, dword [0x4b0988]
add esp, 4
mov esi, dword [0x4b0978]
push eax
call fcn.00485a15
mov ecx, eax
add esp, 4
mov dword [0x4b0984], ecx
test ecx, ecx
jne 0x432f72
push 0x49e065
push eax
push str.Out_of_memory.
mov ecx, edi
mov dword [0x4b0988], eax
call fcn.0042e0a0
lea esp, [ebp - 0x44e8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4b0984]
mov eax, dword [0x4b097c]
mov dword [esi + eax*4], ecx
cmp byte [ebx], 0
mov esi, dword [0x4b0984]
je 0x43301a
lea esp, [esp]
mov al, byte [ebx]
cmp al, 0x2c
je 0x432f9b
mov byte [esi], al
inc esi
jmp 0x433010
cmp byte [ebx + 1], 0x2c
jne 0x432fa8
mov byte [esi], 0x2c
inc esi
inc ebx
jmp 0x433010
mov byte [esi], 0
mov edi, dword [0x4b0978]
mov ecx, dword [0x4b097c]
mov eax, dword [edi + ecx*4]
cmp byte [eax], 0
je 0x432fd9
inc ecx
inc esi
mov dword [0x4b097c], ecx
mov dword [edi + ecx*4], esi
mov byte [esi], 0
mov ecx, dword [0x4b097c]
mov edi, dword [0x4b0978]
cmp byte [ebx + 1], 0
je 0x433010
mov eax, dword [0x4b0980]
cmp ecx, eax
jb 0x433010
lea eax, [eax*4 + 0x1000]
push eax
push edi
call fcn.0048719d
add esp, 8
test eax, eax
je 0x432e3b
add dword [0x4b0980], 0x400
mov dword [0x4b0978], eax
inc ebx
cmp byte [ebx], 0
jne 0x432f90
mov byte [esi], 0
mov ecx, dword [0x4b097c]
mov eax, dword [0x4b0978]
mov eax, dword [eax + ecx*4]
cmp byte [eax], 0
je 0x433037
inc ecx
mov dword [0x4b097c], ecx
cmp byte [0x4aee8c], 0
mov ebx, dword [sym.imp.USER32.dll_KillTimer]
mov esi, dword [sym.imp.USER32.dll_GetQueueStatus]
je 0x433082
push 0xc
push dword [0x4af0ac]
call ebx
movzx ecx, byte [0x4aee8c]
xor edx, edx
test eax, eax
push 0x10
cmovne ecx, edx
mov byte [0x4aee8c], cl
call esi
shr eax, 0x10
test al, 0x10
je 0x433082
mov edx, 1
or ecx, 0xffffffff
call fcn.004027d0
or byte [0x4afac3], 1
lea eax, [ebp - 0x44d8]
cmp dword [0x4af0c8], 0
mov dword [0x4b0994], eax
lea eax, [ebp - 0x1d8]
mov dword [0x4b0964], eax
lea eax, [ebp - 0x4d8]
mov byte [ebp - 0x44d8], 0
mov dword [0x4b0998], 0
mov dword [0x4b0968], eax
mov dword [0x4b0960], 1
mov byte [0x4af0bd], 1
jne 0x4330e8
mov eax, dword [0x4ad8fc]
sub esp, 8
movzx edx, word [eax]
call fcn.00409270
add esp, 8
mov eax, dword [ebp - 0x14]
test eax, eax
jle 0x433120
cmp byte [0x4aee8c], 0
jne 0x433120
mov ecx, 0xa
cmp eax, ecx
push 0x404d50
cmovl eax, ecx
push eax
push 0xc
push dword [0x4af0ac]
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
setne byte [0x4aee8c]
nop
mov edx, 1
mov ecx, 0x8000012f
call fcn.004027d0
mov eax, dword [0x4b0960]
cmp eax, 1
je 0x433120
add eax, 0xfffffffe
cmp eax, 3
ja case.default.0x433145
jmp dword [eax*4 + 0x43341c]
push 1
push 0
push 0xffffffffffffffff
push str.Timeout
jmp 0x43334f
push 1
push 0
push 0xffffffffffffffff
push str.Match
jmp 0x43334f
mov eax, dword [str.EndKey:]
mov dword [ebp - 0xa8], eax
mov eax, dword [0x4a4274]
push 0x78
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.0048fd00
mov al, byte [0x4b0974]
add esp, 0xc
test al, al
je 0x4331bd
push 1
push 0
mov byte [ebp - 0xa1], al
lea eax, [ebp - 0xa8]
push 0xffffffffffffffff
mov byte [ebp - 0xa0], 0
push eax
jmp 0x43334f
cmp byte [0x4b0976], 0
je 0x433294
push 0xff
lea eax, [ebp - 0x2d7]
mov byte [ebp - 0x2d8], 0
push 0
push eax
call fcn.0048fd00
or byte [ebp - 0x2c8], 0x80
add esp, 0xc
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor esi, esi
test eax, eax
je 0x433233
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push esi
push eax
call edi
mov esi, eax
mov dword [ebp - 0xd8], 0x30
lea eax, [ebp - 0xd8]
push eax
push esi
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x433233
mov eax, dword [ebp - 0xcc]
test eax, eax
je 0x433233
push 0
push eax
call edi
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov cl, byte [0x4b0970]
push eax
xor eax, eax
cmp dword [0x4aee94], eax
setne al
xor dl, dl
push eax
lea eax, [ebp - 0xa1]
push eax
lea eax, [ebp - 0x2d8]
push eax
call fcn.00413a80
movzx eax, ax
push eax
movzx eax, byte [0x4b0970]
push eax
call dword [sym.imp.USER32.dll_ToAsciiEx]
mov esi, dword [sym.imp.USER32.dll_GetQueueStatus]
push 1
push 0
mov byte [ebp + eax - 0xa1], 0
lea eax, [ebp - 0xa8]
push 0xffffffffffffffff
push eax
jmp 0x43334f
cmp byte [0x4b0975], 0
je 0x4332f0
mov cx, word [0x4b0972]
xor eax, eax
cmp word [eax*8 + 0x4ac1f4], cx
je 0x4332d2
inc eax
cmp eax, 0xd
jl 0x4332a6
movzx eax, cx
push eax
push str.sc_03X
lea eax, [ebp - 0xa1]
push 0x79
push eax
call fcn.00472ab0
add esp, 0x10
jmp 0x433308
push 0x78
push dword [eax*8 + 0x4ac1f0]
lea eax, [ebp - 0xa1]
push eax
call fcn.00488ae0
add esp, 0xc
mov byte [ebp - 0x29], 0
jmp 0x433308
mov cl, byte [0x4b0970]
lea edx, [ebp - 0xa1]
push 1
push 0x79
call fcn.00413270
add esp, 8
mov cl, byte [ebp - 0xa1]
mov al, cl
sub al, 0x61
cmp al, 0x19
ja 0x433328
cmp byte [ebp - 0xa0], 0
jne 0x433328
add cl, 0xe0
mov byte [ebp - 0xa1], cl
push 1
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0xa8]
push eax
jmp 0x43334f
push 1
push 0
push 0xffffffffffffffff
push 0x4a2a54
jmp 0x43334f
push 1
push 0
push 0xffffffffffffffff
push str.NewInput
mov ecx, dword [0x4af094]
call fcn.004759c0
cmp byte [0x4aee8c], 0
mov dword [0x4b0960], 0
je 0x4333a1
push 0xc
push dword [0x4af0ac]
call ebx
movzx ecx, byte [0x4aee8c]
xor edi, edi
test eax, eax
push 0x10
cmovne ecx, edi
mov byte [0x4aee8c], cl
call esi
shr eax, 0x10
test al, 0x10
je 0x4333a1
lea edx, [edi + 1]
or ecx, 0xffffffff
call fcn.004027d0
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x44d8]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004759c0
lea esp, [ebp - 0x44e8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret