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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d7bac
push eax
mov dword fs:[0], esp
sub esp, 0x90
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0
je 0x4107fe
mov ebx, dword [ebp + 0xc]
mov esi, dword [0x51161c]
mov dword [ebp - 0x34], esi
test ebx, ebx
jne 0x40f67a
push 7
push 0x4e75e8
call fcn.0049fc00
add esp, 4
push eax
push edi
call fcn.004c56eb
add esp, 0xc
test eax, eax
jne 0x40f67a
add edi, 0xe
mov byte [0x514ddb], 1
mov dword [ebp + 8], edi
jmp 0x40f685
mov byte [0x514ddb], 0
test ebx, ebx
jne 0x40f6b2
push 6
push 0x4e7608
call fcn.0049fc00
add esp, 4
push eax
push edi
call fcn.004c56eb
add esp, 0xc
test eax, eax
jne 0x40f6b2
mov dword [ebp + 0xc], 2
mov ebx, dword [ebp + 0xc]
add edi, 0xc
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 0x40f6cb
cmp eax, 3
jne 0x40f738
cmp dword [0x517f50], 0
je 0x40f70e
call fcn.00409610
test al, al
jne 0x40f70b
test ebx, ebx
jne 0x40f702
call fcn.00409680
test al, al
je 0x40f702
push 0x4e7628
call fcn.0049fc00
add esp, 4
mov ecx, edi
call fcn.004a75a0
test eax, eax
jne 0x40f70b
mov dword [ebp + 0x10], 1
jmp 0x40f738
mov eax, dword [ebp + 0x10]
cmp eax, 3
jne 0x40f71c
mov dword [ebp + 0x10], 2
jmp 0x40f738
xor eax, eax
mov dword [ebp + 0x10], eax
cmp dword [esi + 0x5c], eax
jge 0x40f72e
cmp dword [esi + 0x64], eax
jge 0x40f72e
or eax, 0xffffffff
mov dword [esi + 0x64], eax
mov dword [esi + 0x5c], 0xffffffff
xor edi, edi
mov byte [ebp - 0x1b], 0
cmp dword [ebp + 0x14], edi
je 0x40f7e6
mov edx, dword [ebp + 0x14]
push edi
push edx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
mov dword [ebp - 0x64], ebx
test ebx, ebx
je 0x40f789
cmp ebx, dword [0x516e90]
je 0x40f789
mov esi, dword [ebp + 0x14]
call fcn.004ac1d0
test al, al
jne 0x40f786
mov eax, dword [0x516e90]
push 1
push ebx
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [ebp - 0x1b]
mov edi, ebx
mov esi, dword [ebp - 0x34]
push edi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [0x514e00], eax
push eax
xor eax, eax
call fcn.00413e90
add esp, 4
push 1
mov dword [0x514dfc], eax
call fcn.00413740
mov bl, al
and byte [0x516736], bl
add esp, 4
cmp dword [0x51600c], 0
mov byte [ebp - 0x14], bl
je 0x40f8ea
mov cl, byte [0x515ed9]
mov dl, byte [0x515edb]
mov al, cl
not cl
and al, dl
and cl, dl
mov byte [ebp - 0xe], dl
mov byte [ebp - 0x16], cl
jmp 0x40f915
test byte [0x51796e], 0xc0
je 0x40f8d6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x517964]
cmp eax, 0x32
jae 0x40f8d6
cmp dword [ebp + 0x10], 2
je 0x40f8d6
cmp byte [0x514ddb], 0
jne 0x40f8d6
cmp ebx, 2
je 0x40f8d6
cmp byte [0x517b6e], 0
je 0x40f8d6
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x516e90]
jne 0x40f8d6
mov eax, dword [ebp + 8]
test ebx, ebx
mov ebx, 0x4e7648
je 0x40f8a8
call fcn.00409df0
test eax, eax
setne al
test al, al
je 0x40f8d6
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x5b
call edi
mov ecx, 0x8000
test cx, ax
jne 0x40f883
push 0x5c
call edi
mov edx, 0x8000
test dx, ax
je 0x40f8d6
push 1
push 0x8000012f
mov dword [0x511524], 0
call fcn.00401930
add esp, 8
mov dword [0x511524], 1
jmp 0x40f861
call fcn.00409df0
test eax, eax
je 0x40f8d6
add eax, 2
mov ebx, 0x4e7650
call fcn.00409df0
test eax, eax
je 0x40f861
cmp word [eax], 0x7b
je 0x40f861
mov ebx, 0x4e7648
call fcn.00409df0
test eax, eax
jne 0x40f8b1
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, eax
call fcn.00413d50
mov edi, eax
jmp 0x40f789
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x517964]
cmp eax, dword [0x51151c]
jae 0x40f90a
mov al, byte [0x51796e]
and al, bl
mov byte [ebp - 0xe], al
jmp 0x40f911
mov byte [ebp - 0xe], 0
mov al, byte [ebp - 0xe]
mov byte [ebp - 0x16], 0
mov cl, byte [0x516723]
not al
and al, bl
and cl, al
mov al, byte [0x514ddb]
mov byte [0x516723], cl
test al, al
je 0x40f93c
not cl
and cl, bl
mov byte [ebp - 0xf], cl
mov byte [ebp - 0x13], bl
jmp 0x40f943
mov byte [ebp - 0xf], 0
mov byte [ebp - 0x13], cl
cmp byte [esi + 0xf3], 0
je 0x40f96c
test al, al
jne 0x40f96c
cmp dword [ebp + 0xc], 2
je 0x40f96c
push 2
mov bl, 0x14
call fcn.00412f80
mov bl, byte [ebp - 0x14]
add esp, 4
mov dword [ebp - 0x50], eax
xor edi, edi
jmp 0x40f971
xor edi, edi
mov dword [ebp - 0x50], edi
mov esi, dword [ebp + 0x10]
mov dword [0x51675c], esi
cmp esi, edi
je 0x40f9df
cmp esi, 1
jne 0x40f994
mov eax, 0x36b0
mov dword [0x514df0], 0x1f4
jmp 0x40f9a3
mov eax, 0x2ee0
mov dword [0x514df0], 0x5dc
call fcn.004cc950
mov eax, esp
mov dword [0x514df8], eax
mov eax, SysReAllocString
mov byte [0x514de3], bl
mov dword [0x514de4], eax
mov dword [0x514de8], eax
mov byte [0x514de2], 0
mov dword [0x514df4], edi
mov byte [0x514de1], 0
mov byte [0x514de0], 1
mov al, byte [0x5166ed]
mov byte [ebp - 0x25], al
mov eax, dword [0x51162c]
cmp eax, 8
je 0x40f9f6
cmp eax, 0xa
jne 0x40fa4d
cmp esi, edi
jne 0x40fa4d
cmp dword [ebp + 0x14], edi
jne 0x40fa4d
test byte [0x51a0e4], 1
mov byte [ebp - 0x14], 1
jne 0x40fa53
or dword [0x51a0e4], 1
push 0x4ec318
mov dword [ebp - 4], edi
call fcn.0049fce0
add esp, 4
push eax
push str._7_a_
call fcn.0049fc00
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x51a0e0], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x40fa58
mov byte [ebp - 0x14], 0
jmp 0x40fa67
mov eax, dword [0x51a0e0]
cmp eax, edi
je 0x40fa60
push 1
call eax
mov byte [0x5166ed], 1
mov ecx, dword [ebp + 8]
mov byte [ebp - 0xd], 0
cmp word [ecx], di
je 0x41042f
cmp dword [0x51675c], 0
mov byte [ebp - 0x15], 0
jne 0x40fae0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x5179a4]
mov edx, dword [0x51161c]
cmp eax, dword [edx + 0xd8]
jbe 0x40fae0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40fad9
push 1
push 0xffffffffffffffff
mov dword [0x511524], 0
call fcn.00401930
add esp, 8
mov dword [0x511524], 1
call esi
mov dword [0x5179a4], eax
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x41032e
mov esi, dword [ebp + 8]
movzx ecx, word [esi]
push ecx
push 0x4e7658
call fcn.004c5cc1
add esp, 8
test eax, eax
je 0x410393
movzx eax, word [esi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x40fb1d.34
movzx edx, byte [eax + 0x410834]
jmp dword [edx*4 + 0x410818]
test byte [ebp - 0x13], 3
jne case.0x40fb1d.34
or byte [ebp - 0xd], 1
jmp case.0x40fb1d.34
test byte [ebp - 0x13], 0x30
jne case.0x40fb1d.34
or byte [ebp - 0xd], 0x10
jmp case.0x40fb1d.34
test byte [ebp - 0x13], 0xc
jne case.0x40fb1d.34
or byte [ebp - 0xd], 4
jmp case.0x40fb1d.34
test byte [ebp - 0x13], 0xc0
jne case.0x40fb1d.34
or byte [ebp - 0xd], 0x40
jmp case.0x40fb1d.34
mov esi, dword [ebp + 8]
add esi, 2
push 0x7d
push esi
call fcn.004c5cc1
mov edi, eax
add esp, 8
mov dword [ebp - 0x30], edi
test edi, edi
je case.0x40fb1d.34
mov eax, esi
call fcn.00409e40
mov esi, eax
mov ebx, edi
sub ebx, esi
sar ebx, 1
mov dword [ebp + 8], esi
mov dword [ebp - 0x2c], ebx
jne 0x40fc2b
movzx eax, word [edi + 2]
add edi, 2
cmp eax, 0x7d
jne 0x40fbc1
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], 1
jmp 0x40fc25
cmp eax, 0x20
je 0x40fbcf
cmp eax, 9
jne 0x410323
mov eax, edi
call fcn.00409e40
push 4
mov esi, eax
push str.Down
push esi
call fcn.004c56eb
add esp, 0xc
test eax, eax
je 0x40fc04
push 2
push 0x4e6dcc
push esi
call fcn.004c56eb
add esp, 0xc
test eax, eax
jne 0x410323
push 0x7d
push esi
call fcn.004c5cc1
add esp, 8
mov dword [ebp - 0x30], eax
test eax, eax
je case.0x40fb1d.34
sub eax, dword [ebp + 8]
mov esi, dword [ebp + 8]
sar eax, 1
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
push 5
push 0x4e7544
push esi
call fcn.004c56eb
add esp, 0xc
test eax, eax
jne 0x40fccf
lea ecx, [ebp - 0x38]
push ecx
mov word [edi], ax
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1a]
push ecx
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x44]
push eax
lea eax, [esi + 0xa]
call fcn.00409e40
call fcn.00411900
mov ecx, 0x7d
mov word [edi], cx
mov ecx, dword [ebp - 0x20]
add esp, 0x18
cmp ecx, 1
jge 0x40fcaa
mov eax, dword [ebp - 0x34]
movzx ecx, byte [eax + 0xef]
mov edx, dword [ebp - 0x38]
push edx
push ecx
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x6c]
lea eax, [ebp - 0x44]
call fcn.00412530
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov dword [ebp + 8], eax
jmp 0x41040f
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x44]
push edx
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 0x24]
push edx
mov edx, dword [ebp - 0x13]
push 0
push eax
mov eax, dword [ebp - 0x1a]
push edx
push 0
push eax
jmp 0x410318
push 3
push 0x4e7674
push esi
call fcn.004c56eb
add esp, 0xc
test eax, eax
jne 0x40fcf5
mov eax, dword [ebp - 0x30]
mov dword [ebp + 0xc], 1
mov dword [ebp + 8], eax
jmp 0x41040f
push 4
push str.Text
push esi
call fcn.004c56eb
add esp, 0xc
test eax, eax
jne 0x40fd2b
lea eax, [esi + 8]
call fcn.00409e40
cmp eax, edi
jne 0x410323
mov eax, dword [ebp - 0x30]
mov dword [ebp + 0xc], 2
mov dword [ebp + 8], eax
jmp 0x41040f
mov eax, dword [ebp + 8]
xor ecx, ecx
mov esi, 1
mov dword [ebp - 0x3c], ebx
mov ebx, 0x4e6dc4
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x20], esi
mov word [edi], cx
call fcn.00409df0
mov ebx, eax
test ebx, ebx
je 0x40fdf9
movzx edx, word [ebx]
xor eax, eax
mov word [ebx], ax
mov eax, ebx
sub eax, dword [ebp + 8]
mov dword [ebp - 0x54], edx
sar eax, 1
mov dword [ebp - 0x3c], eax
lea eax, [ebx + 2]
call fcn.00409e40
sub edi, eax
sar edi, 1
mov dword [ebp - 0x5c], eax
je 0x40fdf9
push 4
mov edi, eax
push str.Down
push edi
call fcn.004c56eb
add esp, 0xc
test eax, eax
jne 0x40fdd6
push 4
add edi, 8
push str.Temp
push edi
mov dword [ebp - 0x24], eax
call fcn.004c56eb
add esp, 0xc
test eax, eax
jne 0x40fdb8
mov dword [ebp - 0x40], eax
jmp 0x40fdf9
xor ecx, ecx
cmp word [edi], 0x52
sete cl
push ecx
call fcn.004c6789
add esp, 4
neg eax
sbb eax, eax
neg eax
inc eax
mov dword [ebp - 0x40], eax
jmp 0x40fdf9
push 0x4e6dcc
push edi
call fcn.004c4e9d
add esp, 8
test eax, eax
jne 0x40fded
mov dword [ebp - 0x24], esi
jmp 0x40fdf9
mov esi, edi
call fcn.0040f170
mov dword [ebp - 0x20], eax
mov esi, eax
mov eax, dword [0x514e00]
lea edx, [ebp - 0x1a]
push edx
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0xd]
lea edi, [ebp - 0x68]
call fcn.00414400
add esp, 4
test ebx, ebx
je 0x40fe1e
mov ax, word [ebp - 0x54]
mov word [ebx], ax
mov edx, dword [ebp - 0x30]
mov ecx, 0x7d
mov word [edx], cx
cmp esi, 1
jl 0x410323
mov bl, byte [ebp - 0x1a]
mov edi, dword [ebp - 0x68]
test bl, bl
jne 0x41026c
test di, di
jne 0x41026c
mov eax, 1
cmp dword [ebp - 0x3c], eax
jne 0x40feb8
cmp dword [ebp - 0x24], eax
je 0x410323
cmp dword [ebp + 0x14], 0
je 0x40fe93
test esi, esi
jle 0x410323
mov edi, dword [ebp + 8]
lea ecx, [ecx]
movzx eax, word [edi]
mov ecx, dword [ebp + 0x14]
push 0
push eax
push 0x102
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
dec esi
jne 0x40fe70
mov eax, dword [ebp - 0x30]
mov dword [ebp + 8], eax
jmp 0x41040f
mov dl, byte [ebp - 0xd]
or dl, byte [ebp - 0x13]
mov ecx, esi
movzx eax, dl
mov edx, dword [ebp + 8]
push eax
mov ax, word [edx]
call fcn.00410cc0
mov eax, dword [ebp - 0x30]
add esp, 4
mov dword [ebp + 8], eax
jmp 0x41040f
cmp dword [ebp + 0x14], 0
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x13]
push eax
lea ecx, [ebp - 0x24]
sete bl
push ecx
call fcn.004144b0
add esp, 8
mov byte [ebp - 0x1a], al
test al, al
je 0x4100e1
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x40fef6
cmp dword [ebp - 0x24], edi
jne 0x40fef1
mov byte [ebp - 0x15], al
jmp 0x40fef6
call fcn.0040f360
cmp dword [0x51675c], 0
je 0x40ff09
mov al, byte [0x514de3]
jmp 0x410024
cmp dword [0x51600c], 0
je 0x40ff1c
mov al, byte [0x515ed9]
jmp 0x410024
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
mov byte [ebp + 0xb], 0
call esi
mov edx, 0x8000
test dx, ax
je 0x40ff3b
mov byte [ebp + 0xb], 0x10
push 0xa1
call esi
mov ecx, 0x8000
test cx, ax
je 0x40ff50
or byte [ebp + 0xb], 0x20
push 0xa2
call esi
mov edx, 0x8000
test dx, ax
je 0x40ff65
or byte [ebp + 0xb], 1
push 0xa3
call esi
mov ecx, 0x8000
test cx, ax
je 0x40ff7a
or byte [ebp + 0xb], 2
push 0xa4
call esi
mov edx, 0x8000
test dx, ax
je 0x40ff8f
or byte [ebp + 0xb], 4
push 0xa5
call esi
mov ecx, 0x8000
test cx, ax
je 0x40ffa4
or byte [ebp + 0xb], 8
push 0x5b
call esi
mov edx, 0x8000
test dx, ax
je 0x40ffb6
or byte [ebp + 0xb], 0x40
push 0x5c
call esi
mov ecx, 0x8000
test cx, ax
je 0x40ffc8
or byte [ebp + 0xb], 0x80
cmp dword [0x51600c], 0
je 0x410020
mov bl, byte [ebp + 0xb]
not bl
and bl, byte [0x515ed9]
je 0x410020
mov cl, byte [0x515edb]
mov al, bl
not al
and byte [0x515ed9], al
and byte [0x515eda], al
and cl, al
mov al, cl
mov byte [0x515edb], cl
mov ecx, 0x515f00
call fcn.00413870
mov eax, dword [0x514dd4]
test eax, eax
je 0x410020
test byte [eax + 8], bl
je 0x410020
mov dword [0x514dd4], 0
movzx eax, byte [ebp + 0xb]
mov edx, dword [ebp - 0x13]
push 0
push 0
push edi
push eax
push edx
mov eax, 0xffc3d44d
call fcn.00413090
mov eax, dword [ebp - 0x20]
add esp, 0x14
test eax, eax
jle 0x410323
mov ebx, dword [ebp - 0x1a]
mov edi, eax
jmp 0x410050
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x24]
push 0xffc3d44d
push 1
push eax
push 0
push ebx
push ecx
call fcn.00411200
add esp, 0x18
cmp dword [0x51675c], 0
jne 0x4100cf
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x5179a4]
mov edx, dword [0x51161c]
cmp eax, dword [edx + 0xd8]
jbe 0x4100cf
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x4100c8
push 1
push 0xffffffffffffffff
mov dword [0x511524], 0
call fcn.00401930
add esp, 8
mov dword [0x511524], 1
call esi
mov dword [0x5179a4], eax
dec edi
jne 0x410050
mov eax, dword [ebp - 0x30]
mov dword [ebp + 8], eax
jmp 0x41040f
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp + 8]
cmp edi, 4
jbe 0x41014f
push 4
push str.ASC
push esi
call fcn.004c56eb
mov ebx, dword [ebp + 0x14]
add esp, 0xc
test eax, eax
jne 0x410152
test ebx, ebx
jne 0x410152
lea eax, [esi + 6]
call fcn.00409e40
call fcn.00410dd0
cmp dword [0x51675c], 2
jne 0x410136
mov ecx, dword [0x51161c]
mov esi, dword [ecx + 0x60]
call fcn.00412ca0
mov eax, dword [ebp - 0x30]
mov dword [ebp + 8], eax
jmp 0x41040f
mov edx, dword [0x51161c]
mov esi, dword [edx + 0x5c]
call fcn.00412ca0
mov eax, dword [ebp - 0x30]
mov dword [ebp + 8], eax
jmp 0x41040f
mov ebx, dword [ebp + 0x14]
cmp edi, 2
jbe 0x410323
push 2
push 0x4e76a0
push esi
call fcn.004c56eb
add esp, 0xc
test eax, eax
jne 0x410323
push 0x10
push eax
add esi, 4
push esi
call fcn.004c663f
add esp, 0xc
cmp eax, 0x10000
jb 0x4101b5
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 0x4101ba
movzx edi, ax
xor esi, esi
test ebx, ebx
je 0x4101e7
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 0x410232
push 0
movzx ecx, si
push ecx
push 0x102
push ebx
call edi
jmp 0x410232
cmp dword [0x51675c], 2
je 0x410212
movzx ebx, byte [ebp - 0xd]
or bl, byte [ebp - 0x13]
push ebx
call fcn.0040f3e0
add esp, 4
test si, si
je 0x410232
push ebx
mov edi, esi
call fcn.0040f3e0
add esp, 4
jmp 0x410232
push 0xa
lea ecx, [ebp - 0x7e]
push ecx
mov edx, 0x30
push eax
mov word [ebp - 0x80], dx
call fcn.004c4bd5
add esp, 0xc
lea eax, [ebp - 0x80]
call fcn.00410dd0
cmp dword [0x51675c], 2
jne 0x410254
mov edx, dword [0x51161c]
mov esi, dword [edx + 0x60]
call fcn.00412ca0
mov eax, dword [ebp - 0x30]
mov dword [ebp + 8], eax
jmp 0x41040f
mov eax, dword [0x51161c]
mov esi, dword [eax + 0x5c]
call fcn.00412ca0
mov eax, dword [ebp - 0x30]
mov dword [ebp + 8], eax
jmp 0x41040f
xor ecx, ecx
mov edx, edi
mov al, bl
call fcn.00413940
mov byte [ebp - 0x48], al
test al, al
je 0x4102f5
cmp dword [ebp + 0x14], 0
jne 0x4102f5
mov ecx, dword [ebp - 0x24]
test ecx, ecx
jne 0x4102b5
mov ecx, dword [ebp - 0x40]
mov byte [ebp - 0x15], bl
cmp ecx, 1
jne 0x4102a5
or byte [0x516723], al
or byte [ebp - 0x13], al
jmp 0x4102f5
cmp ecx, 2
jne 0x4102b0
or byte [0x516736], al
or byte [ebp - 0x13], al
jmp 0x4102f5
cmp ecx, 1
jne 0x4102f5
mov al, bl
call fcn.0040f360
mov al, byte [ebp - 0x48]
mov cl, byte [0x516723]
not al
and byte [0x516736], al
and byte [ebp - 0xf], al
and cl, al
mov byte [0x516723], cl
cmp bl, 0xa5
jne 0x4102ef
cmp dword [0x514dfc], 3
jne 0x4102ef
and byte [ebp - 0xf], 0xfe
or cl, byte [ebp - 0xf]
mov byte [ebp - 0x13], cl
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x24]
push 0
push SysReAllocString
push SysReAllocString
push ecx
mov ecx, dword [ebp - 0x13]
push edx
mov edx, dword [ebp - 0x1a]
push eax
push ecx
push edi
push edx
mov ecx, esi
mov al, byte [ebp - 0xd]
call fcn.004108b0
add esp, 0x24
mov eax, dword [ebp - 0x30]
mov dword [ebp + 8], eax
jmp 0x41040f
cmp edi, 2
jne 0x410393
mov ecx, dword [ebp + 8]
movzx eax, word [ecx]
add eax, 0xfffffff8
cmp eax, 5
ja case.0x410341.11
jmp dword [eax*4 + 0x410894]
cmp word [ecx + 2], 0xa
jne case.0x410341.10
add ecx, 2
mov dword [ebp + 8], ecx
mov byte [ebp - 0x1a], 0xd
jmp 0x4103c5
mov byte [ebp - 0x1a], 8
jmp 0x4103c5
mov byte [ebp - 0x1a], 9
jmp 0x4103c5
mov byte [ebp - 0x1a], 0
mov ecx, dword [ebp + 0x14]
mov al, byte [ebp - 0xd]
test ecx, ecx
je 0x4103f5
mov eax, dword [ebp + 8]
movzx edx, word [eax]
push 0
push edx
push 0x102
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x41040f
mov al, byte [ebp - 0xd]
or al, byte [ebp - 0x13]
je 0x4103a3
test edi, edi
jne 0x4103a3
mov al, 1
jmp 0x4103a5
xor al, al
mov ecx, dword [0x514e00]
mov edx, dword [ebp + 8]
mov si, word [edx]
push eax
push ecx
lea edi, [ebp - 0xd]
call fcn.00414340
add esp, 8
mov byte [ebp - 0x1a], al
test al, al
je 0x41036b
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x13]
mov edx, dword [ebp - 0x1a]
push 0
push SysReAllocString
push SysReAllocString
push eax
mov al, byte [ebp - 0xd]
push 0
push 2
push ecx
push 0
push edx
mov ecx, 1
call fcn.004108b0
add esp, 0x24
jmp 0x41040f
or al, byte [ebp - 0x13]
mov edx, dword [ebp + 8]
movzx eax, al
push eax
mov ax, word [edx]
mov ecx, 1
call fcn.00410cc0
add esp, 4
mov byte [ebp - 0xd], 0
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 0x15]
add eax, 2
cmp word [eax], 0
mov dword [ebp + 8], eax
mov byte [0x516722], cl
jne 0x40fa77
cmp dword [0x51675c], 0
je 0x4104e6
cmp byte [0x514de1], 0
mov dword [ebp + 8], 0xffffffff
jne 0x4104a6
cmp dword [0x514df4], 0
jbe 0x4104a6
cmp byte [0x514ddb], 0
je 0x410462
xor eax, eax
jmp 0x41046e
movzx eax, byte [ebp - 0x16]
movzx edx, byte [ebp - 0xe]
not eax
and eax, edx
or al, byte [0x516736]
push 1
or al, byte [ebp - 0x13]
push 1
mov byte [ebp - 0x20], al
movzx eax, byte [0x514de3]
mov esi, dword [ebp - 0x20]
push 0
push eax
push esi
mov eax, 0xffc3d44d
call fcn.00413090
add esp, 0x14
lea ecx, [ebp + 8]
push esi
push ecx
call fcn.00412b50
add esp, 8
mov eax, dword [0x51675c]
dec eax
neg eax
sbb eax, eax
and eax, 0x3e8
add eax, 0x1f4
cmp dword [0x514df0], eax
jbe 0x4104d1
mov edx, dword [0x514df8]
push edx
call fcn.004c57e5
add esp, 4
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x51675c], edi
call fcn.00412ca0
jmp 0x41068f
cmp dword [0x51600c], 0
je 0x4104f7
mov cl, byte [0x515edb]
jmp 0x41051b
cmp dword [0x51151c], 0
jl 0x410518
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x517964]
cmp eax, dword [0x51151c]
jb 0x410518
xor cl, cl
jmp 0x41051b
mov cl, byte [ebp - 0xe]
or cl, byte [0x516736]
cmp byte [0x514ddb], 0
je 0x410543
mov dl, byte [ebp - 0xe]
mov al, cl
xor al, dl
mov bl, al
and bl, dl
not bl
and bl, byte [ebp - 0x13]
and al, cl
or bl, al
mov byte [ebp - 0x20], bl
jmp 0x410550
mov al, byte [ebp - 0x16]
not al
and al, cl
or al, byte [ebp - 0x13]
mov byte [ebp - 0x20], al
cmp dword [0x51600c], 0
je 0x410563
mov al, byte [0x515ed9]
jmp 0x41066a
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
mov byte [ebp + 0xb], 0
call esi
mov ecx, 0x8000
test cx, ax
je 0x410582
mov byte [ebp + 0xb], 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x410597
or byte [ebp + 0xb], 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x4105ac
or byte [ebp + 0xb], 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x4105c1
or byte [ebp + 0xb], 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x4105d6
or byte [ebp + 0xb], 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x4105eb
or byte [ebp + 0xb], 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x4105fd
or byte [ebp + 0xb], 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x41060f
or byte [ebp + 0xb], 0x80
cmp dword [0x51600c], 0
je 0x410667
mov bl, byte [ebp + 0xb]
not bl
and bl, byte [0x515ed9]
je 0x410667
mov cl, byte [0x515edb]
mov al, bl
not al
and byte [0x515ed9], al
and byte [0x515eda], al
and cl, al
mov al, cl
mov byte [0x515edb], cl
mov ecx, 0x515f00
call fcn.00413870
mov eax, dword [0x514dd4]
test eax, eax
je 0x410667
test byte [eax + 8], bl
je 0x410667
mov dword [0x514dd4], 0
mov al, byte [ebp + 0xb]
or al, byte [0x515efc]
mov ecx, dword [ebp + 0x14]
push 1
movzx edx, al
mov eax, dword [ebp - 0x20]
push 1
push ecx
push edx
push eax
mov eax, 0xffc3d44d
call fcn.00413090
add esp, 0x14
xor edi, edi
cmp dword [0x51600c], edi
je 0x4106af
mov al, byte [0x515eda]
mov cl, al
xor cl, byte [0x515ed9]
and cl, al
not cl
and al, cl
mov byte [0x515eda], al
mov ebx, 1
cmp dword [ebp - 0x50], ebx
jne 0x41073e
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call esi
and al, bl
movsx eax, al
neg eax
sbb eax, eax
add eax, 2
cmp eax, ebx
je 0x41073e
push 0x14
call esi
mov edx, 0x8000
test dx, ax
je 0x4106f8
push 0xffc3d44d
push edi
push edi
push edi
push 0x14
push ebx
call fcn.00411200
add esp, 0x18
push 0xffc3d44d
push edi
push edi
push edi
push 0x14
push 2
call fcn.00411200
add esp, 0x18
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x516e90]
sete al
test al, al
je 0x41073e
push ebx
push 0xffffffffffffffff
mov dword [0x511524], edi
call fcn.00401930
add esp, 8
mov dword [0x511524], ebx
cmp byte [ebp - 0x1b], 0
je 0x410756
mov eax, dword [ebp - 0x64]
mov ecx, dword [0x516e90]
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp - 0x14], 0
je 0x4107bd
cmp byte [ebp - 0x25], 0
jne 0x4107bd
test byte [0x51a0e4], bl
jne 0x4107aa
or dword [0x51a0e4], ebx
push 0x4ec318
mov dword [ebp - 4], ebx
call fcn.0049fce0
add esp, 4
push eax
push str._7_a_
call fcn.0049fc00
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x51a0e0], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x4107af
mov eax, dword [0x51a0e0]
cmp eax, edi
je 0x4107b6
push edi
call eax
mov byte [0x5166ed], 0
cmp dword [ebp + 0x10], ebx
jne 0x4107ef
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x516e90]
jne 0x4107ef
push ebx
push 0xffffffffffffffff
mov dword [0x511524], edi
call fcn.00401930
add esp, 8
mov dword [0x511524], ebx
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x58]
mov dword [eax + 0x5c], edx
mov dword [eax + 0x64], ecx
lea esp, [ebp - 0xa8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret