Function at 0x40d520
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
je 0x40e5f9
mov bl, byte [ebp + 0xc]
mov esi, dword [0x4a6920]
mov dword [ebp - 0x3c], esi
test bl, bl
jne 0x40d5bd
push 7
push str.Blind
push edi
call fcn.00485c60
add esp, 0xc
test eax, eax
jne 0x40d5bd
add edi, 7
mov byte [0x4a9145], 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 - 0x58], ecx
cmp eax, 1
je 0x40d582
cmp eax, 3
jne 0x40d5f3
cmp dword [0x4aca60], 0
je 0x40d5c9
call fcn.00408c30
test al, al
jne 0x40d5c6
test bl, bl
jne 0x40d5b4
call fcn.00408c90
test al, al
je 0x40d5b4
push str.Click
mov eax, edi
call fcn.00472720
add esp, 4
test eax, eax
jne 0x40d5c6
mov dword [ebp + 0x10], 1
jmp 0x40d5f3
mov byte [0x4a9145], 0
jmp 0x40d569
mov eax, dword [ebp + 0x10]
cmp eax, 3
jne 0x40d5d7
mov dword [ebp + 0x10], 2
jmp 0x40d5f3
xor eax, eax
mov dword [ebp + 0x10], eax
cmp dword [esi + 0x5c], eax
jge 0x40d5e9
cmp dword [esi + 0x64], eax
jge 0x40d5e9
or eax, 0xffffffff
mov dword [esi + 0x64], eax
mov dword [esi + 0x5c], 0xffffffff
mov esi, dword [ebp + 0x14]
xor ebx, ebx
mov byte [ebp - 0x15], 0
test esi, esi
je 0x40d64b
push ebx
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
mov dword [ebp - 0x54], edi
test edi, edi
je 0x40d747
cmp edi, dword [0x4ac238]
je 0x40d747
call fcn.00476f90
test al, al
jne 0x40d747
mov edx, dword [0x4ac238]
push 1
push edi
push edx
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [ebp - 0x15]
mov ebx, edi
jmp 0x40d747
test byte [0x4ac879], 0xc0
je 0x40d732
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ac870]
cmp eax, 0x32
jae 0x40d732
cmp dword [ebp + 0x10], 2
je 0x40d732
cmp byte [0x4a9145], bl
jne 0x40d732
cmp byte [0x4aca56], bl
je 0x40d732
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4ac238]
jne 0x40d732
mov eax, dword [ebp + 8]
mov edi, 0x49a1ec
call fcn.004093b0
cmp byte [ebp + 0xc], bl
je 0x40d703
test eax, eax
setne al
test al, al
je 0x40d732
lea esp, [esp]
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
jne 0x40d6e2
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40d732
push 1
push 0x8000012f
mov dword [0x4a6884], ebx
call fcn.00401350
add esp, 8
mov dword [0x4a6884], 1
jmp 0x40d6c0
test eax, eax
je 0x40d732
jmp 0x40d710
inc eax
mov edi, 0x49a1f0
call fcn.004093b0
test eax, eax
je 0x40d6c0
cmp byte [eax], 0x7b
je 0x40d6c0
mov edi, 0x49a1ec
call fcn.004093b0
test eax, eax
jne 0x40d710
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x40d747
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 [0x4a916c], eax
push eax
xor eax, eax
call fcn.004119b0
add esp, 4
push 1
mov dword [0x4a9168], eax
call fcn.00411480
add esp, 4
cmp dword [0x4aa360], 0
mov bl, al
mov byte [ebp - 4], bl
je 0x40d797
mov cl, byte [0x4aa22d]
mov dl, byte [0x4aa22f]
mov al, cl
not cl
and al, dl
and cl, dl
mov byte [ebp - 3], dl
mov byte [ebp - 0xa], cl
jmp 0x40d7c2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ac870]
cmp eax, dword [0x4a687c]
jae 0x40d7b7
mov al, byte [0x4ac879]
and al, bl
mov byte [ebp - 3], al
jmp 0x40d7be
mov byte [ebp - 3], 0
mov al, byte [ebp - 3]
mov byte [ebp - 0xa], 0
mov cl, byte [0x4abb35]
not al
and al, bl
and cl, al
mov al, byte [0x4a9145]
mov byte [0x4abb35], cl
test al, al
je 0x40d7e9
not cl
and cl, bl
mov byte [ebp - 2], cl
mov byte [ebp - 8], bl
jmp 0x40d7f0
mov byte [ebp - 2], 0
mov byte [ebp - 8], cl
mov ecx, dword [ebp - 0x3c]
cmp byte [ecx + 0xd3], 0
je 0x40d814
test al, al
jne 0x40d814
push 2
mov bl, 0x14
call fcn.00410c70
mov bl, byte [ebp - 4]
add esp, 4
mov dword [ebp - 0x40], eax
jmp 0x40d81b
mov dword [ebp - 0x40], 0
mov esi, dword [ebp + 0x10]
mov dword [0x4abb88], esi
test esi, esi
je 0x40d88d
cmp esi, 1
jne 0x40d83e
mov eax, 0x36b0
mov dword [0x4a915c], 0x1f4
jmp 0x40d84d
mov eax, 0x2ee0
mov dword [0x4a915c], 0x5dc
call fcn.0048ec10
mov eax, esp
mov dword [0x4a9164], eax
mov eax, SysReAllocString
mov byte [0x4a914d], bl
mov dword [0x4a9150], eax
mov dword [0x4a9154], eax
mov byte [0x4a914c], 0
mov dword [0x4a9160], 0
mov byte [0x4a9147], 0
mov byte [0x4a9146], 1
mov eax, dword [0x4a6930]
mov dl, byte [0x4aab38]
mov byte [ebp - 0x26], dl
cmp eax, 8
je 0x40d8a5
cmp eax, 0xa
jne 0x40d8e0
test esi, esi
jne 0x40d8e0
cmp dword [ebp + 0x14], esi
jne 0x40d8e0
test byte [0x4ad314], 1
mov byte [ebp - 4], 1
jne 0x40d8e6
or dword [0x4ad314], 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 [0x4ad310], eax
jmp 0x40d8eb
mov byte [ebp - 4], 0
jmp 0x40d8fa
mov eax, dword [0x4ad310]
test eax, eax
je 0x40d8f3
push 1
call eax
mov byte [0x4aab38], 1
mov eax, dword [ebp + 8]
mov byte [ebp - 0x13], 0
cmp byte [eax], 0
mov byte [ebp - 1], 0
je 0x40e287
cmp dword [0x4abb88], 0
mov byte [ebp - 9], 0
jne 0x40d977
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4ac8ac]
mov ecx, dword [0x4a6920]
cmp eax, dword [ecx + 0xb8]
jbe 0x40d977
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 0x40d970
push 1
push 0xffffffffffffffff
mov dword [0x4a6884], 0
call fcn.00401350
add esp, 8
mov dword [0x4a6884], 1
call esi
mov dword [0x4ac8ac], eax
cmp byte [ebp + 0xc], 0
mov edi, dword [ebp + 8]
jne 0x40e15e
movsx eax, byte [edi]
push eax
push str._
call fcn.004861d1
add esp, 8
test eax, eax
je 0x40e15e
movsx eax, byte [edi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x40d9b3.34
movzx eax, byte [eax + 0x40e624]
jmp dword [eax*4 + 0x40e608]
test byte [ebp - 8], 3
jne case.0x40d9b3.34
or byte [ebp - 1], 1
jmp case.0x40d9b3.34
test byte [ebp - 8], 0x30
jne case.0x40d9b3.34
or byte [ebp - 1], 0x10
jmp case.0x40d9b3.34
test byte [ebp - 8], 0xc
jne case.0x40d9b3.34
or byte [ebp - 1], 4
jmp case.0x40d9b3.34
test byte [ebp - 8], 0xc0
jne case.0x40d9b3.34
or byte [ebp - 1], 0x40
jmp case.0x40d9b3.34
mov esi, dword [ebp + 8]
inc esi
push 0x7d
push esi
call fcn.004861d1
mov edi, eax
add esp, 8
mov dword [ebp - 0x24], edi
test edi, edi
je case.0x40d9b3.34
mov ebx, esi
mov al, byte [ebx]
cmp al, 0x20
je 0x40da2e
cmp al, 9
jne 0x40da31
inc ebx
jmp 0x40da24
mov esi, edi
sub esi, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp + 8], ebx
mov dword [ebp - 0x2c], esi
jne 0x40dabc
mov al, byte [edi + 1]
lea esi, [edi + 1]
cmp al, 0x7d
jne 0x40da56
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x2c], 1
jmp 0x40dab6
cmp al, 0x20
je 0x40da62
cmp al, 9
jne 0x40e153
mov al, byte [esi]
cmp al, 0x20
je 0x40da6c
cmp al, 9
jne 0x40da6f
inc esi
jmp 0x40da62
push 4
push str.Down
push esi
call fcn.00485c60
add esp, 0xc
test eax, eax
je 0x40da9b
push 2
push 0x498af0
push esi
call fcn.00485c60
add esp, 0xc
test eax, eax
jne 0x40e153
push 0x7d
push esi
call fcn.004861d1
add esp, 8
mov dword [ebp - 0x24], eax
test eax, eax
je case.0x40d9b3.34
sub eax, ebx
mov dword [ebp - 0x2c], eax
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x2c]
push 5
push 0x49990c
push ebx
call fcn.00485c60
add esp, 0xc
test eax, eax
jne 0x40db6b
mov byte [edi], al
add ebx, 5
lea esp, [esp]
mov al, byte [ebx]
cmp al, 0x20
je 0x40daea
cmp al, 9
jne 0x40daed
inc ebx
jmp 0x40dae0
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0xe]
push ecx
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0040f5d0
mov ecx, dword [ebp - 0x30]
add esp, 0x18
mov byte [edi], 0x7d
cmp ecx, 1
jge 0x40db46
mov edx, dword [ebp - 0x3c]
movzx eax, byte [edx + 0xcf]
mov ecx, dword [ebp - 0x48]
push ecx
push eax
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x6c]
lea eax, [ebp - 0x4c]
call fcn.00410240
mov ecx, dword [ebp - 0x24]
add esp, 0xc
mov dword [ebp + 8], ecx
jmp 0x40e26a
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x50]
push edx
mov edx, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp + 0x14]
push edx
mov edx, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 8]
push 0
push edx
mov edx, dword [ebp - 0xe]
push eax
push 0
push edx
jmp 0x40e148
push 3
push 0x49a1fc
push ebx
call fcn.00485c60
add esp, 0xc
test eax, eax
jne 0x40db8e
mov ecx, dword [ebp - 0x24]
mov byte [ebp + 0xc], 1
mov dword [ebp + 8], ecx
jmp 0x40e26a
mov eax, dword [ebp - 0x24]
mov byte [eax], 0
mov edi, 0x49a050
mov eax, ebx
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x20], esi
call fcn.004093b0
mov dword [ebp - 0x44], eax
test eax, eax
je 0x40dc2f
mov esi, eax
mov cl, byte [esi]
sub eax, ebx
mov byte [ebp - 0x27], cl
mov byte [esi], 0
mov dword [ebp - 0x20], eax
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
je 0x40dbc7
cmp al, 9
je 0x40dbc7
mov edx, dword [ebp - 0x24]
sub edx, esi
je 0x40dc2f
push 4
push str.Down
push esi
call fcn.00485c60
add esp, 0xc
test eax, eax
jne 0x40dc0c
push 4
push str.Temp
add esi, 4
push esi
mov dword [ebp - 0x1c], eax
call fcn.00485c60
add esp, 0xc
test eax, eax
setne byte [ebp - 0x25]
jmp 0x40dc2f
push 0x498af0
push esi
call fcn.004851e1
add esp, 8
test eax, eax
jne 0x40dc27
mov dword [ebp - 0x1c], 1
jmp 0x40dc2f
call fcn.0040ce80
mov dword [ebp - 0x30], eax
mov al, byte [ebx]
test al, al
je 0x40dc6b
cmp byte [ebx + 1], 0
jne 0x40dc4b
mov ecx, dword [0x4a916c]
lea esi, [ebp - 1]
call fcn.00411df0
jmp 0x40dc6d
xor esi, esi
lea ecx, [ecx]
mov eax, dword [esi*8 + 0x4a7660]
push ebx
push eax
call fcn.004851e1
add esp, 8
test eax, eax
je 0x40dc78
inc esi
cmp esi, 0x6d
jl 0x40dc50
xor al, al
mov byte [ebp - 0xe], al
test al, al
je 0x40dc81
xor esi, esi
jmp 0x40dcf4
mov al, byte [esi*8 + 0x4a7664]
jmp 0x40dc6d
mov eax, ebx
call fcn.00411c90
movzx esi, ax
mov dword [ebp + 8], esi
test si, si
jne 0x40dcf4
mov al, byte [ebx]
call fcn.00409380
cmp al, 0x56
jne 0x40dcf4
mov al, byte [ebx + 1]
call fcn.00409380
cmp al, 0x4b
jne 0x40dcf4
lea esi, [ebx + 2]
mov edi, 0x49a208
mov eax, esi
call fcn.004093b0
mov edi, eax
test edi, edi
je 0x40dce1
mov al, byte [edi + 1]
call fcn.00409380
cmp al, 0x43
jne 0x40dce1
push 0x10
push 0
add edi, 2
push edi
call fcn.00486b64
movzx eax, ax
add esp, 0xc
mov dword [ebp + 8], eax
push 0x10
push 0
push esi
call fcn.00486b64
mov esi, dword [ebp + 8]
add esp, 0xc
mov byte [ebp - 0xe], al
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x40dd00
mov cl, byte [ebp - 0x27]
mov byte [eax], cl
mov edi, dword [ebp - 0x30]
mov edx, dword [ebp - 0x24]
mov eax, 1
mov byte [edx], 0x7d
cmp edi, eax
jl 0x40e153
cmp byte [ebp - 0xe], 0
jne 0x40e0b2
test si, si
jne 0x40e0b2
cmp dword [ebp - 0x20], eax
jne 0x40dd6f
cmp dword [ebp - 0x1c], eax
je 0x40e153
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40dd5b
movsx ecx, byte [ebx]
push 0
push ecx
push 0x102
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [ebp - 0x24]
mov dword [ebp + 8], ecx
jmp 0x40e26a
mov cl, byte [ebx]
mov eax, edi
call fcn.0040ea30
mov ecx, dword [ebp - 0x24]
mov dword [ebp + 8], ecx
jmp 0x40e26a
cmp dword [ebp + 0x14], 0
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x38]
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x1c]
sete bl
push eax
call fcn.00411e60
add esp, 8
mov byte [ebp - 0xe], al
test al, al
je 0x40df71
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x40ddad
cmp dword [ebp - 0x1c], edi
jne 0x40dda8
mov byte [ebp - 9], al
jmp 0x40ddad
call fcn.0040d050
cmp dword [0x4abb88], 0
je 0x40ddc1
mov bl, byte [0x4a914d]
jmp 0x40deb3
cmp dword [0x4aa360], 0
je 0x40ddd5
mov bl, byte [0x4aa22d]
jmp 0x40deb3
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40ddf0
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40de04
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40de18
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40de2c
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40de40
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40de54
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40de65
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40de76
or bl, 0x80
cmp dword [0x4aa360], 0
je 0x40deb3
mov al, bl
not al
and al, byte [0x4aa22d]
je 0x40deb3
mov cl, byte [0x4aa22f]
not al
and byte [0x4aa22d], al
and byte [0x4aa22e], al
and cl, al
mov al, cl
mov byte [0x4aa22f], cl
mov ecx, 0x4aa250
call fcn.00411580
mov eax, dword [ebp - 8]
push 0
push 0
push edi
push ebx
push eax
mov esi, 0xffc3d44d
call fcn.00410d80
mov eax, dword [ebp - 0x30]
add esp, 0x14
test eax, eax
jle 0x40e153
mov ebx, dword [ebp - 0xe]
mov edi, eax
lea ebx, [ebx]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x1c]
push 0xffc3d44d
push 1
push ecx
push 0
push ebx
push edx
call fcn.0040ef00
add esp, 0x18
cmp dword [0x4abb88], 0
jne 0x40df5f
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4ac8ac]
mov ecx, dword [0x4a6920]
cmp eax, dword [ecx + 0xb8]
jbe 0x40df5f
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 0x40df58
push 1
push 0xffffffffffffffff
mov dword [0x4a6884], 0
call fcn.00401350
add esp, 8
mov dword [0x4a6884], 1
call esi
mov dword [0x4ac8ac], eax
dec edi
jne 0x40dee0
mov ecx, dword [ebp - 0x24]
mov dword [ebp + 8], ecx
jmp 0x40e26a
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x38]
cmp edi, 4
jbe 0x40dfec
push 4
push str.ASC
push esi
call fcn.00485c60
add esp, 0xc
test eax, eax
jne 0x40dfec
cmp dword [ebp + 0x14], eax
jne 0x40dfec
lea edi, [esi + 3]
mov al, byte [edi]
cmp al, 0x20
je 0x40dfa2
cmp al, 9
jne 0x40dfa5
inc edi
jmp 0x40df98
call fcn.0040eb10
cmp dword [0x4abb88], 2
jne 0x40dfcf
mov eax, dword [0x4a6920]
mov eax, dword [eax + 0x60]
push eax
call fcn.004109b0
mov ecx, dword [ebp - 0x24]
add esp, 4
mov dword [ebp + 8], ecx
jmp 0x40e26a
mov ecx, dword [0x4a6920]
mov eax, dword [ecx + 0x5c]
push eax
call fcn.004109b0
mov ecx, dword [ebp - 0x24]
add esp, 4
mov dword [ebp + 8], ecx
jmp 0x40e26a
mov ebx, 2
cmp edi, ebx
jbe 0x40e153
push ebx
push 0x49a214
push esi
call fcn.00485c60
add esp, 0xc
test eax, eax
jne 0x40e153
push 0x10
push eax
add esi, ebx
push esi
call fcn.00486b64
movzx ecx, ax
mov eax, dword [ebp + 0x14]
add esp, 0xc
test eax, eax
je 0x40e039
push 0
push ecx
push 0x102
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40e071
cmp dword [0x4abb88], ebx
je 0x40e056
movzx edx, byte [ebp - 8]
movzx eax, byte [ebp - 1]
or eax, edx
push ecx
call fcn.0040d0d0
add esp, 4
jmp 0x40e071
push 0xa
lea eax, [ebp - 0x67]
push eax
push ecx
mov byte [ebp - 0x68], 0x30
call fcn.00484e72
add esp, 0xc
lea edi, [ebp - 0x68]
call fcn.0040eb10
cmp dword [0x4abb88], ebx
jne 0x40e096
mov edx, dword [0x4a6920]
mov eax, dword [edx + 0x60]
push eax
call fcn.004109b0
mov ecx, dword [ebp - 0x24]
add esp, 4
mov dword [ebp + 8], ecx
jmp 0x40e26a
mov eax, dword [0x4a6920]
mov eax, dword [eax + 0x5c]
push eax
call fcn.004109b0
mov ecx, dword [ebp - 0x24]
add esp, 4
mov dword [ebp + 8], ecx
jmp 0x40e26a
mov al, byte [ebp - 0xe]
xor ecx, ecx
mov edx, esi
call fcn.00411650
mov bl, al
mov byte [ebp - 0x5c], bl
test bl, bl
je 0x40e125
cmp dword [ebp + 0x14], 0
jne 0x40e125
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x40e0ea
mov cl, byte [ebp - 0xe]
mov byte [ebp - 9], cl
cmp byte [ebp - 0x25], al
je 0x40e0e5
or byte [0x4abb35], bl
or byte [ebp - 8], bl
jmp 0x40e125
cmp eax, 1
jne 0x40e125
mov al, byte [ebp - 0xe]
call fcn.0040d050
mov cl, byte [0x4abb35]
mov al, bl
not al
and byte [ebp - 2], al
and cl, al
cmp byte [ebp - 0xe], 0xa5
mov byte [0x4abb35], cl
jne 0x40e11f
cmp dword [0x4a9168], 3
jne 0x40e11f
and byte [ebp - 2], 0xfe
or cl, byte [ebp - 2]
mov byte [ebp - 8], cl
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x1c]
push 0
push SysReAllocString
push SysReAllocString
push edx
mov edx, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xe]
push ecx
push edx
push esi
push eax
mov ecx, edi
mov al, byte [ebp - 1]
call fcn.0040e690
add esp, 0x24
mov ecx, dword [ebp - 0x24]
mov dword [ebp + 8], ecx
jmp 0x40e26a
mov al, byte [edi]
mov byte [ebp - 0x14], al
test al, al
je 0x40e1fe
cmp byte [ebp - 0x13], 0
jne 0x40e181
mov ecx, dword [0x4a916c]
lea esi, [ebp - 1]
call fcn.00411df0
jmp 0x40e200
movzx esi, al
test esi, 0xffffff80
jne 0x40e19e
push 2
push esi
call fcn.0048671e
add esp, 8
test eax, eax
je 0x40e19e
and esi, 0xffffffdf
mov eax, esi
cmp al, 0x56
jne 0x40e1da
movzx esi, byte [ebp - 0x13]
test esi, 0xffffff80
jne 0x40e1c2
push 2
push esi
call fcn.0048671e
add esp, 8
test eax, eax
je 0x40e1c2
and esi, 0xffffffdf
mov eax, esi
cmp al, 0x4b
jne 0x40e1da
push 0x10
lea edx, [ebp - 0x12]
push 0
push edx
call fcn.00486b64
add esp, 0xc
jmp 0x40e200
xor esi, esi
lea esp, [esp]
mov eax, dword [esi*8 + 0x4a7660]
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.004851e1
add esp, 8
test eax, eax
je 0x40e23a
inc esi
cmp esi, 0x6d
jl 0x40e1e0
xor al, al
mov byte [ebp - 0x34], al
mov byte [ebp - 0xe], al
test al, al
je 0x40e243
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x34]
push 0
push SysReAllocString
push SysReAllocString
push edx
push 0
push 2
push eax
mov al, byte [ebp - 1]
push 0
push ecx
mov ecx, 1
call fcn.0040e690
add esp, 0x24
jmp 0x40e26a
mov al, byte [esi*8 + 0x4a7664]
jmp 0x40e200
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40e25e
movsx edx, byte [edi]
push 0
push edx
push 0x102
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40e26a
mov cl, byte [edi]
mov eax, 1
call fcn.0040ea30
mov byte [ebp - 1], 0
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 9]
inc eax
cmp byte [eax], 0
mov dword [ebp + 8], eax
mov byte [0x4abb34], cl
jne 0x40d90e
cmp dword [0x4abb88], 0
je 0x40e344
cmp byte [0x4a9147], 0
mov dword [ebp - 0x20], 0xffffffff
jne 0x40e2f8
cmp dword [0x4a9160], 0
jbe 0x40e2f8
cmp byte [0x4a9145], 0
je 0x40e2ba
xor eax, eax
jmp 0x40e2c6
movzx eax, byte [ebp - 0xa]
movzx edx, byte [ebp - 3]
not eax
and eax, edx
or al, byte [ebp - 8]
push 1
mov byte [ebp + 8], al
movzx eax, byte [0x4a914d]
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 - 0x20]
push edi
push ecx
call fcn.00410860
add esp, 8
mov eax, dword [0x4abb88]
mov edi, 1
sub eax, edi
neg eax
sbb eax, eax
and eax, 0x3e8
add eax, 0x1f4
cmp dword [0x4a915c], eax
jbe 0x40e329
mov edx, dword [0x4a9164]
push edx
call fcn.004851f8
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov dword [0x4abb88], 0
call fcn.004109b0
add esp, 4
jmp 0x40e4c2
cmp dword [0x4aa360], 0
je 0x40e355
mov cl, byte [0x4aa22f]
jmp 0x40e379
cmp dword [0x4a687c], 0
jl 0x40e376
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ac870]
cmp eax, dword [0x4a687c]
jb 0x40e376
xor cl, cl
jmp 0x40e379
mov cl, byte [ebp - 3]
cmp byte [0x4a9145], 0
je 0x40e39b
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 0x40e3a8
mov al, byte [ebp - 0xa]
not al
and al, cl
or al, byte [ebp - 8]
mov byte [ebp + 8], al
cmp dword [0x4aa360], 0
je 0x40e3bf
mov cl, byte [0x4aa22d]
mov byte [ebp - 0x20], cl
jmp 0x40e4a0
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov edx, 0x8000
test dx, ax
je 0x40e3da
mov bl, 0x10
push 0xa1
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e3ee
or bl, 0x20
push 0xa2
call esi
mov edx, 0x8000
test dx, ax
je 0x40e402
or bl, 1
push 0xa3
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e416
or bl, 2
push 0xa4
call esi
mov edx, 0x8000
test dx, ax
je 0x40e42a
or bl, 4
push 0xa5
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e43e
or bl, 8
push 0x5b
call esi
mov edx, 0x8000
test dx, ax
je 0x40e44f
or bl, 0x40
push 0x5c
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e460
or bl, 0x80
cmp dword [0x4aa360], 0
je 0x40e49d
mov al, bl
not al
and al, byte [0x4aa22d]
je 0x40e49d
mov cl, byte [0x4aa22f]
not al
and byte [0x4aa22d], al
and byte [0x4aa22e], al
and cl, al
mov al, cl
mov byte [0x4aa22f], cl
mov ecx, 0x4aa250
call fcn.00411580
mov byte [ebp - 0x20], bl
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x20]
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 [0x4aa360], ebx
je 0x40e4e4
mov al, byte [0x4aa22e]
mov dl, al
xor dl, byte [0x4aa22d]
and dl, al
not dl
and al, dl
mov byte [0x4aa22e], al
cmp dword [ebp - 0x40], edi
jne 0x40e559
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call esi
test al, 1
jne 0x40e559
push 0x14
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e518
push 0xffc3d44d
push ebx
push ebx
push ebx
push 0x14
push edi
call fcn.0040ef00
add esp, 0x18
push 0xffc3d44d
push ebx
push ebx
push ebx
push 0x14
push 2
call fcn.0040ef00
add esp, 0x18
push ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4ac238]
jne 0x40e559
push edi
push 0xffffffffffffffff
mov dword [0x4a6884], ebx
call fcn.00401350
add esp, 8
mov dword [0x4a6884], edi
cmp byte [ebp - 0x15], bl
je 0x40e56f
mov edx, dword [ebp - 0x54]
mov eax, dword [0x4ac238]
push ebx
push edx
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp - 4], bl
je 0x40e5b8
cmp byte [ebp - 0x26], bl
jne 0x40e5b8
test byte [0x4ad314], 1
jne 0x40e5a6
or dword [0x4ad314], 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 [0x4ad310], eax
jmp 0x40e5ab
mov eax, dword [0x4ad310]
cmp eax, ebx
je 0x40e5b2
push ebx
call eax
mov byte [0x4aab38], bl
cmp dword [ebp + 0x10], edi
jne 0x40e5ea
push ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4ac238]
jne 0x40e5ea
push edi
push 0xffffffffffffffff
mov dword [0x4a6884], ebx
call fcn.00401350
add esp, 8
mov dword [0x4a6884], edi
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x58]
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