Function at 0x42a630
Capabilities:
Check for foreground window switch
Check for time delay via gettickcount
Log keystrokes via polling
Set current directory

Disassembly:
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
cmp dword [ebp + 8], 0
mov ebx, eax
jle 0x429637
cmp byte [esp + 0x1a], 0
jne 0x429637
cmp byte [0x4a0b80], 0
jne 0x429644
call fcn.0042b0f0
neg eax
sbb eax, eax
and eax, 0xfffffcef
add eax, 0x311
push eax
push 0
push 0
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
cmp eax, 0xffffffff
je 0x42945b
call edi
mov ecx, eax
sub ecx, ebx
cmp ecx, 3
jbe 0x4294bf
mov dword [0x4a3100], eax
cmp dword [0x4a1344], 0
je 0x4294f9
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x9c]
push eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x34]
push eax
push ecx
push edx
call fcn.0042ac00
add esp, 0x18
test al, al
jne 0x42945b
cmp dword [0x4a2b64], 0
mov esi, dword [esp + 0x2c]
je 0x429b1d
mov eax, dword [esp + 0x28]
test eax, eax
je 0x429b1d
cmp eax, dword [0x4a0a38]
je 0x429b1d
cmp esi, 0x414
je 0x429b1d
cmp esi, 0x402
je 0x429b1d
cmp esi, 0x100
jne 0x429ab7
mov edi, dword [esp + 0x30]
cmp edi, 0x22
je 0x429567
cmp edi, 0x21
je 0x429567
cmp edi, 9
je 0x429567
cmp edi, 0x25
je 0x429567
cmp edi, 0x27
jne 0x4298ae
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, eax
test esi, esi
je 0x4298aa
call 0x4905d0
test eax, eax
je 0x4298aa
mov edi, eax
call fcn.004292d0
mov ebx, eax
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x4298aa
cmp byte [ebx + 0x54], 0
je 0x4298aa
push esi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea edi, [eax - 3]
cmp edi, dword [ebx + 0xc]
jb 0x4295d0
push esi
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x4295c7
push eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea edi, [eax - 3]
cmp edi, dword [ebx + 0xc]
jae 0x4298a2
mov ecx, dword [ebx + 0x14]
lea eax, [edi + edi*4]
lea esi, [ecx + eax*4]
mov dword [esp + 0x14], esi
test esi, esi
je 0x4298aa
mov al, byte [esi + 4]
cmp al, 0xf
je 0x4298aa
mov edi, dword [esp + 0x30]
xor ebx, ebx
cmp al, 0x13
jne 0x429993
mov ebx, esi
cmp edi, 0x25
je 0x42960e
cmp edi, 0x27
jne 0x429993
mov ecx, dword [esp + 0x10]
cmp edi, 0x27
push 0
sete dl
movzx eax, dl
push 0
push eax
push ecx
mov eax, esi
call 0x483870
jmp 0x42945b
cmp byte [0x4a0b80], 0
je 0x4297bf
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x4297bf
push 0
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4a2bbc]
jne 0x4297bf
cmp dword [0x4a0bbc], 0
je 0x4296a1
push 0x20
lea edx, [esp + 0xa4]
push edx
push esi
call dword [sym.imp.USER32.dll_GetClassNameA]
lea eax, [esp + 0xa0]
push str.32770
push eax
call 0x49edcc
add esp, 8
test eax, eax
sete al
test al, al
jne 0x4296f6
call dword [sym.imp.USER32.dll_GetFocus]
test eax, eax
je 0x4297bf
push 0x20
lea ecx, [esp + 0xa4]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClassNameA]
lea edx, [esp + 0xa0]
push str.SysTreeView32
push edx
call 0x49ecb6
pop es
add byte [ebx - 0x3f7af73c], al
je 0x4296f6
lea eax, [esp + 0xa0]
push str.SysListView32
push eax
call 0x49ecb6
add esp, 8
test eax, eax
jne 0x4297bf
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
push 0
push 0x1ff
add dword [eax], eax
add byte [edx], ch
push 0
lea ecx, [esp + 0x38]
push ecx
call edi
test eax, eax
jne 0x42973b
push 1
call fcn.0042b0f0
neg eax
sbb eax, eax
and eax, 0xfffffcef
add eax, 0x311
push eax
push 0x20e
push 0
lea edx, [esp + 0x38]
push edx
call edi
jmp 0x42983a
mov esi, dword [esp + 0x38]
push 0
call fcn.0042b0f0
neg eax
sbb eax, eax
and eax, 0xfffffcef
add eax, 0x311
push eax
push 0x20e
push 0
lea eax, [esp + 0x38]
push eax
call edi
push 1
test eax, eax
jne 0x42977c
push 0x1ff
push eax
push eax
lea ecx, [esp + 0x38]
push ecx
call edi
jmp 0x42983a
mov edx, dword [esp + 0x3c]
sub edx, esi
test edx, edx
jle 0x42979b
push 0x1ff
push 0
push 0
lea eax, [esp + 0x38]
push eax
call edi
jmp 0x42983a
call fcn.0042b0f0
cmp dword [0x49d328], 0
je 0x429818
cmp dword [0x4a0bb0], 0
jne 0x429818
mov eax, dword [0x49d3c8]
cmp byte [eax + 0xc4], 0
jne 0x42980f
cmp byte [eax + 0xc6], 0
jne 0x42980f
cmp dword [eax + 0xb8], 0xffffffff
jle 0x42980f
call edi
mov edx, eax
mov eax, dword [0x49d3c8]
sub edx, dword [eax + 0xb4]
cmp edx, dword [eax + 0xb8]
jb 0x42980f
mov byte [eax + 0xc4], 1
movzx eax, byte [eax + 0xc4]
jmp 0x42981a
xor eax, eax
neg eax
sbb eax, eax
push 1
and eax, 0xfffffcef
add eax, 0x311
push eax
push 0
push 0
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x4294bf
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ecx, eax
sub ecx, ebx
cmp ecx, 3
jbe 0x429858
mov dword [0x4a3100], eax
mov esi, dword [ebp + 8]
test esi, esi
jne 0x429877
cmp byte [esp + 0x23], 0
jne 0x429877
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [esp + 0x23], 1
jmp 0x42945b
call edi
cmp byte [esp + 0x58], 0
jne 0x42a86f
mov edx, dword [esp + 0x6c]
sub edx, eax
add edx, esi
cmp edx, 5
jle 0x42a86f
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42945b
mov dword [esp + 0x14], 0
mov edi, dword [esp + 0x30]
cmp edi, 0x1b
je 0x4298d7
cmp edi, 9
je 0x4298d7
cmp edi, 0x41
jne 0x429a4f
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x429a4b
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, eax
test esi, esi
je 0x429a4b
call 0x4905d0
test eax, eax
je 0x429a4b
mov edi, eax
call fcn.004292d0
mov dword [esp + 0x10], eax
test eax, eax
ror byte [edi], 0x84
inc esp
add dword [eax], eax
invalid
mov ebx, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push esi
call ebx
mov edx, dword [esp + 0x10]
lea edi, [eax - 3]
cmp edi, dword [edx + 0xc]
jb 0x42992d
push esi
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x42992d
push eax
call ebx
lea edi, [eax - 3]
mov eax, dword [esp + 0x10]
cmp edi, dword [eax + 0xc]
jae 0x429a43
mov edx, dword [eax + 0x14]
lea ecx, [edi + edi*4]
lea eax, [edx + ecx*4]
mov dword [esp + 0x14], eax
test eax, eax
je 0x429a4b
cmp byte [eax + 4], 0xc
jne 0x429a4b
mov edi, dword [esp + 0x30]
cmp edi, 0x1b
je 0x429a8f
cmp edi, 0x41
je 0x429a72
test byte [eax + 5], 0x80
je 0x429a4f
mov ecx, dword [eax]
push 0x490074
cmp edi, 0x25
je 0x4298ae
cmp edi, 0x27
je 0x4298ae
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, 0x8000
test dx, ax
je 0x4298aa
mov edi, dword [esp + 0x30]
cmp edi, 9
jne 0x4299e1
cmp byte [esi + 4], 0xc
jne 0x4299e1
mov eax, dword [esi]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
test al, 4
jne 0x4298aa
mov edi, dword [esp + 0x30]
test ebx, ebx
jne 0x429a08
mov bl, byte [esi + 6]
mov ecx, dword [esp + 0x10]
invalid
invalid
pushfd
invalid
jae 0x42a641
mov eax, dword [eax + 0x14]
lea edx, [esi + esi*4]
lea ecx, [eax + edx*4]
mov dword [esp + 0x14], ecx
jmp 0x42a645
invalid
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x48]
add eax, 0xfffffffb
cmp eax, 4
ja case.default.0x42a651
invalid
jmp dword [eax*4 + 0x4029cc]
cmp dword [esp + 0x14], edi
je 0x42a796
mov eax, dword [esp + 0x14]
and byte [eax + 5], 0xfb
jmp 0x42a796
mov ecx, dword [0x4a13a4]
dec dword [0x4a0b94]
sub dword [0x49d3c8], 0xd8
push 1
push 0
push 0xffffffffffffffff
lea edx, [esp + 0xcc]
push edx
call 0x48e8b0
push 0
mov eax, 0x4a2c18
call fcn.0043c620
cmp dword [ebp + 0xc], 0
je 0x42945b
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x6c]
mov esi, dword [ebp + 8]
push eax
push ecx
call fcn.0042a9e0
add esp, 8
test eax, eax
je 0x42945b
mov byte [esp + 0x1a], 1
mov byte [esp + 0x58], 1
jmp 0x42945b