Function at 0x40d480
Capabilities:
Check for time delay via gettickcount
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
push ebx
mov ebx, dword [ebp + 8]
cmp byte [ebx], 0
push esi
push edi
je 0x40e59b
mov edi, dword [ebp + 0xc]
mov esi, dword [0x4a7918]
mov dword [ebp - 0x34], esi
test edi, edi
jne 0x40d51d
push 7
push str.Blind
push ebx
call fcn.00485e00
add esp, 0xc
test eax, eax
jne 0x40d51d
add ebx, 7
mov byte [0x4aa143], 1
mov dword [ebp + 8], ebx
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x64]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x54], ecx
cmp eax, 1
je 0x40d4e2
cmp eax, 3
jne 0x40d553
cmp dword [0x4ada60], 0
je 0x40d529
call fcn.00408d20
test al, al
jne 0x40d526
test edi, edi
jne 0x40d514
call fcn.00408d80
test al, al
je 0x40d514
push str.Click
mov eax, ebx
call fcn.00472810
add esp, 4
test eax, eax
jne 0x40d526
mov dword [ebp + 0x10], 1
jmp 0x40d553
mov byte [0x4aa143], 0
jmp 0x40d4c9
mov eax, dword [ebp + 0x10]
cmp eax, 3
jne 0x40d537
mov dword [ebp + 0x10], 2
jmp 0x40d553
xor eax, eax
mov dword [ebp + 0x10], eax
cmp dword [esi + 0x5c], eax
jge 0x40d549
cmp dword [esi + 0x64], eax
jge 0x40d549
or eax, 0xffffffff
mov dword [esi + 0x64], eax
mov dword [esi + 0x5c], 0xffffffff
mov esi, dword [ebp + 0x14]
xor ebx, ebx
mov byte [ebp - 0xf], 0
test esi, esi
je 0x40d5ab
push ebx
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
mov dword [ebp - 0x58], edi
test edi, edi
je 0x40d6d7
cmp edi, dword [0x4ad238]
je 0x40d6d7
call fcn.00477110
test al, al
jne 0x40d6d7
mov edx, dword [0x4ad238]
push 1
push edi
push edx
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [ebp - 0xf]
mov ebx, edi
jmp 0x40d6d7
test byte [0x4ad879], 0xc0
je 0x40d692
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ad870]
cmp eax, 0x32
jae 0x40d692
cmp dword [ebp + 0x10], 2
je 0x40d692
cmp byte [0x4aa143], bl
jne 0x40d692
cmp byte [0x4ada56], bl
je 0x40d692
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4ad238]
jne 0x40d692
mov eax, dword [ebp + 8]
test edi, edi
mov edi, 0x49b2ac
je 0x40d663
call fcn.00409490
test eax, eax
setne al
test al, al
je 0x40d692
jmp 0x40d620
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x5b
call edi
mov ecx, 0x8000
test cx, ax
jne 0x40d642
push 0x5c
call edi
mov edx, 0x8000
test dx, ax
je 0x40d692
push 1
push 0x8000012f
mov dword [0x4a7884], ebx
call fcn.00401350
add esp, 8
mov dword [0x4a7884], 1
jmp 0x40d620
call fcn.00409490
test eax, eax
je 0x40d692
lea esp, [esp]
inc eax
mov edi, 0x49b2b0
call fcn.00409490
test eax, eax
je 0x40d620
cmp byte [eax], 0x7b
je 0x40d620
mov edi, 0x49b2ac
call fcn.00409490
test eax, eax
jne 0x40d670
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor ebx, ebx
test eax, eax
je 0x40d6d7
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push ebx
push eax
call esi
mov ebx, eax
lea eax, [ebp - 0xb0]
push eax
push ebx
mov dword [ebp - 0xb0], 0x30
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x40d6d7
mov eax, dword [ebp - 0xa4]
test eax, eax
je 0x40d6d7
push 0
push eax
call esi
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [0x4aa168], eax
push eax
xor eax, eax
call fcn.004119c0
add esp, 4
push 1
mov dword [0x4aa164], eax
call fcn.00411480
mov bl, al
and byte [0x4acb35], bl
add esp, 4
cmp dword [0x4ab35c], 0
mov byte [ebp - 8], bl
je 0x40d72d
mov cl, byte [0x4ab229]
mov dl, byte [0x4ab22b]
mov al, cl
not cl
and al, dl
and cl, dl
mov byte [ebp - 2], dl
mov byte [ebp - 0xa], cl
jmp 0x40d758
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ad870]
cmp eax, dword [0x4a787c]
jae 0x40d74d
mov al, byte [0x4ad879]
and al, bl
mov byte [ebp - 2], al
jmp 0x40d754
mov byte [ebp - 2], 0
mov al, byte [ebp - 2]
mov byte [ebp - 0xa], 0
mov cl, byte [0x4acb34]
not al
and al, bl
and cl, al
mov al, byte [0x4aa143]
mov byte [0x4acb34], cl
test al, al
je 0x40d77f
not cl
and cl, bl
mov byte [ebp - 3], cl
mov byte [ebp - 7], bl
jmp 0x40d786
mov byte [ebp - 3], 0
mov byte [ebp - 7], cl
mov ecx, dword [ebp - 0x34]
cmp byte [ecx + 0xd3], 0
je 0x40d7aa
test al, al
jne 0x40d7aa
push 2
mov bl, 0x14
call fcn.00410c70
mov bl, byte [ebp - 8]
add esp, 4
mov dword [ebp - 0x48], eax
jmp 0x40d7b1
mov dword [ebp - 0x48], 0
mov esi, dword [ebp + 0x10]
mov dword [0x4acb88], esi
test esi, esi
je 0x40d823
cmp esi, 1
jne 0x40d7d4
mov eax, 0x36b0
mov dword [0x4aa158], 0x1f4
jmp 0x40d7e3
mov eax, 0x2ee0
mov dword [0x4aa158], 0x5dc
call fcn.0048edb0
mov eax, esp
mov dword [0x4aa160], eax
mov eax, SysReAllocString
mov byte [0x4aa14b], bl
mov dword [0x4aa14c], eax
mov dword [0x4aa150], eax
mov byte [0x4aa14a], 0
mov dword [0x4aa15c], 0
mov byte [0x4aa149], 0
mov byte [0x4aa148], 1
mov eax, dword [0x4a7928]
mov dl, byte [0x4aba2b]
mov byte [ebp - 0x25], dl
cmp eax, 8
je 0x40d83b
cmp eax, 0xa
jne 0x40d876
test esi, esi
jne 0x40d876
cmp dword [ebp + 0x14], esi
jne 0x40d876
test byte [0x4ae31c], 1
mov byte [ebp - 8], 1
jne 0x40d87c
or dword [0x4ae31c], 1
push str.BlockInput
push str.user32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4ae318], eax
jmp 0x40d881
mov byte [ebp - 8], 0
jmp 0x40d890
mov eax, dword [0x4ae318]
test eax, eax
je 0x40d889
push 1
call eax
mov byte [0x4aba2b], 1
mov eax, dword [ebp + 8]
xor bl, bl
mov byte [ebp - 1], bl
cmp byte [eax], bl
je 0x40e223
cmp dword [0x4acb88], 0
mov esi, dword [ebp + 8]
mov byte [ebp - 9], 0
jne 0x40d909
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [0x4ad8ac]
mov ecx, dword [0x4a7918]
cmp eax, dword [ecx + 0xb8]
jbe 0x40d909
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x80]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40d902
push 1
push 0xffffffffffffffff
mov dword [0x4a7884], 0
call fcn.00401350
add esp, 8
mov dword [0x4a7884], 1
call edi
mov dword [0x4ad8ac], eax
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x40e139
movsx eax, byte [esi]
push eax
push str._
call fcn.00486371
add esp, 8
test eax, eax
je 0x40e172
movsx eax, byte [esi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x40d943.34
movzx eax, byte [eax + 0x40e5c4]
jmp dword [eax*4 + 0x40e5a8]
test byte [ebp - 7], 3
jne case.0x40d943.34
or bl, 1
jmp 0x40e207
test byte [ebp - 7], 0x30
jne case.0x40d943.34
or bl, 0x10
jmp 0x40e207
test byte [ebp - 7], 0xc
jne case.0x40d943.34
or bl, 4
jmp 0x40e207
test byte [ebp - 7], 0xc0
jne case.0x40d943.34
or bl, 0x40
jmp 0x40e207
mov esi, dword [ebp + 8]
inc esi
push 0x7d
push esi
call fcn.00486371
add esp, 8
mov dword [ebp - 0x18], eax
test eax, eax
je case.0x40d943.34
lea esp, [esp]
mov al, byte [esi]
cmp al, 0x20
je 0x40d9ba
cmp al, 9
jne 0x40d9bd
inc esi
jmp 0x40d9b0
mov edi, dword [ebp - 0x18]
mov eax, edi
sub eax, esi
mov dword [ebp - 0x2c], esi
mov dword [ebp + 8], esi
mov dword [ebp - 0x30], eax
jne 0x40da47
mov al, byte [edi + 1]
inc edi
cmp al, 0x7d
jne 0x40d9e3
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x30], 1
jmp 0x40da44
cmp al, 0x20
je 0x40d9f0
cmp al, 9
jne 0x40e12e
nop
mov al, byte [edi]
cmp al, 0x20
je 0x40d9fa
cmp al, 9
jne 0x40d9fd
inc edi
jmp 0x40d9f0
push 4
push str.Down
push edi
call fcn.00485e00
add esp, 0xc
test eax, eax
je 0x40da29
push 2
push 0x499b28
push edi
call fcn.00485e00
add esp, 0xc
test eax, eax
jne 0x40e12e
push 0x7d
push edi
call fcn.00486371
add esp, 8
mov dword [ebp - 0x18], eax
test eax, eax
je case.0x40d943.34
sub eax, esi
mov dword [ebp - 0x30], eax
mov edi, dword [ebp - 0x18]
push 5
push 0x49a944
push esi
call fcn.00485e00
add esp, 0xc
test eax, eax
jne 0x40daff
mov byte [edi], al
lea eax, [esi + 5]
mov cl, byte [eax]
cmp cl, 0x20
je 0x40da70
cmp cl, 9
jne 0x40da73
inc eax
jmp 0x40da64
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0xe]
push edx
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x38]
push edx
call fcn.0040f5d0
mov ecx, dword [ebp - 0x24]
add esp, 0x18
mov byte [edi], 0x7d
cmp ecx, 1
jge 0x40daca
mov ecx, dword [ebp - 0x34]
movzx edx, byte [ecx + 0xcf]
mov eax, dword [ebp - 0x44]
push eax
push edx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x64]
lea eax, [ebp - 0x38]
call fcn.00410240
mov ecx, dword [ebp - 0x18]
add esp, 0xc
mov dword [ebp + 8], ecx
jmp 0x40e205
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
push edx
mov edx, dword [ebp - 0x38]
push eax
mov eax, dword [ebp + 0x14]
push edx
mov edx, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 7]
push 0
push edx
mov edx, dword [ebp - 0xe]
push eax
push 0
push edx
mov al, bl
call fcn.0040e640
mov ecx, dword [ebp - 0x18]
add esp, 0x24
mov dword [ebp + 8], ecx
jmp 0x40e205
push 3
push 0x49b2bc
push esi
call fcn.00485e00
add esp, 0xc
test eax, eax
jne 0x40db25
mov ecx, dword [ebp - 0x18]
mov dword [ebp + 0xc], 1
mov dword [ebp + 8], ecx
jmp 0x40e205
push 4
push str.Text
push esi
call fcn.00485e00
add esp, 0xc
test eax, eax
jne 0x40db67
add esi, 4
lea esp, [esp]
mov al, byte [esi]
cmp al, 0x20
je 0x40db4a
cmp al, 9
jne 0x40db4d
inc esi
jmp 0x40db40
cmp esi, edi
jne 0x40e12e
mov ecx, dword [ebp - 0x18]
mov dword [ebp + 0xc], 2
mov dword [ebp + 8], ecx
jmp 0x40e205
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x18]
mov dword [ebp + 8], eax
mov edi, 0x49b100
mov eax, esi
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x24], 1
mov byte [ecx], 0
call fcn.00409490
mov ebx, eax
test ebx, ebx
je 0x40dc33
mov dl, byte [ebx]
sub eax, esi
mov byte [ebp - 0x1d], dl
mov byte [ebx], 0
mov dword [ebp + 8], eax
lea edi, [ebx + 1]
mov al, byte [edi]
cmp al, 0x20
je 0x40dbb1
cmp al, 9
jne 0x40dbb4
inc edi
jmp 0x40dba7
mov eax, dword [ebp - 0x18]
sub eax, edi
je 0x40dc33
push 4
push str.Down
push edi
call fcn.00485e00
add esp, 0xc
test eax, eax
jne 0x40dc0b
push 4
add edi, 4
push str.Temp
push edi
mov dword [ebp - 0x14], eax
call fcn.00485e00
add esp, 0xc
test eax, eax
jne 0x40dbee
mov dword [ebp - 0x3c], eax
jmp 0x40dc33
xor ecx, ecx
cmp byte [edi], 0x52
sete cl
push ecx
call fcn.00486e71
add esp, 4
neg eax
sbb eax, eax
neg eax
inc eax
mov dword [ebp - 0x3c], eax
jmp 0x40dc33
push 0x499b28
push edi
call fcn.00485381
add esp, 8
test eax, eax
jne 0x40dc26
mov dword [ebp - 0x14], 1
jmp 0x40dc33
mov esi, edi
call fcn.0040cf10
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
mov eax, dword [0x4aa168]
lea edx, [ebp - 0xe]
push edx
lea ecx, [ebp - 1]
lea edi, [ebp - 0x4c]
mov edx, esi
call fcn.00411fc0
add esp, 4
test ebx, ebx
je 0x40dc55
mov al, byte [ebp - 0x1d]
mov byte [ebx], al
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x24]
mov byte [ecx], 0x7d
mov ecx, 1
cmp eax, ecx
jl 0x40e12e
mov bl, byte [ebp - 0xe]
mov edi, dword [ebp - 0x4c]
test bl, bl
jne 0x40e07a
test di, di
jne 0x40e07a
cmp dword [ebp + 8], ecx
jne 0x40dce7
cmp dword [ebp - 0x14], ecx
je 0x40e12e
cmp dword [ebp + 0x14], 0
je 0x40dcc3
test eax, eax
jle 0x40e12e
mov ebx, dword [ebp + 0x14]
mov edi, eax
movsx edx, byte [esi]
push 0
push edx
push 0x102
push ebx
call dword [sym.imp.USER32.dll_PostMessageA]
dec edi
jne 0x40dca3
mov ecx, dword [ebp - 0x18]
mov dword [ebp + 8], ecx
jmp 0x40e205
mov al, byte [ebp - 1]
or al, byte [ebp - 7]
movzx edx, byte [esi]
movzx ecx, al
mov eax, dword [ebp - 0x24]
push ecx
push edx
call fcn.0040e9f0
mov ecx, dword [ebp - 0x18]
add esp, 8
mov dword [ebp + 8], ecx
jmp 0x40e205
cmp dword [ebp + 0x14], 0
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 7]
push eax
lea ecx, [ebp - 0x14]
sete bl
push ecx
call fcn.00412070
add esp, 8
mov byte [ebp - 0xe], al
test al, al
je 0x40dedc
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x40dd25
cmp dword [ebp - 0x14], edi
jne 0x40dd20
mov byte [ebp - 9], al
jmp 0x40dd25
call fcn.0040d0e0
cmp dword [0x4acb88], 0
je 0x40dd39
mov bl, byte [0x4aa14b]
jmp 0x40de2b
cmp dword [0x4ab35c], 0
je 0x40dd4d
mov bl, byte [0x4ab229]
jmp 0x40de2b
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov edx, 0x8000
test dx, ax
je 0x40dd68
mov bl, 0x10
push 0xa1
call esi
mov ecx, 0x8000
test cx, ax
je 0x40dd7c
or bl, 0x20
push 0xa2
call esi
mov edx, 0x8000
test dx, ax
je 0x40dd90
or bl, 1
push 0xa3
call esi
mov ecx, 0x8000
test cx, ax
je 0x40dda4
or bl, 2
push 0xa4
call esi
mov edx, 0x8000
test dx, ax
je 0x40ddb8
or bl, 4
push 0xa5
call esi
mov ecx, 0x8000
test cx, ax
je 0x40ddcc
or bl, 8
push 0x5b
call esi
mov edx, 0x8000
test dx, ax
je 0x40dddd
or bl, 0x40
push 0x5c
call esi
mov ecx, 0x8000
test cx, ax
je 0x40ddee
or bl, 0x80
cmp dword [0x4ab35c], 0
je 0x40de2b
mov al, bl
not al
and al, byte [0x4ab229]
je 0x40de2b
mov cl, byte [0x4ab22b]
not al
and byte [0x4ab229], al
and byte [0x4ab22a], al
and cl, al
mov al, cl
mov byte [0x4ab22b], cl
mov ecx, 0x4ab250
call fcn.00411580
mov edx, dword [ebp - 7]
push 0
push 0
push edi
push ebx
push edx
mov esi, 0xffc3d44d
call fcn.00410d80
mov eax, dword [ebp - 0x24]
add esp, 0x14
test eax, eax
jle 0x40e12e
mov ebx, dword [ebp - 0xe]
mov edi, eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x14]
push 0xffc3d44d
push 1
push eax
push 0
push ebx
push ecx
call fcn.0040ef10
add esp, 0x18
cmp dword [0x4acb88], 0
jne 0x40dece
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4ad8ac]
mov edx, dword [0x4a7918]
cmp eax, dword [edx + 0xb8]
jbe 0x40dece
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40dec7
push 1
push 0xffffffffffffffff
mov dword [0x4a7884], 0
call fcn.00401350
add esp, 8
mov dword [0x4a7884], 1
call esi
mov dword [0x4ad8ac], eax
dec edi
jne 0x40de52
mov ecx, dword [ebp - 0x18]
mov dword [ebp + 8], ecx
jmp 0x40e205
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
cmp edi, 4
jbe 0x40df5a
push 4
push str.ASC
push esi
call fcn.00485e00
mov ebx, dword [ebp + 0x14]
add esp, 0xc
test eax, eax
jne 0x40df5d
test ebx, ebx
jne 0x40df5d
lea edi, [esi + 3]
mov al, byte [edi]
cmp al, 0x20
je 0x40df0f
cmp al, 9
jne 0x40df12
inc edi
jmp 0x40df05
call fcn.0040eb20
cmp dword [0x4acb88], 2
jne 0x40df3d
mov ecx, dword [0x4a7918]
mov eax, dword [ecx + 0x60]
push eax
call fcn.004109b0
mov ecx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp + 8], ecx
jmp 0x40e205
mov edx, dword [0x4a7918]
mov eax, dword [edx + 0x5c]
push eax
call fcn.004109b0
mov ecx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp + 8], ecx
jmp 0x40e205
mov ebx, dword [ebp + 0x14]
cmp edi, 2
jbe 0x40e12e
push 2
push 0x49b2d0
push esi
call fcn.00485e00
add esp, 0xc
test eax, eax
jne 0x40e12e
push 0x10
push eax
add esi, 2
push esi
call fcn.00486d04
add esp, 0xc
cmp eax, 0x10000
jb 0x40dfc0
sub eax, 0x10000
mov ecx, eax
shr ecx, 0xa
and ecx, 0x3ff
mov edx, eax
sub ecx, 0x2800
and edx, 0x3ff
sub edx, 0x2400
movzx edi, cx
movzx esi, dx
jmp 0x40dfc5
movzx edi, ax
xor esi, esi
test ebx, ebx
je 0x40dff2
movzx eax, di
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
push 0
push eax
push 0x102
push ebx
call edi
test si, si
je 0x40e038
push 0
movzx ecx, si
push ecx
push 0x102
push ebx
call edi
jmp 0x40e038
cmp dword [0x4acb88], 2
je 0x40e01d
movzx ebx, byte [ebp - 1]
or bl, byte [ebp - 7]
push ebx
call fcn.0040d160
add esp, 4
test si, si
je 0x40e038
push ebx
mov edi, esi
call fcn.0040d160
add esp, 4
jmp 0x40e038
push 0xa
lea edx, [ebp - 0x5f]
push edx
push eax
mov byte [ebp - 0x60], 0x30
call fcn.00485012
add esp, 0xc
lea edi, [ebp - 0x60]
call fcn.0040eb20
cmp dword [0x4acb88], 2
jne 0x40e05d
mov eax, dword [0x4a7918]
mov eax, dword [eax + 0x60]
push eax
call fcn.004109b0
mov ecx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp + 8], ecx
jmp 0x40e205
mov ecx, dword [0x4a7918]
mov eax, dword [ecx + 0x5c]
push eax
call fcn.004109b0
mov ecx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp + 8], ecx
jmp 0x40e205
xor ecx, ecx
mov edx, edi
mov al, bl
call fcn.00411650
mov byte [ebp - 0x1c], al
test al, al
je 0x40e0ff
cmp dword [ebp + 0x14], 0
jne 0x40e0ff
mov ecx, dword [ebp - 0x14]
test ecx, ecx
jne 0x40e0bf
mov ecx, dword [ebp - 0x3c]
mov byte [ebp - 9], bl
cmp ecx, 1
jne 0x40e0af
or byte [0x4acb34], al
or byte [ebp - 7], al
jmp 0x40e0ff
cmp ecx, 2
jne 0x40e0ba
or byte [0x4acb35], al
or byte [ebp - 7], al
jmp 0x40e0ff
cmp ecx, 1
jne 0x40e0ff
mov al, bl
call fcn.0040d0e0
mov al, byte [ebp - 0x1c]
mov cl, byte [0x4acb34]
not al
and byte [0x4acb35], al
and byte [ebp - 3], al
and cl, al
mov byte [0x4acb34], cl
cmp bl, 0xa5
jne 0x40e0f9
cmp dword [0x4aa164], 3
jne 0x40e0f9
and byte [ebp - 3], 0xfe
or cl, byte [ebp - 3]
mov byte [ebp - 7], cl
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
push 0
push SysReAllocString
push SysReAllocString
push edx
mov edx, dword [ebp - 7]
push eax
mov eax, dword [ebp - 0xe]
push ecx
mov ecx, dword [ebp - 0x24]
push edx
push edi
push eax
mov al, byte [ebp - 1]
call fcn.0040e640
add esp, 0x24
mov ecx, dword [ebp - 0x18]
mov dword [ebp + 8], ecx
jmp 0x40e205
cmp edi, 2
jne 0x40e172
movsx eax, byte [esi]
add eax, 0xfffffff8
cmp eax, 5
ja case.0x40e149.11
jmp dword [eax*4 + 0x40e624]
cmp byte [esi + 1], 0xa
jne case.0x40e149.10
inc esi
mov dword [ebp + 8], esi
mov byte [ebp - 0xe], 0xd
jmp 0x40e1a0
mov byte [ebp - 0xe], 8
jmp 0x40e1a0
mov byte [ebp - 0xe], 9
jmp 0x40e1a0
mov byte [ebp - 0xe], 0
jmp 0x40e1d2
or bl, byte [ebp - 7]
je 0x40e17f
test edi, edi
jne 0x40e17f
mov al, 1
jmp 0x40e181
xor al, al
mov edx, dword [0x4aa168]
mov bl, byte [esi]
push eax
push edx
lea edi, [ebp - 1]
call fcn.00411f00
mov bl, byte [ebp - 1]
add esp, 8
mov byte [ebp - 0xe], al
test al, al
je 0x40e1cf
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 7]
mov edx, dword [ebp - 0xe]
push 0
push SysReAllocString
push SysReAllocString
push eax
push 0
push 2
push ecx
push 0
push edx
mov ecx, 1
mov al, bl
call fcn.0040e640
add esp, 0x24
jmp 0x40e205
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40e1ed
movsx ecx, byte [esi]
push 0
push ecx
push 0x102
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40e205
or bl, byte [ebp - 7]
movzx eax, byte [esi]
movzx edx, bl
push edx
push eax
mov eax, 1
call fcn.0040e9f0
add esp, 8
xor bl, bl
mov byte [ebp - 1], bl
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 9]
inc eax
cmp byte [eax], 0
mov dword [ebp + 8], eax
mov byte [0x4acb13], cl
jne 0x40d8a0
mov eax, dword [0x4acb88]
test eax, eax
je 0x40e2e0
cmp byte [0x4aa149], 0
mov dword [ebp - 0x1c], 0xffffffff
jne 0x40e299
cmp dword [0x4aa15c], 0
jbe 0x40e299
cmp byte [0x4aa143], 0
je 0x40e256
xor eax, eax
jmp 0x40e262
movzx eax, byte [ebp - 0xa]
movzx edx, byte [ebp - 2]
not eax
and eax, edx
or al, byte [ebp - 7]
push 1
mov byte [ebp + 8], al
movzx eax, byte [0x4aa14b]
mov edi, dword [ebp + 8]
push 1
push 0
push eax
push edi
mov esi, 0xffc3d44d
call fcn.00410d80
add esp, 0x14
lea ecx, [ebp - 0x1c]
push edi
push ecx
call fcn.00410860
mov eax, dword [0x4acb88]
add esp, 8
mov edi, 1
sub eax, edi
neg eax
sbb eax, eax
and eax, 0x3e8
add eax, 0x1f4
cmp dword [0x4aa158], eax
jbe 0x40e2c5
mov edx, dword [0x4aa160]
push edx
call fcn.00485398
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
mov dword [0x4acb88], 0
call fcn.004109b0
add esp, 4
jmp 0x40e464
cmp dword [0x4ab35c], 0
je 0x40e2f1
mov cl, byte [0x4ab22b]
jmp 0x40e315
cmp dword [0x4a787c], 0
jl 0x40e312
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ad870]
cmp eax, dword [0x4a787c]
jb 0x40e312
xor cl, cl
jmp 0x40e315
mov cl, byte [ebp - 2]
or cl, byte [0x4acb35]
cmp byte [0x4aa143], 0
je 0x40e33d
mov dl, byte [ebp - 2]
mov al, cl
xor al, dl
mov bl, al
and bl, dl
not bl
and bl, byte [ebp - 7]
and al, cl
or bl, al
mov byte [ebp + 8], bl
jmp 0x40e34a
mov al, byte [ebp - 0xa]
not al
and al, cl
or al, byte [ebp - 7]
mov byte [ebp + 8], al
cmp dword [0x4ab35c], 0
je 0x40e361
mov cl, byte [0x4ab229]
mov byte [ebp - 0x1c], cl
jmp 0x40e442
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov edx, 0x8000
test dx, ax
je 0x40e37c
mov bl, 0x10
push 0xa1
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e390
or bl, 0x20
push 0xa2
call esi
mov edx, 0x8000
test dx, ax
je 0x40e3a4
or bl, 1
push 0xa3
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e3b8
or bl, 2
push 0xa4
call esi
mov edx, 0x8000
test dx, ax
je 0x40e3cc
or bl, 4
push 0xa5
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e3e0
or bl, 8
push 0x5b
call esi
mov edx, 0x8000
test dx, ax
je 0x40e3f1
or bl, 0x40
push 0x5c
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e402
or bl, 0x80
cmp dword [0x4ab35c], 0
je 0x40e43f
mov al, bl
not al
and al, byte [0x4ab229]
je 0x40e43f
mov cl, byte [0x4ab22b]
not al
and byte [0x4ab229], al
and byte [0x4ab22a], al
and cl, al
mov al, cl
mov byte [0x4ab22b], cl
mov ecx, 0x4ab250
call fcn.00411580
mov byte [ebp - 0x1c], bl
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
push 1
push 1
push edx
push eax
push ecx
mov esi, 0xffc3d44d
call fcn.00410d80
add esp, 0x14
mov edi, 1
xor ebx, ebx
cmp dword [0x4ab35c], ebx
je 0x40e486
mov al, byte [0x4ab22a]
mov dl, al
xor dl, byte [0x4ab229]
and dl, al
not dl
and al, dl
mov byte [0x4ab22a], al
cmp dword [ebp - 0x48], edi
jne 0x40e4fb
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call esi
test al, 1
jne 0x40e4fb
push 0x14
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e4ba
push 0xffc3d44d
push ebx
push ebx
push ebx
push 0x14
push edi
call fcn.0040ef10
add esp, 0x18
push 0xffc3d44d
push ebx
push ebx
push ebx
push 0x14
push 2
call fcn.0040ef10
add esp, 0x18
push ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4ad238]
jne 0x40e4fb
push edi
push 0xffffffffffffffff
mov dword [0x4a7884], ebx
call fcn.00401350
add esp, 8
mov dword [0x4a7884], edi
cmp byte [ebp - 0xf], bl
je 0x40e511
mov edx, dword [ebp - 0x58]
mov eax, dword [0x4ad238]
push ebx
push edx
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp - 8], bl
je 0x40e55a
cmp byte [ebp - 0x25], bl
jne 0x40e55a
test byte [0x4ae31c], 1
jne 0x40e548
or dword [0x4ae31c], edi
push str.BlockInput
push str.user32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4ae318], eax
jmp 0x40e54d
mov eax, dword [0x4ae318]
cmp eax, ebx
je 0x40e554
push ebx
call eax
mov byte [0x4aba2b], bl
cmp dword [ebp + 0x10], edi
jne 0x40e58c
push ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4ad238]
jne 0x40e58c
push edi
push 0xffffffffffffffff
mov dword [0x4a7884], ebx
call fcn.00401350
add esp, 8
mov dword [0x4a7884], edi
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x54]
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x64], edx
lea esp, [ebp - 0xc0]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret