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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp byte [edi], 0
mov dword [ebp - 0x54], 0
je 0x40deb9
mov bl, byte [ebp + 0xc]
mov esi, dword [0x49f440]
mov dword [ebp - 0x40], esi
test bl, bl
jne 0x40cdf4
push 7
push str.Blind
push edi
call fcn.0047f82b
add esp, 0xc
test eax, eax
jne 0x40cdf4
add edi, 7
mov byte [0x4a1b4d], 1
mov dword [ebp + 8], edi
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x64]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x54], ecx
cmp eax, 1
je 0x40cdb9
cmp eax, 3
jne 0x40ce2a
cmp dword [0x4a5490], 0
je 0x40ce00
call fcn.00408730
test al, al
jne 0x40cdfd
test bl, bl
jne 0x40cdeb
call fcn.00408790
test al, al
je 0x40cdeb
push str.Click
mov eax, edi
call fcn.0046caa0
add esp, 4
test eax, eax
jne 0x40cdfd
mov dword [ebp + 0x10], 1
jmp 0x40ce2a
mov byte [0x4a1b4d], 0
jmp 0x40cda0
mov eax, dword [ebp + 0x10]
cmp eax, 3
jne 0x40ce0e
mov dword [ebp + 0x10], 2
jmp 0x40ce2a
xor eax, eax
mov dword [ebp + 0x10], eax
cmp dword [esi + 0x5c], eax
jge 0x40ce20
cmp dword [esi + 0x64], eax
jge 0x40ce20
or eax, 0xffffffff
mov dword [esi + 0x64], eax
mov dword [esi + 0x5c], 0xffffffff
mov esi, dword [ebp + 0x14]
xor ebx, ebx
mov byte [ebp - 0x11], 0
test esi, esi
je 0x40ce82
push ebx
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
mov dword [ebp - 0x5c], edi
test edi, edi
je 0x40cf77
cmp edi, dword [0x4a4c40]
je 0x40cf77
call fcn.00470fb0
test al, al
jne 0x40cf77
mov edx, dword [0x4a4c40]
push 1
push edi
push edx
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [ebp - 0x11]
mov ebx, edi
jmp 0x40cf77
test byte [0x4a5239], 0xc0
je 0x40cf62
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4a5230]
cmp eax, 0x32
jae 0x40cf62
cmp dword [ebp + 0x10], 2
je 0x40cf62
cmp byte [0x4a1b4d], bl
jne 0x40cf62
cmp byte [0x4a547e], bl
je 0x40cf62
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4a4c40]
jne 0x40cf62
mov eax, dword [ebp + 8]
mov edi, 0x4941bc
call fcn.00408eb0
cmp byte [ebp + 0xc], bl
je 0x40cf38
test eax, eax
setne al
test al, al
je 0x40cf62
xor esi, esi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x5b
call edi
mov ecx, 0x8000
test cx, ax
jne 0x40cf17
push 0x5c
call edi
mov edx, 0x8000
test dx, ax
je 0x40cf62
push 1
push 0x8000012f
mov dword [0x49f3a4], esi
call fcn.004012a0
add esp, 8
mov dword [0x49f3a4], 1
jmp 0x40cef5
test eax, eax
je 0x40cf62
lea esp, [esp]
inc eax
mov edi, 0x4941c0
call fcn.00408eb0
test eax, eax
je 0x40cef3
cmp byte [eax], 0x7b
je 0x40cef3
mov edi, 0x4941bc
call fcn.00408eb0
test eax, eax
jne 0x40cf40
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x40cf77
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [0x4a1b74], eax
push eax
xor eax, eax
call fcn.004112b0
add esp, 4
push 1
mov dword [0x4a1b70], eax
call fcn.00410db0
add esp, 4
cmp dword [0x4a2d60], 0
mov bl, al
mov byte [ebp - 4], bl
je 0x40cfc7
mov cl, byte [0x4a2c2d]
mov dl, byte [0x4a2c2f]
mov al, cl
not cl
and al, dl
and cl, dl
mov byte [ebp - 3], dl
mov byte [ebp - 0xa], cl
jmp 0x40cff2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4a5230]
cmp eax, dword [0x49f39c]
jae 0x40cfe7
mov al, byte [0x4a5239]
and al, bl
mov byte [ebp - 3], al
jmp 0x40cfee
mov byte [ebp - 3], 0
mov al, byte [ebp - 3]
mov byte [ebp - 0xa], 0
mov cl, byte [0x4a453c]
not al
and al, bl
and cl, al
mov al, byte [0x4a1b4d]
mov byte [0x4a453c], cl
test al, al
je 0x40d019
not cl
and cl, bl
mov byte [ebp - 2], cl
mov byte [ebp - 8], bl
jmp 0x40d020
mov byte [ebp - 2], 0
mov byte [ebp - 8], cl
mov ecx, dword [ebp - 0x40]
cmp byte [ecx + 0xcf], 0
je 0x40d0f9
test al, al
jne 0x40d0f9
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call esi
and al, 1
movsx edi, al
neg edi
sbb edi, edi
add edi, 2
cmp edi, 2
jne 0x40d05b
mov dword [ebp - 0x44], edi
jmp 0x40d100
push 0xffc3d44d
push 0
push 0
push 0
push 0x14
push 2
call fcn.0040e7c0
add esp, 0x18
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4a4c40]
sete bl
test bl, bl
je 0x40d0ae
push 1
push 0xffffffffffffffff
mov dword [0x49f3a4], 0
call fcn.004012a0
add esp, 8
mov dword [0x49f3a4], 1
push 0x14
call esi
test al, 1
je 0x40d0f1
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 2
call fcn.0040e7c0
add esp, 0x18
test bl, bl
je 0x40d0f1
push 1
push 0xffffffffffffffff
mov dword [0x49f3a4], 0
call fcn.004012a0
add esp, 8
mov dword [0x49f3a4], 1
mov bl, byte [ebp - 4]
mov dword [ebp - 0x44], edi
jmp 0x40d100
mov dword [ebp - 0x44], 0
mov esi, dword [ebp + 0x10]
mov dword [0x4a4590], esi
test esi, esi
je 0x40d172
cmp esi, 1
jne 0x40d123
mov eax, 0x36b0
mov dword [0x4a1b64], 0x1f4
jmp 0x40d132
mov eax, 0x2ee0
mov dword [0x4a1b64], 0x5dc
call fcn.00488660
mov eax, esp
mov dword [0x4a1b6c], eax
mov eax, SysReAllocString
mov byte [0x4a1b55], bl
mov dword [0x4a1b58], eax
mov dword [0x4a1b5c], eax
mov byte [0x4a1b54], 0
mov dword [0x4a1b68], 0
mov byte [0x4a1b4f], 0
mov byte [0x4a1b4e], 1
mov eax, dword [0x49f450]
mov dl, byte [0x4a3433]
mov byte [ebp - 0x2b], dl
cmp eax, 8
je 0x40d18a
cmp eax, 0xa
jne 0x40d1c5
test esi, esi
jne 0x40d1c5
cmp dword [ebp + 0x14], esi
jne 0x40d1c5
test byte [0x4a5d48], 1
mov byte [ebp - 4], 1
jne 0x40d1cb
or dword [0x4a5d48], 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 [0x4a5d44], eax
jmp 0x40d1d0
mov byte [ebp - 4], 0
jmp 0x40d1df
mov eax, dword [0x4a5d44]
test eax, eax
je 0x40d1d8
push 1
call eax
mov byte [0x4a3433], 1
mov eax, dword [ebp + 8]
mov byte [ebp - 0xf], 0
cmp byte [eax], 0
mov byte [ebp - 1], 0
je 0x40da40
mov bl, byte [ebp - 8]
cmp dword [0x4a4590], 0
mov byte [ebp - 9], 0
jne 0x40d25f
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4a5274]
mov ecx, dword [0x49f440]
cmp eax, dword [ecx + 0xb4]
jbe 0x40d25f
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x88]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40d258
push 1
push 0xffffffffffffffff
mov dword [0x49f3a4], 0
call fcn.004012a0
add esp, 8
mov dword [0x49f3a4], 1
call esi
mov dword [0x4a5274], eax
cmp byte [ebp + 0xc], 0
jne 0x40da82
mov esi, dword [ebp + 8]
movsx eax, byte [esi]
push eax
push 0x4941c4
call fcn.0047fd91
add esp, 8
test eax, eax
je 0x40da82
movsx eax, byte [esi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x40d29b.34
movzx eax, byte [eax + 0x40dee4]
jmp dword [eax*4 + 0x40dec8]
test bl, 3
jne case.0x40d29b.34
or byte [ebp - 1], 1
jmp case.0x40d29b.34
test bl, 0x30
jne case.0x40d29b.34
or byte [ebp - 1], 0x10
jmp case.0x40d29b.34
test bl, 0xc
jne case.0x40d29b.34
or byte [ebp - 1], 4
jmp case.0x40d29b.34
cmp byte [0x4a5257], 0
jne case.0x40d29b.34
test bl, 0xc0
jne case.0x40d29b.34
or byte [ebp - 1], 0x40
jmp case.0x40d29b.34
mov esi, dword [ebp + 8]
inc esi
push 0x7d
push esi
call fcn.0047fd91
mov edi, eax
add esp, 8
mov dword [ebp - 0x24], edi
test edi, edi
je case.0x40d29b.34
mov ebx, esi
mov al, byte [ebx]
cmp al, 0x20
je 0x40d31f
cmp al, 9
jne 0x40d322
inc ebx
jmp 0x40d315
mov esi, edi
sub esi, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp + 8], ebx
mov dword [ebp - 0x30], esi
jne 0x40d3bd
mov al, byte [edi + 1]
lea esi, [edi + 1]
cmp al, 0x7d
jne 0x40d34b
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x30], 1
jmp 0x40d3b7
cmp al, 0x20
je 0x40d360
cmp al, 9
jne 0x40da1a
mov ebx, dword [ebp - 0x1c]
lea ebx, [ebx]
mov al, byte [esi]
cmp al, 0x20
je 0x40d36a
cmp al, 9
jne 0x40d36d
inc esi
jmp 0x40d360
push 4
push str.Down
push esi
call fcn.0047f82b
add esp, 0xc
test eax, eax
je 0x40d39c
push 2
push 0x492ab0
push esi
call fcn.0047f82b
add esp, 0xc
test eax, eax
jne 0x40da1a
mov ebx, dword [ebp - 0x1c]
push 0x7d
push esi
call fcn.0047fd91
add esp, 8
mov dword [ebp - 0x24], eax
test eax, eax
je 0x40da24
sub eax, ebx
mov dword [ebp - 0x30], eax
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp - 0x24]
push 5
push 0x493918
push ebx
call fcn.0047f82b
add esp, 0xc
test eax, eax
jne 0x40d461
mov byte [edi], al
lea eax, [ebx + 5]
lea ebx, [ebx]
mov cl, byte [eax]
cmp cl, 0x20
je 0x40d3ec
cmp cl, 9
jne 0x40d3ef
inc eax
jmp 0x40d3e0
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x34]
push edx
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x29]
push edx
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x50]
push edx
call fcn.0040ef20
mov ecx, dword [ebp - 0x34]
add esp, 0x18
mov byte [edi], 0x7d
cmp ecx, 1
jge 0x40d440
mov ecx, dword [ebp - 0x40]
movzx edx, byte [ecx + 0xcb]
mov eax, dword [ebp - 0x4c]
push eax
push edx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x6c]
lea eax, [ebp - 0x50]
call fcn.0040fb90
add esp, 0xc
jmp 0x40da1a
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x48]
push edx
mov edx, dword [ebp - 0x50]
push eax
mov eax, dword [ebp + 0x14]
push edx
mov edx, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x29]
push 0
push edx
push 0
push eax
jmp 0x40da0c
push 3
push 0x4941cc
push ebx
call fcn.0047f82b
add esp, 0xc
test eax, eax
jne 0x40d47e
mov byte [ebp + 0xc], 1
jmp 0x40da1a
mov ecx, dword [ebp - 0x24]
mov edi, 0x49402c
mov eax, ebx
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x20], esi
mov byte [ecx], 0
call fcn.00408eb0
mov dword [ebp - 0x58], eax
test eax, eax
je 0x40d529
mov dl, byte [eax]
mov ecx, eax
sub ecx, ebx
mov byte [ebp - 0x2a], dl
mov byte [eax], 0
mov dword [ebp - 0x20], ecx
lea esi, [eax + 1]
mov edi, edi
mov al, byte [esi]
cmp al, 0x20
je 0x40d4ca
cmp al, 9
jne 0x40d4cd
inc esi
jmp 0x40d4c0
mov eax, dword [ebp - 0x24]
sub eax, esi
je 0x40d529
push 4
push str.Down
push esi
call fcn.0047f82b
add esp, 0xc
test eax, eax
jne 0x40d506
push 4
push str.Temp
add esi, 4
push esi
mov dword [ebp - 0x18], eax
call fcn.0047f82b
add esp, 0xc
test eax, eax
setne byte [ebp - 0x25]
jmp 0x40d529
push 0x492ab0
push esi
call fcn.0047edc1
add esp, 8
test eax, eax
jne 0x40d521
mov dword [ebp - 0x18], 1
jmp 0x40d529
call fcn.0040c6b0
mov dword [ebp - 0x34], eax
mov al, byte [ebx]
test al, al
je 0x40d562
cmp byte [ebx + 1], 0
jne 0x40d545
mov ecx, dword [0x4a1b74]
lea esi, [ebp - 1]
call fcn.004115e0
jmp 0x40d564
xor esi, esi
mov eax, dword [esi*8 + 0x4a01c8]
push ebx
push eax
call fcn.0047edc1
add esp, 8
test eax, eax
je 0x40d579
inc esi
cmp esi, 0x6d
jl 0x40d547
xor al, al
mov esi, dword [ebp - 0x1c]
mov bl, al
mov byte [ebp - 0x29], bl
test al, al
je 0x40d582
mov dword [ebp + 8], 0
jmp 0x40d5f4
mov al, byte [esi*8 + 0x4a01cc]
jmp 0x40d564
mov eax, esi
call fcn.00411480
movzx edi, ax
mov dword [ebp + 8], edi
test di, di
jne 0x40d5f7
mov al, byte [esi]
call fcn.00408e80
cmp al, 0x56
jne 0x40d5f7
mov al, byte [esi + 1]
call fcn.00408e80
cmp al, 0x4b
jne 0x40d5f7
lea ebx, [esi + 2]
mov edi, 0x4941d8
mov eax, ebx
call fcn.00408eb0
mov edi, eax
test edi, edi
je 0x40d5e2
mov al, byte [edi + 1]
call fcn.00408e80
cmp al, 0x43
jne 0x40d5e2
push 0x10
push 0
add edi, 2
push edi
call fcn.00480724
movzx ecx, ax
add esp, 0xc
mov dword [ebp + 8], ecx
push 0x10
push 0
push ebx
call fcn.00480724
mov bl, al
add esp, 0xc
mov byte [ebp - 0x29], bl
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x40d603
mov dl, byte [ebp - 0x2a]
mov byte [eax], dl
mov eax, dword [ebp - 0x24]
mov byte [eax], 0x7d
mov eax, dword [ebp - 0x34]
mov ecx, 1
cmp eax, ecx
jl 0x40da1a
test bl, bl
jne 0x40d977
test di, di
jne 0x40d977
cmp dword [ebp - 0x20], ecx
jne 0x40d662
cmp dword [ebp - 0x18], ecx
je 0x40da1a
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x40d656
movsx edx, byte [esi]
push 0
push edx
push 0x102
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40da1a
mov cl, byte [esi]
call fcn.0040e2f0
jmp 0x40da1a
cmp dword [ebp + 0x14], 0
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x18]
sete bl
push ecx
call fcn.00411650
add esp, 8
mov byte [ebp - 0x29], al
test al, al
je 0x40d85b
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x40d6a0
cmp dword [ebp - 0x18], edi
jne 0x40d69b
mov byte [ebp - 9], al
jmp 0x40d6a0
call fcn.0040c880
cmp dword [0x4a4590], 0
je 0x40d6b4
mov bl, byte [0x4a1b55]
jmp 0x40d7a6
cmp dword [0x4a2d60], 0
je 0x40d6c8
mov bl, byte [0x4a2c2d]
jmp 0x40d7a6
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov edx, 0x8000
test dx, ax
je 0x40d6e3
mov bl, 0x10
push 0xa1
call esi
mov ecx, 0x8000
test cx, ax
je 0x40d6f7
or bl, 0x20
push 0xa2
call esi
mov edx, 0x8000
test dx, ax
je 0x40d70b
or bl, 1
push 0xa3
call esi
mov ecx, 0x8000
test cx, ax
je 0x40d71f
or bl, 2
push 0xa4
call esi
mov edx, 0x8000
test dx, ax
je 0x40d733
or bl, 4
push 0xa5
call esi
mov ecx, 0x8000
test cx, ax
je 0x40d747
or bl, 8
push 0x5b
call esi
mov edx, 0x8000
test dx, ax
je 0x40d758
or bl, 0x40
push 0x5c
call esi
mov ecx, 0x8000
test cx, ax
je 0x40d769
or bl, 0x80
cmp dword [0x4a2d60], 0
je 0x40d7a6
mov al, bl
not al
and al, byte [0x4a2c2d]
je 0x40d7a6
mov cl, byte [0x4a2c2f]
not al
and byte [0x4a2c2d], al
and byte [0x4a2c2e], al
and cl, al
mov al, cl
mov byte [0x4a2c2f], cl
mov ecx, 0x4a2c50
call fcn.00410eb0
mov edx, dword [ebp - 8]
push 0
push 0
push edi
push ebx
push edx
mov eax, 0xffc3d44d
call fcn.004106b0
mov eax, dword [ebp - 0x34]
add esp, 0x14
test eax, eax
jle 0x40da1a
mov ebx, dword [ebp - 0x29]
mov edi, eax
lea ecx, [ecx]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x18]
push 0xffc3d44d
push 1
push eax
push 0
push ebx
push ecx
call fcn.0040e7c0
add esp, 0x18
cmp dword [0x4a4590], 0
jne 0x40d84f
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4a5274]
mov edx, dword [0x49f440]
cmp eax, dword [edx + 0xb4]
jbe 0x40d84f
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40d848
push 1
push 0xffffffffffffffff
mov dword [0x49f3a4], 0
call fcn.004012a0
add esp, 8
mov dword [0x49f3a4], 1
call esi
mov dword [0x4a5274], eax
dec edi
jne 0x40d7d0
jmp 0x40da1a
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x1c]
cmp edi, 4
jbe 0x40d8c5
push 4
push str.ASC
push esi
call fcn.0047f82b
add esp, 0xc
test eax, eax
jne 0x40d8c5
cmp dword [ebp + 0x14], eax
jne 0x40d8c5
lea eax, [esi + 3]
mov cl, byte [eax]
cmp cl, 0x20
je 0x40d88e
cmp cl, 9
jne 0x40d891
inc eax
jmp 0x40d882
call fcn.0040e3d0
cmp dword [0x4a4590], 2
jne 0x40d8b2
mov ecx, dword [0x49f440]
mov esi, dword [ecx + 0x60]
call fcn.00410300
jmp 0x40da1a
mov edx, dword [0x49f440]
mov esi, dword [edx + 0x5c]
call fcn.00410300
jmp 0x40da1a
mov ebx, 2
cmp edi, ebx
jbe 0x40da1a
push ebx
push 0x4941e4
push esi
call fcn.0047f82b
add esp, 0xc
test eax, eax
jne 0x40da1a
push 0x10
push eax
add esi, ebx
push esi
call fcn.00480724
movzx ecx, ax
mov eax, dword [ebp + 0x14]
add esp, 0xc
test eax, eax
je 0x40d912
push 0
push ecx
push 0x102
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40d94a
cmp dword [0x4a4590], ebx
je 0x40d92f
movzx edx, byte [ebp - 8]
movzx eax, byte [ebp - 1]
or eax, edx
push ecx
call fcn.0040c900
add esp, 4
jmp 0x40d94a
push 0xa
lea eax, [ebp - 0x67]
push eax
push ecx
mov byte [ebp - 0x68], 0x30
call fcn.0047ea52
add esp, 0xc
lea eax, [ebp - 0x68]
call fcn.0040e3d0
cmp dword [0x4a4590], ebx
jne 0x40d965
mov edx, dword [0x49f440]
mov esi, dword [edx + 0x60]
call fcn.00410300
jmp 0x40da1a
mov eax, dword [0x49f440]
mov esi, dword [eax + 0x5c]
call fcn.00410300
jmp 0x40da1a
xor ecx, ecx
mov edx, edi
mov al, bl
call fcn.00410f80
mov byte [ebp - 0x3c], al
test al, al
je 0x40d9e9
cmp dword [ebp + 0x14], 0
jne 0x40d9e9
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40d9af
mov byte [ebp - 9], bl
cmp byte [ebp - 0x25], al
je 0x40d9a7
mov cl, byte [ebp - 0x3c]
or byte [0x4a453c], cl
mov dl, byte [ebp - 0x3c]
or byte [ebp - 8], dl
jmp 0x40d9e9
cmp eax, 1
jne 0x40d9e9
mov al, bl
call fcn.0040c880
mov al, byte [ebp - 0x3c]
mov cl, byte [0x4a453c]
not al
and byte [ebp - 2], al
and cl, al
mov byte [0x4a453c], cl
cmp bl, 0xa5
jne 0x40d9e3
cmp dword [0x4a1b70], 3
jne 0x40d9e3
and byte [ebp - 2], 0xfe
or cl, byte [ebp - 2]
mov byte [ebp - 8], cl
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 8]
push 0
push SysReAllocString
push SysReAllocString
push eax
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x29]
push edx
push eax
push ecx
mov ecx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x18]
mov al, byte [ebp - 1]
call fcn.0040df50
add esp, 0x20
mov edx, dword [ebp - 0x24]
mov dword [ebp + 8], edx
mov byte [ebp - 1], 0
mov bl, byte [ebp - 8]
mov eax, dword [ebp + 8]
mov dl, byte [ebp - 9]
inc eax
cmp byte [eax], 0
mov dword [ebp + 8], eax
mov byte [0x4a451b], dl
jne 0x40d1f6
xor edi, edi
cmp dword [0x4a4590], edi
je 0x40dc2b
cmp byte [0x4a1b4f], 0
mov dword [ebp - 0x20], 0xffffffff
jne 0x40dbe7
cmp dword [0x4a1b68], edi
jbe 0x40dbe7
cmp byte [0x4a1b4d], 0
je 0x40dba5
xor eax, eax
jmp 0x40dbb1
mov eax, dword [ebp + 8]
mov al, byte [eax]
mov byte [ebp - 0x10], al
test al, al
je 0x40db21
cmp byte [ebp - 0xf], 0
jne 0x40daa8
mov ecx, dword [0x4a1b74]
lea esi, [ebp - 1]
call fcn.004115e0
jmp 0x40db23
movzx esi, al
test esi, 0xffffff80
jne 0x40dac5
push 2
push esi
call fcn.004802de
add esp, 8
test eax, eax
je 0x40dac5
and esi, 0xffffffdf
mov eax, esi
cmp al, 0x56
jne 0x40db01
movzx esi, byte [ebp - 0xf]
test esi, 0xffffff80
jne 0x40dae9
push 2
push esi
call fcn.004802de
add esp, 8
test eax, eax
je 0x40dae9
and esi, 0xffffffdf
mov eax, esi
cmp al, 0x4b
jne 0x40db01
push 0x10
lea ecx, [ebp - 0xe]
push 0
push ecx
call fcn.00480724
add esp, 0xc
jmp 0x40db23
xor esi, esi
mov eax, dword [esi*8 + 0x4a01c8]
lea edx, [ebp - 0x10]
push edx
push eax
call fcn.0047edc1
add esp, 8
test eax, eax
je 0x40db65
inc esi
cmp esi, 0x6d
jl 0x40db03
xor al, al
mov byte [ebp - 0x38], al
mov byte [ebp - 0x29], al
test al, al
mov eax, dword [ebp + 0x14]
je 0x40db6e
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x38]
push 0
push SysReAllocString
push SysReAllocString
push eax
mov al, byte [ebp - 1]
push 0
push ecx
mov edi, 2
push 0
push edx
lea ecx, [edi - 1]
call fcn.0040df50
add esp, 0x20
mov byte [ebp - 1], 0
jmp case.0x40d29b.34
mov al, byte [esi*8 + 0x4a01cc]
jmp 0x40db23
mov ecx, dword [ebp + 8]
test eax, eax
je 0x40db90
movsx edx, byte [ecx]
push 0
push edx
push 0x102
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov byte [ebp - 1], 0
jmp case.0x40d29b.34
mov cl, byte [ecx]
mov eax, 1
call fcn.0040e2f0
mov byte [ebp - 1], 0
jmp case.0x40d29b.34
movzx eax, byte [ebp - 0xa]
movzx ecx, byte [ebp - 3]
not eax
and eax, ecx
or al, byte [ebp - 8]
movzx edx, byte [0x4a1b55]
mov ebx, 1
push ebx
push ebx
mov byte [ebp + 8], al
mov esi, dword [ebp + 8]
push edi
push edx
push esi
mov eax, 0xffc3d44d
call fcn.004106b0
add esp, 0x14
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.004101b0
add esp, 8
jmp 0x40dbec
mov ebx, 1
mov eax, dword [0x4a4590]
sub eax, ebx
neg eax
sbb eax, eax
and eax, 0x3e8
add eax, 0x1f4
cmp dword [0x4a1b64], eax
jbe 0x40dc18
mov ecx, dword [0x4a1b6c]
push ecx
call fcn.0047edd8
add esp, 4
mov esi, dword [ebp - 0x20]
mov dword [0x4a4590], edi
call fcn.00410300
jmp 0x40dda3
cmp dword [0x4a2d60], edi
je 0x40dc3b
mov cl, byte [0x4a2c2f]
jmp 0x40dc5e
cmp dword [0x49f39c], edi
jl 0x40dc5b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4a5230]
cmp eax, dword [0x49f39c]
jb 0x40dc5b
xor cl, cl
jmp 0x40dc5e
mov cl, byte [ebp - 3]
cmp byte [0x4a1b4d], 0
je 0x40dc80
mov dl, byte [ebp - 3]
mov al, cl
xor al, dl
mov bl, al
and bl, dl
not bl
and bl, byte [ebp - 8]
and al, cl
or bl, al
mov byte [ebp + 8], bl
jmp 0x40dc8d
mov al, byte [ebp - 0xa]
not al
and al, cl
or al, byte [ebp - 8]
mov byte [ebp + 8], al
cmp dword [0x4a2d60], edi
je 0x40dca3
mov dl, byte [0x4a2c2d]
mov byte [ebp - 0x20], dl
jmp 0x40dd83
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40dcbe
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40dcd2
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40dce6
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40dcfa
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40dd0e
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40dd22
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40dd33
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40dd44
or bl, 0x80
cmp dword [0x4a2d60], edi
je 0x40dd80
mov al, bl
not al
and al, byte [0x4a2c2d]
je 0x40dd80
mov cl, byte [0x4a2c2f]
not al
and byte [0x4a2c2d], al
and byte [0x4a2c2e], al
and cl, al
mov al, cl
mov byte [0x4a2c2f], cl
mov ecx, 0x4a2c50
call fcn.00410eb0
mov byte [ebp - 0x20], bl
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp + 8]
mov ebx, 1
push ebx
push ebx
push eax
push ecx
push edx
mov eax, 0xffc3d44d
call fcn.004106b0
add esp, 0x14
cmp dword [0x4a2d60], edi
je 0x40ddc3
mov al, byte [0x4a2c2e]
mov cl, al
xor cl, byte [0x4a2c2d]
and cl, al
not cl
and al, cl
mov byte [0x4a2c2e], al
cmp dword [ebp - 0x44], ebx
jne 0x40de15
push 0x14
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
jne 0x40de15
push 0xffc3d44d
push edi
push edi
push edi
push 0x14
push 2
call fcn.0040e7c0
add esp, 0x18
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4a4c40]
jne 0x40de15
push ebx
push 0xffffffffffffffff
mov dword [0x49f3a4], edi
call fcn.004012a0
add esp, 8
mov dword [0x49f3a4], ebx
cmp byte [ebp - 0x11], 0
je 0x40de2c
mov edx, dword [ebp - 0x5c]
mov eax, dword [0x4a4c40]
push edi
push edx
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp - 4], 0
je 0x40de78
cmp byte [ebp - 0x2b], 0
jne 0x40de78
test byte [0x4a5d48], 1
jne 0x40de65
or dword [0x4a5d48], ebx
push str.BlockInput
push str.user32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4a5d44], eax
jmp 0x40de6a
mov eax, dword [0x4a5d44]
cmp eax, edi
je 0x40de71
push edi
call eax
mov byte [0x4a3433], 0
cmp dword [ebp + 0x10], ebx
jne 0x40deaa
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4a4c40]
jne 0x40deaa
push ebx
push 0xffffffffffffffff
mov dword [0x49f3a4], edi
call fcn.004012a0
add esp, 8
mov dword [0x49f3a4], ebx
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x54]
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x64], edx
lea esp, [ebp - 0x98]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret