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

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xc8
push ebx
mov ebx, ecx
push esi
mov esi, edx
mov dword [ebp + 0x68], ebx
push edi
cmp word [ebx], 0
mov dword [ebp + 0x4c], esi
je 0x4109c1
mov eax, dword [0x4d98d8]
mov dword [ebp + 0x44], eax
test esi, esi
jne 0x40f9e1
push 7
push str.Blind
push ebx
call fcn.0049b726
add esp, 0xc
test eax, eax
jne 0x40f9e1
add ebx, 0xe
mov byte [0x4dea24], 1
mov dword [ebp + 0x68], ebx
jmp 0x40f9ec
mov byte [0x4dea24], 0
test esi, esi
jne 0x40fa0d
push 6
push str.Text
push ebx
call fcn.0049b726
add esp, 0xc
test eax, eax
jne 0x40fa0d
add ebx, 0xc
mov dword [ebp + 0x4c], 2
mov dword [ebp + 0x68], ebx
mov ecx, dword [ebp + 0x44]
mov edi, dword [ebp + 0x78]
mov eax, dword [ecx + 0x5c]
mov dword [ebp + 8], eax
mov eax, dword [ecx + 0x64]
mov dword [ebp + 0x18], eax
cmp edi, 1
je 0x40fa2d
cmp edi, 3
jne 0x40fae7
mov eax, dword [0x4de984]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40fa3f
push eax
call edi
push str.AHK_Keybd
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x4de984], 0
mov ebx, eax
je 0x40fa69
mov dword [0x4de984], esi
jmp 0x40fa70
test esi, esi
je 0x40fa70
push esi
call edi
cmp ebx, 0xb7
je 0x40fab1
cmp dword [ebp + 0x4c], 0
jne 0x40faa4
call fcn.00409be0
mov ebx, dword [ebp + 0x68]
test al, al
je 0x40faa7
mov edx, str.Click
mov ecx, ebx
call fcn.0047cda0
test eax, eax
jne 0x40fab4
mov edi, 1
mov dword [ebp + 0x78], edi
jmp 0x40fae7
mov ebx, dword [ebp + 0x68]
mov edi, 1
mov dword [ebp + 0x78], edi
jmp 0x40fae7
mov ebx, dword [ebp + 0x68]
cmp dword [ebp + 0x78], 3
jne 0x40fac4
mov edi, 2
mov dword [ebp + 0x78], edi
jmp 0x40fae7
mov ecx, dword [ebp + 0x44]
xor edi, edi
mov dword [ebp + 0x78], edi
cmp dword [ecx + 0x5c], edi
jge 0x40fadb
cmp dword [ecx + 0x64], edi
jge 0x40fadb
or eax, 0xffffffff
jmp 0x40fadd
xor eax, eax
mov dword [ecx + 0x64], eax
mov dword [ecx + 0x5c], 0xffffffff
mov eax, dword [ebp + 0x7c]
xor esi, esi
mov byte [ebp + 0x5b], 0
test eax, eax
je 0x40fb41
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
mov dword [ebp + 0x1c], edi
test edi, edi
je 0x40fc2d
cmp edi, dword [0x4ddc88]
je 0x40fc2d
mov ecx, dword [ebp + 0x7c]
call fcn.00481c20
test al, al
jne 0x40fc2d
push 1
push edi
push dword [0x4ddc88]
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
mov esi, edi
setne byte [ebp + 0x5b]
jmp 0x40fc2d
test byte [0x4de766], 0xc0
je 0x40fbeb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4de75c]
cmp eax, 0x32
jae 0x40fbeb
cmp edi, 2
je 0x40fbeb
cmp byte [0x4dea24], 0
jne 0x40fbeb
mov esi, dword [ebp + 0x4c]
cmp esi, 2
je 0x40fbeb
cmp byte [0x4de963], 0
je 0x40fbeb
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4ddc88]
jne 0x40fbeb
test esi, esi
je 0x40fc7b
mov edi, ebx
test ebx, ebx
je 0x40fbe1
movzx eax, word [ebx]
test ax, ax
je 0x40fbe1
mov esi, eax
nop dword [eax]
mov ecx, 0x4caf14
mov edx, 0x4c
nop word [eax + eax]
cmp si, dx
je 0x40fbe3
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x40fbc0
movzx eax, word [edi + 2]
add edi, 2
mov esi, eax
test ax, ax
jne 0x40fbb0
xor edi, edi
test edi, edi
jne 0x40fd2d
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor esi, esi
test eax, eax
je 0x40fc27
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push esi
push eax
call ebx
mov esi, eax
mov dword [ebp - 0x58], 0x30
lea eax, [ebp - 0x58]
push eax
push esi
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x40fc27
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x40fc27
push 0
push eax
call ebx
mov esi, eax
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0x1c], eax
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
xor edx, edx
mov dword [0x4dea00], eax
mov ecx, eax
call fcn.00413d60
mov cl, 1
mov dword [0x4dea04], eax
call fcn.00413820
mov bl, al
and byte [0x4de9af], bl
cmp dword [0x4dc440], 0
je 0x40fd73
mov al, byte [0x4dcdc5]
mov cl, byte [0x4dcdc3]
mov bh, al
not al
and bh, cl
and al, cl
jmp 0x40fd97
mov esi, ebx
nop dword [eax]
test esi, esi
je 0x40fbeb
movzx eax, word [esi]
test ax, ax
je 0x40fbeb
mov edi, eax
nop word [eax + eax]
mov ecx, 0x4caf14
mov edx, 0x4c
nop word [eax + eax]
cmp di, dx
je 0x40fcd6
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x40fcb0
movzx eax, word [esi + 2]
add esi, 2
mov edi, eax
test ax, ax
jne 0x40fca0
jmp 0x40fbeb
add esi, 2
je 0x40fd2d
movzx eax, word [esi]
test ax, ax
je 0x40fd2d
mov edi, eax
nop word [eax + eax]
mov eax, 0x4caf1c
mov edx, 0x7b
nop word [eax + eax]
cmp di, dx
je 0x40fd23
movzx ecx, word [eax + 2]
add eax, 2
mov edx, ecx
test cx, cx
jne 0x40fd00
movzx eax, word [esi + 2]
add esi, 2
mov edi, eax
test ax, ax
jne 0x40fcf0
jmp 0x40fd2d
cmp word [esi], 0x7b
jne 0x40fc80
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov edi, 0x8000
push 0x5b
call esi
test di, ax
jne 0x40fd4e
push 0x5c
call esi
test di, ax
je 0x40fbeb
mov edx, 1
mov dword [0x4d98d0], 0
mov ecx, 0x8000012f
call fcn.004015d0
mov dword [0x4d98d0], 1
jmp 0x40fd38
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4de75c]
cmp eax, dword [0x4daaf0]
jae 0x40fd91
mov cl, byte [0x4de766]
and cl, bl
jmp 0x40fd93
xor cl, cl
mov bh, cl
xor al, al
not bh
mov byte [ebp + 0x6d], cl
and bh, byte [0x4de9ae]
and bh, bl
mov byte [ebp + 0x66], al
cmp byte [0x4dea24], 0
mov byte [ebp + 0x6f], bh
mov byte [0x4de9ae], bh
je 0x40fdc6
not bh
and bh, bl
mov al, bh
mov bh, bl
mov byte [ebp + 0x6f], bh
jmp 0x40fdc8
xor al, al
mov byte [ebp + 0x6c], al
mov eax, dword [ebp + 0x44]
mov byte [ebp + 0x50], bh
cmp byte [eax + 0xf3], 0
je 0x40fdfa
cmp byte [0x4dea24], 0
jne 0x40fdfa
cmp dword [ebp + 0x4c], 2
je 0x40fdfa
mov edx, 2
mov cl, 0x14
call fcn.00412ff0
mov dword [ebp + 0x20], eax
jmp 0x40fe01
mov dword [ebp + 0x20], 0
mov edx, dword [ebp + 0x78]
mov eax, 0x1f4
mov dword [0x4dea20], edx
mov ecx, 0x5dc
test edx, edx
je 0x40fe7a
cmp edx, 1
cmovne eax, ecx
mov ecx, 0x2ee0
mov dword [0x4dea0c], eax
mov eax, 0x36b0
cmovne eax, ecx
call fcn.004ae980
mov eax, dword [0x4db00c]
mov ecx, esp
mov edx, dword [ebp + 0x78]
mov byte [0x4dea14], bl
mov byte [0x4dea15], 0
mov dword [eax], ecx
mov dword [0x4dea18], 0x80000000
mov dword [0x4dea1c], 0x80000000
mov dword [0x4dea08], 0
mov byte [0x4dea16], 0
mov byte [0x4dea17], 1
mov al, byte [0x4dc474]
mov byte [ebp + 0x4b], al
mov eax, dword [0x4d98e4]
cmp eax, 8
je 0x40fe91
cmp eax, 0xa
jne 0x40feb1
mov esi, dword [ebp + 0x7c]
test edx, edx
jne 0x40feb4
test esi, esi
jne 0x40feb4
push 1
mov byte [ebp + 0x5a], 1
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x4dc474], 1
jmp 0x40feb8
mov esi, dword [ebp + 0x7c]
mov byte [ebp + 0x5a], 0
mov edi, dword [ebp + 0x68]
xor bl, bl
mov byte [ebp + 0x62], bl
cmp word [edi], 0
je 0x4107d7
jmp 0x40fed3
mov esi, dword [ebp + 0x7c]
cmp dword [0x4dea20], 0
mov byte [ebp + 0x67], 0
jne 0x40ff3c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4d98d8]
sub eax, dword [0x4de79c]
cmp eax, dword [ecx + 0xd8]
jbe 0x40ff3c
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40ff31
mov edx, 1
mov dword [0x4d98d0], 0
or ecx, 0xffffffff
call fcn.004015d0
mov dword [0x4d98d0], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4de79c], eax
mov eax, dword [ebp + 0x4c]
test eax, eax
jne 0x4106fe
movzx eax, word [edi]
push eax
push 0x4caf24
call fcn.00496bcf
add esp, 8
test eax, eax
je 0x41073b
movzx eax, word [edi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x40ff76.34
movzx eax, byte [eax + 0x4109e8]
jmp dword [eax*4 + 0x4109cc]
test bh, 3
jne case.0x40ff76.34
or bl, 1
jmp 0x4107bf
test bh, 0x30
jne case.0x40ff76.34
or bl, 0x10
jmp 0x4107bf
test bh, 0xc
jne case.0x40ff76.34
or bl, 4
jmp 0x4107bf
test bh, 0xc0
jne case.0x40ff76.34
or bl, 0x40
jmp 0x4107bf
lea esi, [edi + 2]
push 0x7d
push esi
call fcn.00496bcf
add esp, 8
mov dword [ebp + 0x5c], eax
test eax, eax
je case.0x40ff76.34
mov edi, esi
nop dword [eax]
movzx ecx, word [edi]
cmp ecx, 0x20
je 0x40ffed
cmp ecx, 9
jne 0x40fff2
add edi, 2
jmp 0x40ffe0
mov esi, eax
mov dword [ebp + 0x68], edi
sub esi, edi
sar esi, 1
mov dword [ebp + 0x3c], esi
jne 0x410085
lea esi, [eax + 2]
movzx eax, word [esi]
cmp eax, 0x7d
jne 0x410017
mov dword [ebp + 0x5c], esi
lea esi, [eax - 0x7c]
jmp 0x410082
cmp eax, 0x20
je 0x410025
cmp eax, 9
jne 0x4106f6
cmp ax, 0x20
je 0x410031
cmp ax, 9
jne 0x41003a
movzx eax, word [esi + 2]
add esi, 2
jmp 0x410025
push 4
push str.Down
push esi
call fcn.0049b726
add esp, 0xc
test eax, eax
je 0x410066
push 2
push 0x4b913c
push esi
call fcn.0049b726
add esp, 0xc
test eax, eax
jne 0x4106f6
push 0x7d
push esi
call fcn.00496bcf
add esp, 8
mov dword [ebp + 0x5c], eax
test eax, eax
je case.0x40ff76.34
mov esi, eax
sub esi, edi
sar esi, 1
mov dword [ebp + 0x3c], esi
push 5
push 0x4b7644
push edi
call fcn.0049b726
add esp, 0xc
test eax, eax
jne 0x41013a
mov esi, dword [ebp + 0x5c]
lea ecx, [edi + 0xa]
mov word [esi], ax
movzx eax, word [ecx]
cmp eax, 0x20
je 0x4100b3
cmp eax, 9
jne 0x4100b8
add ecx, 2
jmp 0x4100a6
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp + 0x6e]
push eax
lea eax, [ebp + 0x34]
push eax
lea edx, [ebp + 0x30]
call fcn.004117f0
add esp, 0x14
mov eax, 0x7d
mov word [esi], ax
mov eax, dword [ebp + 0x38]
push dword [ebp + 0x24]
cmp eax, 1
jge 0x41010f
mov eax, dword [ebp + 0x44]
lea edx, [ebp + 0x34]
lea ecx, [ebp + 0x30]
movzx eax, byte [eax + 0xef]
push eax
lea eax, [ebp + 4]
push eax
call fcn.00412450
mov edi, dword [ebp + 0x5c]
add esp, 0xc
jmp 0x4107bd
push dword [ebp + 0x34]
mov ecx, dword [ebp + 0x7c]
xor edx, edx
push dword [ebp + 0x30]
push ecx
mov cl, byte [ebp + 0x6e]
push 0
push dword [ebp + 0x54]
push eax
push dword [ebp + 0x50]
push dword [ebp + 0x62]
call fcn.00410a60
mov edi, dword [ebp + 0x5c]
add esp, 0x24
jmp 0x4107bd
push 3
push 0x4caf34
push edi
call fcn.0049b726
add esp, 0xc
test eax, eax
jne 0x41015d
mov edi, dword [ebp + 0x5c]
mov dword [ebp + 0x4c], 1
jmp 0x4107bd
push 4
push 0x4cae84
push edi
call fcn.0049b726
add esp, 0xc
test eax, eax
jne 0x41019e
lea ecx, [edi + 8]
movzx eax, word [ecx]
cmp eax, 0x20
je 0x410181
cmp eax, 9
jne 0x410186
add ecx, 2
jmp 0x410174
cmp ecx, dword [ebp + 0x5c]
jne 0x4106f6
mov edi, dword [ebp + 0x5c]
mov dword [ebp + 0x4c], 2
jmp 0x4107bd
mov eax, 1
mov dword [ebp + 0x28], esi
mov esi, dword [ebp + 0x5c]
mov dword [ebp + 0x2c], eax
mov dword [ebp + 0x38], eax
xor eax, eax
mov dword [ebp + 0x54], 2
mov word [esi], ax
mov eax, dword [ebp + 0x68]
movzx eax, word [eax]
test ax, ax
je 0x410365
mov esi, eax
nop dword [eax]
mov edx, 0x4ca844
mov ecx, 0x20
nop word [eax + eax]
cmp si, cx
je 0x410205
movzx eax, word [edx + 2]
add edx, 2
mov ecx, eax
test ax, ax
jne 0x4101e0
movzx eax, word [edi + 2]
add edi, 2
mov esi, eax
test ax, ax
jne 0x4101d0
xor edi, edi
jmp 0x410277
movzx eax, word [edi]
lea esi, [edi + 2]
mov ebx, edi
mov dword [ebp + 0x14], eax
sub ebx, dword [ebp + 0x68]
xor eax, eax
sar ebx, 1
mov word [edi], ax
mov dword [ebp + 0x28], ebx
nop dword [eax]
movzx eax, word [esi]
cmp eax, 0x20
je 0x41022d
cmp eax, 9
jne 0x410232
add esi, 2
jmp 0x410220
mov eax, dword [ebp + 0x5c]
sub eax, esi
sar eax, 1
je 0x410274
push 4
push str.Down
push esi
call fcn.0049b726
add esp, 0xc
test eax, eax
jne 0x410335
push 4
add esi, 8
mov dword [ebp + 0x54], eax
push str.Temp
push esi
call fcn.0049b726
add esp, 0xc
test eax, eax
jne 0x410314
mov dword [ebp + 0x40], eax
mov bh, byte [ebp + 0x6f]
mov esi, dword [ebp + 0x5c]
push dword [0x4dea00]
mov ecx, dword [ebp + 0x68]
lea eax, [ebp + 0x62]
push eax
lea eax, [ebp + 0x10]
push eax
lea edx, [ebp + 0x6e]
call fcn.00414350
add esp, 0xc
test edi, edi
je 0x4102a0
mov eax, dword [ebp + 0x14]
mov word [edi], ax
mov edi, dword [ebp + 0x2c]
mov eax, 0x7d
mov word [esi], ax
cmp edi, 1
jl 0x4106f6
mov bh, byte [ebp + 0x6e]
mov esi, dword [ebp + 0x10]
test bh, bh
jne 0x410632
test si, si
jne 0x410632
cmp dword [ebp + 0x28], 1
jne 0x410390
cmp dword [ebp + 0x54], 1
je 0x410309
mov ecx, dword [ebp + 0x7c]
test ecx, ecx
je 0x41036c
test edi, edi
jle 0x410309
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp + 0x68]
push 0
movzx eax, word [eax]
push eax
push 0x102
push ecx
call esi
mov ecx, dword [ebp + 0x7c]
sub edi, 1
jne 0x4102f0
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x5c]
jmp 0x4107bd
xor eax, eax
cmp word [esi], 0x52
sete al
push eax
call fcn.0049d517
add esp, 4
neg eax
sbb eax, eax
neg eax
inc eax
mov dword [ebp + 0x40], eax
jmp 0x410274
push 0x4b913c
push esi
call fcn.00499643
add esp, 8
test eax, eax
jne 0x410353
mov dword [ebp + 0x54], 1
jmp 0x410274
mov ecx, esi
call fcn.0040f490
mov dword [ebp + 0x2c], eax
mov dword [ebp + 0x38], eax
jmp 0x410274
xor edi, edi
jmp 0x41027a
mov al, byte [ebp + 0x62]
mov edx, edi
mov bh, byte [ebp + 0x6f]
or al, bh
movzx eax, al
push eax
mov eax, dword [ebp + 0x68]
mov cx, word [eax]
call fcn.00410c10
mov edi, dword [ebp + 0x5c]
add esp, 4
jmp 0x4107bd
cmp dword [ebp + 0x7c], 0
mov esi, dword [ebp + 0x3c]
mov edx, esi
mov ecx, dword [ebp + 0x68]
sete al
movzx eax, al
push eax
lea eax, [ebp + 0x50]
push eax
lea eax, [ebp + 0x54]
push eax
call fcn.00414420
mov bl, al
add esp, 0xc
mov byte [ebp + 0x6e], bl
test bl, bl
je 0x4104ae
cmp dword [ebp + 0x7c], 0
mov esi, dword [ebp + 0x54]
jne 0x4103d9
test esi, esi
jne 0x4103d2
mov byte [ebp + 0x67], bl
jmp 0x4103d9
mov cl, bl
call fcn.0040f6c0
cmp dword [0x4dea20], 0
je 0x4103e9
mov al, byte [0x4dea14]
jmp 0x4103f0
xor cl, cl
call fcn.00413820
mov ecx, dword [ebp + 0x7c]
mov dl, al
mov bh, byte [ebp + 0x50]
push 0xffc3d44d
push 0
push 0
push ecx
mov cl, bh
mov byte [ebp + 0x6f], bh
call fcn.00413110
add esp, 0x10
test edi, edi
jle 0x4106f6
nop word [eax + eax]
push 0xffc3d44d
push 1
push dword [ebp + 0x7c]
mov dl, bl
mov ecx, esi
push 0
call fcn.00411080
add esp, 0x10
cmp dword [0x4dea20], 0
jne 0x41049d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4d98d8]
sub eax, dword [0x4de79c]
cmp eax, dword [ecx + 0xd8]
jbe 0x41049d
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x410492
mov edx, 1
mov dword [0x4d98d0], 0
or ecx, 0xffffffff
call fcn.004015d0
mov dword [0x4d98d0], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4de79c], eax
sub edi, 1
jne 0x410420
mov edi, dword [ebp + 0x5c]
jmp 0x4107bd
mov ebx, dword [ebp + 0x68]
cmp esi, 4
jbe 0x410525
push 4
push str.ASC
push ebx
call fcn.0049b726
mov edi, dword [ebp + 0x7c]
add esp, 0xc
test eax, eax
jne 0x410528
test edi, edi
jne 0x410528
lea ecx, [ebx + 6]
movzx eax, word [ecx]
cmp eax, 0x20
je 0x4104e1
cmp eax, 9
jne 0x4104e6
add ecx, 2
jmp 0x4104d4
call fcn.00410d20
cmp dword [0x4dea20], 2
mov eax, dword [0x4d98d8]
jne 0x41050f
mov ecx, dword [eax + 0x60]
call fcn.00412d20
mov bh, byte [ebp + 0x50]
mov edi, dword [ebp + 0x5c]
mov byte [ebp + 0x6f], bh
jmp 0x4107bd
mov ecx, dword [eax + 0x5c]
call fcn.00412d20
mov bh, byte [ebp + 0x50]
mov edi, dword [ebp + 0x5c]
mov byte [ebp + 0x6f], bh
jmp 0x4107bd
mov edi, dword [ebp + 0x7c]
cmp esi, 2
jbe 0x410517
push 2
push 0x4caf54
push ebx
call fcn.0049b726
add esp, 0xc
test eax, eax
jne 0x410517
push 0x10
push eax
lea eax, [ebx + 4]
push eax
call fcn.0049d195
mov edx, eax
add esp, 0xc
cmp edx, 0x10000
jb 0x410585
sub edx, 0x10000
mov ecx, edx
mov eax, edx
shr ecx, 0xa
and eax, 0x3ff
and ecx, 0x3ff
sub ecx, 0x2800
sub eax, 0x2400
movzx ecx, cx
movzx esi, ax
jmp 0x41058a
movzx ecx, dx
xor esi, esi
mov bh, byte [ebp + 0x50]
mov byte [ebp + 0x6f], bh
test edi, edi
je 0x4105bf
push 0
movzx eax, cx
push eax
push 0x102
push edi
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
call edi
test si, si
je 0x410604
push 0
movzx eax, si
push eax
push 0x102
push dword [ebp + 0x7c]
call edi
jmp 0x410604
cmp dword [0x4dea20], 2
je 0x4105e4
mov bl, byte [ebp + 0x62]
or bl, bh
mov dl, bl
call fcn.0040f740
test si, si
je 0x410604
mov dl, bl
mov ecx, esi
call fcn.0040f740
jmp 0x410604
mov eax, 0x30
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xa]
push 0xa
push eax
push edx
call fcn.0049956a
add esp, 0xc
lea ecx, [ebp - 0xc]
call fcn.00410d20
cmp dword [0x4dea20], 2
mov eax, dword [0x4d98d8]
jne 0x410622
mov ecx, dword [eax + 0x60]
call fcn.00412d20
mov edi, dword [ebp + 0x5c]
jmp 0x4107bd
mov ecx, dword [eax + 0x5c]
call fcn.00412d20
mov edi, dword [ebp + 0x5c]
jmp 0x4107bd
push 0
mov edx, esi
mov cl, bh
call fcn.00413a30
mov bl, al
add esp, 4
mov eax, dword [ebp + 0x54]
mov byte [ebp + 0xc], bl
test bl, bl
je 0x4106cc
cmp dword [ebp + 0x7c], 0
jne 0x4106cc
test eax, eax
jne 0x410684
mov ecx, dword [ebp + 0x40]
mov byte [ebp + 0x67], bh
cmp ecx, 1
jne 0x410672
mov cl, byte [ebp + 0x6f]
or byte [0x4de9ae], bl
or cl, bl
jmp 0x4106c6
cmp ecx, 2
jne 0x41067d
or byte [0x4de9af], bl
mov cl, byte [ebp + 0x6f]
or cl, bl
jmp 0x4106c6
cmp eax, 1
jne 0x4106cc
mov cl, bh
call fcn.0040f6c0
mov al, byte [ebp + 0x6c]
not bl
and byte [0x4de9af], bl
mov cl, bl
and cl, byte [0x4de9ae]
and al, bl
mov byte [0x4de9ae], cl
mov byte [ebp + 0x6c], al
cmp bh, 0xa5
jne 0x4106c1
cmp dword [0x4dea04], 3
jne 0x4106c1
and al, 0xfe
mov byte [ebp + 0x6c], al
or cl, al
mov eax, dword [ebp + 0x54]
mov byte [ebp + 0x50], cl
mov byte [ebp + 0x6f], cl
mov ecx, dword [ebp + 0x7c]
mov edx, esi
push 0
push SysReAllocString
push SysReAllocString
push ecx
push dword [ebp + 0xc]
mov cl, bh
push eax
push edi
push dword [ebp + 0x50]
push dword [ebp + 0x62]
call fcn.00410a60
mov bh, byte [ebp + 0x6f]
add esp, 0x24
mov edi, dword [ebp + 0x5c]
jmp 0x4107bd
cmp eax, 2
jne 0x41073e
movzx eax, word [edi]
add eax, 0xfffffff8
cmp eax, 5
ja case.0x41070e.11
jmp dword [eax*4 + 0x410a48]
cmp word [edi + 2], 0xa
lea eax, [edi + 2]
cmove edi, eax
mov al, 0xd
mov byte [ebp + 0x6e], al
jmp 0x410768
mov al, 8
mov byte [ebp + 0x6e], al
jmp 0x410768
mov al, 9
mov byte [ebp + 0x6e], al
jmp 0x410768
mov byte [ebp + 0x6e], 0
jmp 0x410792
mov eax, dword [ebp + 0x4c]
or bl, bh
je 0x41074a
test eax, eax
jne 0x41074a
mov al, 1
jmp 0x41074c
xor al, al
mov cx, word [edi]
lea edx, [ebp + 0x62]
push eax
push dword [0x4dea00]
call fcn.00414270
add esp, 8
mov byte [ebp + 0x6e], al
test al, al
je 0x41078f
push 0
push SysReAllocString
push SysReAllocString
push esi
push 0
push 2
push 1
push dword [ebp + 0x50]
xor edx, edx
mov cl, al
push dword [ebp + 0x62]
call fcn.00410a60
add esp, 0x24
jmp 0x4107bd
mov bl, byte [ebp + 0x62]
movzx ecx, word [edi]
test esi, esi
je 0x4107aa
push 0
push ecx
push 0x102
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4107bd
or bl, bh
mov edx, 1
movzx eax, bl
push eax
call fcn.00410c10
add esp, 4
xor bl, bl
mov byte [ebp + 0x62], bl
mov al, byte [ebp + 0x67]
add edi, 2
mov byte [0x4de9ad], al
cmp word [edi], 0
jne 0x40fed0
cmp dword [0x4dea20], 0
je 0x410881
or esi, 0xffffffff
cmp byte [0x4dea16], 0
mov dword [ebp + 0x40], esi
jne 0x410841
cmp dword [0x4dea08], 0
jbe 0x410841
cmp byte [0x4dea24], 0
je 0x410809
xor bl, bl
jmp 0x410811
mov bl, byte [ebp + 0x66]
not bl
and bl, byte [ebp + 0x6d]
or bl, byte [0x4de9af]
mov dl, byte [0x4dea14]
or bl, bh
push 0xffc3d44d
push 1
push 1
push 0
mov cl, bl
call fcn.00413110
add esp, 0x10
lea ecx, [ebp + 0x40]
mov dl, bl
call fcn.00412bc0
mov esi, dword [ebp + 0x40]
cmp dword [0x4dea20], 1
mov eax, 0x5dc
mov ecx, 0x1f4
cmove eax, ecx
cmp dword [0x4dea0c], eax
jbe 0x41086b
push dword [0x4dcf1c]
call fcn.0049b8d4
add esp, 4
mov ecx, esi
mov dword [0x4dea20], 0
call fcn.00412d20
jmp 0x41090d
cmp dword [0x4dc440], 0
je 0x410895
mov cl, byte [0x4dcdc3]
mov dl, byte [ebp + 0x6d]
jmp 0x4108be
cmp dword [0x4daaf0], 0
jl 0x4108b9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4de75c]
cmp eax, dword [0x4daaf0]
jb 0x4108b9
mov dl, byte [ebp + 0x6d]
xor cl, cl
jmp 0x4108be
mov dl, byte [ebp + 0x6d]
mov cl, dl
or cl, byte [0x4de9af]
cmp byte [0x4dea24], 0
je 0x4108df
mov al, cl
xor al, dl
mov bl, al
and al, cl
and bl, dl
not bl
and bl, bh
or bl, al
jmp 0x4108e8
mov bl, byte [ebp + 0x66]
not bl
and bl, cl
or bl, bh
push 0xffc3d44d
push 1
push 1
push dword [ebp + 0x7c]
xor cl, cl
call fcn.00413820
or al, byte [0x4dcdc2]
mov cl, bl
mov dl, al
call fcn.00413110
add esp, 0x10
cmp dword [0x4dc440], 0
je 0x410930
mov cl, byte [0x4dcdc4]
mov al, cl
xor al, byte [0x4dcdc5]
and al, cl
not al
and cl, al
mov byte [0x4dcdc4], cl
cmp dword [ebp + 0x20], 1
jne 0x410942
mov edx, 1
mov cl, 0x14
call fcn.00412ff0
cmp byte [ebp + 0x5b], 0
je 0x410959
push 0
push dword [ebp + 0x1c]
push dword [0x4ddc88]
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp + 0x5a], 0
je 0x410974
cmp byte [ebp + 0x4b], 0
jne 0x410974
push 0
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x4dc474], 0
cmp dword [ebp + 0x78], 1
jne 0x4109b2
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4ddc88]
jne 0x4109b2
mov edx, 1
mov dword [0x4d98d0], 0
or ecx, 0xffffffff
call fcn.004015d0
mov dword [0x4d98d0], 1
mov eax, dword [ebp + 0x44]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x5c], ecx
mov ecx, dword [ebp + 0x18]
mov dword [eax + 0x64], ecx
lea esp, [ebp - 0x64]
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x70]
pop ebp
ret