Function at 0x410ff0
Capabilities:
Check for foreground window switch
Check for time delay via gettickcount
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xc4
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov dword [ebp + 0x4c], ebx
mov dword [ebp + 0x60], edi
cmp byte [edi], 0
je 0x412325
mov eax, dword [0x4c8024]
mov esi, dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbicmp]
mov dword [ebp + 0x44], eax
mov eax, dword [0x4cce90]
mov dword [ebp + 8], eax
mov eax, dword fs:[0x24]
mov dword [ebp + 0x20], eax
test ebx, ebx
jne 0x411054
push 7
push str.Blind
push edi
call esi
add esp, 0xc
test eax, eax
jne 0x411054
add edi, 7
mov byte [0x4cd104], 1
mov dword [ebp + 0x60], edi
jmp 0x41105f
mov byte [0x4cd104], 0
test ebx, ebx
jne 0x41107d
push 6
push 0x4bb900
push edi
call esi
add esp, 0xc
test eax, eax
jne 0x41107d
add edi, 6
mov dword [ebp + 0x4c], 2
mov dword [ebp + 0x60], edi
mov ecx, dword [ebp + 0x44]
mov ebx, dword [ebp + 0x78]
mov eax, dword [ecx + 0x5c]
mov dword [ebp + 4], eax
mov eax, dword [ecx + 0x64]
mov dword [ebp + 0x10], eax
cmp ebx, 1
je 0x41109d
cmp ebx, 3
jne 0x411157
mov eax, dword [0x4cd064]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4110af
push eax
call edi
push str.AHK_Keybd
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x4cd064], 0
mov ebx, eax
je 0x4110d9
mov dword [0x4cd064], esi
jmp 0x4110e0
test esi, esi
je 0x4110e0
push esi
call edi
cmp ebx, 0xb7
je 0x411121
cmp dword [ebp + 0x4c], 0
jne 0x411114
call fcn.0040b250
mov edi, dword [ebp + 0x60]
test al, al
je 0x411117
mov edx, str.Click
mov ecx, edi
call fcn.0049eb30
test eax, eax
jne 0x411124
mov ebx, 1
mov dword [ebp + 0x78], ebx
jmp 0x411157
mov edi, dword [ebp + 0x60]
mov ebx, 1
mov dword [ebp + 0x78], ebx
jmp 0x411157
mov edi, dword [ebp + 0x60]
cmp dword [ebp + 0x78], 3
jne 0x411134
mov ebx, 2
mov dword [ebp + 0x78], ebx
jmp 0x411157
mov ecx, dword [ebp + 0x44]
xor ebx, ebx
mov dword [ebp + 0x78], ebx
cmp dword [ecx + 0x5c], ebx
jge 0x41114b
cmp dword [ecx + 0x64], ebx
jge 0x41114b
or eax, 0xffffffff
jmp 0x41114d
xor eax, eax
mov dword [ecx + 0x64], eax
mov dword [ecx + 0x5c], 0xffffffff
mov eax, dword [ebp + 0x7c]
xor esi, esi
mov byte [ebp + 0x5f], 0
test eax, eax
je 0x4111b1
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
mov dword [ebp + 0x14], ebx
test ebx, ebx
je 0x411277
cmp ebx, dword [0x4cc810]
je 0x411277
mov ecx, dword [ebp + 0x7c]
call fcn.004a4f30
test al, al
jne 0x411277
push 1
push ebx
push dword [0x4cc810]
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
mov esi, ebx
setne byte [ebp + 0x5f]
jmp 0x411277
test byte [0x4cce5d], 0xc0
je 0x411235
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4cce54]
cmp eax, 0x32
jae 0x411235
cmp ebx, 2
je 0x411235
cmp byte [0x4cd104], 0
jne 0x411235
mov eax, dword [ebp + 0x4c]
cmp eax, 2
je 0x411235
cmp byte [0x4cd01b], 0
je 0x411235
mov ecx, dword [ebp + 0x20]
cmp ecx, dword [0x4cc810]
jne 0x411235
test eax, eax
je 0x4112c5
mov esi, edi
test edi, edi
je 0x41122b
mov dl, byte [edi]
test dl, dl
je 0x41122b
nop dword [eax]
mov ecx, 0x4bbb84
mov al, 0x4c
cmp dl, al
je 0x41122d
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x411217
mov dl, byte [esi + 1]
inc esi
test dl, dl
jne 0x411210
xor esi, esi
test esi, esi
jne 0x411332
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor esi, esi
test eax, eax
je 0x411271
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push esi
push eax
call ebx
mov esi, eax
mov dword [ebp - 0x54], 0x30
lea eax, [ebp - 0x54]
push eax
push esi
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x411271
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x411271
push 0
push eax
call ebx
mov esi, eax
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x14], eax
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
xor edx, edx
mov dword [0x4cd0e0], eax
mov ecx, eax
call fcn.004159c0
mov cl, 1
mov dword [0x4cd0e4], eax
call fcn.004154e0
mov bl, al
and byte [0x4cd08f], bl
cmp dword [0x4ca774], 0
je 0x41137b
mov al, byte [0x4cb0be]
mov cl, byte [0x4cb0bc]
mov bh, al
not al
and bh, cl
and al, cl
jmp 0x41139f
mov edx, edi
test edx, edx
je 0x411235
mov bl, byte [edx]
test bl, bl
je 0x411235
nop dword [eax]
mov ecx, 0x4bbb84
mov al, 0x4c
cmp bl, al
je 0x411300
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x4112e7
mov bl, byte [edx + 1]
inc edx
test bl, bl
jne 0x4112e0
jmp 0x411235
add edx, 1
je 0x411332
mov bl, byte [edx]
test bl, bl
je 0x411332
nop dword [eax + eax]
mov ecx, 0x4bbb88
mov al, 0x7b
cmp bl, al
je 0x41132d
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x411317
mov bl, byte [edx + 1]
inc edx
test bl, bl
jne 0x411310
jmp 0x411332
cmp byte [edx], 0x7b
jne 0x4112c7
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ebx, 0x8000
nop dword [eax]
push 0x5b
call esi
test bx, ax
jne 0x411356
push 0x5c
call esi
test bx, ax
je 0x411235
mov edx, 1
mov dword [0x4c801c], 0
mov ecx, 0x8000012f
call fcn.00401730
mov dword [0x4c801c], 1
jmp 0x411340
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4cce54]
cmp eax, dword [0x4c9224]
jae 0x411399
mov cl, byte [0x4cce5d]
and cl, bl
jmp 0x41139b
xor cl, cl
mov bh, cl
xor al, al
not bh
mov byte [ebp + 0x6d], cl
and bh, byte [0x4cd08e]
and bh, bl
mov byte [ebp + 0x66], al
cmp byte [0x4cd104], 0
mov byte [ebp + 0x6f], bh
mov byte [0x4cd08e], bh
je 0x4113ce
not bh
and bh, bl
mov al, bh
mov bh, bl
mov byte [ebp + 0x6f], bh
jmp 0x4113d0
xor al, al
mov byte [ebp + 0x6c], al
mov eax, dword [ebp + 0x44]
mov byte [ebp + 0x54], bh
cmp byte [eax + 0xd3], 0
je 0x411402
cmp byte [0x4cd104], 0
jne 0x411402
cmp dword [ebp + 0x4c], 2
je 0x411402
mov edx, 2
mov cl, 0x14
call fcn.00414ca0
mov dword [ebp + 0x18], eax
jmp 0x411409
mov dword [ebp + 0x18], 0
mov edx, dword [ebp + 0x78]
mov eax, 0x1f4
mov dword [0x4cd100], edx
mov ecx, 0x5dc
test edx, edx
je 0x411482
cmp edx, 1
cmovne eax, ecx
mov ecx, 0x2ee0
mov dword [0x4cd0ec], eax
mov eax, 0x36b0
cmovne eax, ecx
call fcn.004b4550
mov eax, dword [0x4c999c]
mov ecx, esp
mov edx, dword [ebp + 0x78]
mov byte [0x4cd0f4], bl
mov byte [0x4cd0f5], 0
mov dword [eax], ecx
mov dword [0x4cd0f8], 0x80000000
mov dword [0x4cd0fc], 0x80000000
mov dword [0x4cd0e8], 0
mov byte [0x4cd0f6], 0
mov byte [0x4cd0f7], 1
mov al, byte [0x4ca7e6]
mov byte [ebp + 0x4b], al
mov eax, dword [0x4c8034]
cmp eax, 8
je 0x411499
cmp eax, 0xa
jne 0x4114b9
mov esi, dword [ebp + 0x7c]
test edx, edx
jne 0x4114bc
test esi, esi
jne 0x4114bc
push 1
mov byte [ebp + 0x5e], 1
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x4ca7e6], 1
jmp 0x4114c0
mov esi, dword [ebp + 0x7c]
mov byte [ebp + 0x5e], 0
xor bl, bl
mov byte [ebp + 0x68], bl
cmp byte [edi], bl
je 0x4120ad
jmp 0x4114d3
mov esi, dword [ebp + 0x7c]
cmp dword [0x4cd100], 0
mov byte [ebp + 0x67], 0
jne 0x41153c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4c8024]
sub eax, dword [0x4cce94]
cmp eax, dword [ecx + 0xb8]
jbe 0x41153c
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x411531
mov edx, 1
mov dword [0x4c801c], 0
or ecx, 0xffffffff
call fcn.00401730
mov dword [0x4c801c], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4cce94], eax
mov eax, dword [ebp + 0x4c]
test eax, eax
jne 0x411fd7
movsx eax, byte [edi]
push eax
push 0x4bbb8c
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbschr]
add esp, 8
test eax, eax
je 0x412013
movsx eax, byte [edi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x411577.34
movzx eax, byte [eax + 0x41234c]
jmp dword [eax*4 + 0x412330]
test bh, 3
jne case.0x411577.34
or bl, 1
jmp 0x412098
test bh, 0x30
jne case.0x411577.34
or bl, 0x10
jmp 0x412098
test bh, 0xc
jne case.0x411577.34
or bl, 4
jmp 0x412098
test bh, 0xc0
jne case.0x411577.34
or bl, 0x40
jmp 0x412098
lea esi, [edi + 1]
push 0x7d
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbschr]
add esp, 8
mov dword [ebp + 0x50], eax
test eax, eax
je case.0x411577.34
mov edi, esi
nop
mov cl, byte [edi]
cmp cl, 0x20
je 0x4115ec
cmp cl, 9
jne 0x4115ef
inc edi
jmp 0x4115e0
mov esi, eax
mov dword [ebp + 0x60], edi
sub esi, edi
mov dword [ebp + 0x34], esi
jne 0x41167a
lea esi, [eax + 1]
mov al, byte [esi]
cmp al, 0x7d
jne 0x41160e
mov dword [ebp + 0x50], esi
mov esi, 1
jmp 0x411677
cmp al, 0x20
je 0x411628
cmp al, 9
jne 0x411fcf
nop word [eax + eax]
cmp al, 0x20
je 0x411628
cmp al, 9
jne 0x41162e
mov al, byte [esi + 1]
inc esi
jmp 0x411620
push 4
push str.Down
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbicmp]
add esp, 0xc
test eax, eax
je 0x41165c
push 2
push 0x4b7eec
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbicmp]
add esp, 0xc
test eax, eax
jne 0x411fcf
push 0x7d
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbschr]
add esp, 8
mov dword [ebp + 0x50], eax
test eax, eax
je case.0x411577.34
mov esi, eax
sub esi, edi
mov dword [ebp + 0x34], esi
push 5
push 0x4b7024
push edi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbicmp]
add esp, 0xc
test eax, eax
jne 0x41172d
mov eax, dword [ebp + 0x50]
lea ecx, [edi + 5]
mov byte [eax], 0
nop dword [eax]
mov al, byte [ecx]
cmp al, 0x20
je 0x4116aa
cmp al, 9
jne 0x4116ad
inc ecx
jmp 0x4116a0
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp + 0x3c]
push eax
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp + 0x6e]
push eax
lea eax, [ebp + 0x2c]
push eax
lea edx, [ebp + 0x28]
call fcn.004130e0
mov eax, dword [ebp + 0x50]
add esp, 0x14
push dword [ebp + 0x1c]
mov byte [eax], 0x7d
mov eax, dword [ebp + 0x3c]
cmp eax, 1
jge 0x411702
mov eax, dword [ebp + 0x44]
lea edx, [ebp + 0x2c]
lea ecx, [ebp + 0x28]
movzx eax, byte [eax + 0xcf]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00414040
mov edi, dword [ebp + 0x50]
add esp, 0xc
jmp 0x412096
push dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x7c]
xor edx, edx
push dword [ebp + 0x28]
push ecx
mov cl, byte [ebp + 0x6e]
push 0
push dword [ebp + 0x58]
push eax
push dword [ebp + 0x54]
push dword [ebp + 0x68]
call fcn.004123d0
mov edi, dword [ebp + 0x50]
add esp, 0x24
jmp 0x412096
push 3
push 0x4bbb94
push edi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbicmp]
add esp, 0xc
test eax, eax
jne 0x411751
mov edi, dword [ebp + 0x50]
mov dword [ebp + 0x4c], 1
jmp 0x412096
push 4
push str.Text
push edi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbicmp]
add esp, 0xc
test eax, eax
jne 0x411795
lea ecx, [edi + 4]
nop dword [eax]
mov al, byte [ecx]
cmp al, 0x20
je 0x41177a
cmp al, 9
jne 0x41177d
inc ecx
jmp 0x411770
cmp ecx, dword [ebp + 0x50]
jne 0x411fcf
mov edi, dword [ebp + 0x50]
mov dword [ebp + 0x4c], 2
jmp 0x412096
mov ebx, dword [ebp + 0x60]
mov edi, 1
mov eax, dword [ebp + 0x50]
mov dword [ebp + 0x38], esi
mov esi, ebx
mov dword [ebp + 0x58], 2
mov dword [ebp + 0x3c], edi
mov byte [eax], 0
mov dl, byte [ebx]
mov dword [ebp + 0x24], ebx
test dl, dl
je 0x4117e2
nop dword [eax + eax]
mov ecx, 0x4bb7f4
mov al, 0x20
cmp dl, al
je 0x411867
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x4117c7
mov dl, byte [esi + 1]
inc esi
mov dword [ebp + 0x24], esi
test dl, dl
jne 0x4117c0
push dword [0x4cd0e0]
lea eax, [ebp + 0x68]
mov ecx, ebx
push eax
lea eax, [ebp + 0x30]
push eax
lea edx, [ebp + 0x6e]
call fcn.00415f20
add esp, 0xc
mov ebx, dword [ebp + 0x50]
mov byte [ebx], 0x7d
cmp edi, 1
jl 0x411fcc
mov bh, byte [ebp + 0x6e]
mov esi, dword [ebp + 0x30]
test bh, bh
jne 0x411f0f
test si, si
jne 0x411f0f
mov ebx, dword [ebp + 0x60]
movzx eax, byte [ebx]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isdigit]
add esp, 4
test eax, eax
mov eax, dword [ebp + 0x38]
je 0x411c0c
cmp eax, 1
jbe 0x411c0f
cmp dword [0x4cd100], 0
je 0x411a6d
mov ecx, ebx
mov al, byte [ecx]
cmp al, 0x20
je 0x411864
cmp al, 9
jne 0x41198e
inc ecx
jmp 0x411856
mov bl, byte [esi]
mov eax, esi
sub eax, dword [ebp + 0x60]
mov byte [esi], 0
mov dword [ebp + 0x38], eax
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
je 0x411874
cmp al, 9
je 0x411874
mov eax, dword [ebp + 0x50]
sub eax, esi
je 0x411960
push 4
push str.Down
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbicmp]
add esp, 0xc
test eax, eax
jne 0x4118e1
push 4
add esi, 4
mov dword [ebp + 0x58], eax
push str.Temp
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbicmp]
add esp, 0xc
test eax, eax
jne 0x4118c3
mov dword [ebp + 0x40], eax
jmp 0x411960
xor eax, eax
cmp byte [esi], 0x52
sete al
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
add esp, 4
neg eax
sbb esi, esi
neg esi
inc esi
mov dword [ebp + 0x40], esi
jmp 0x411960
push 0x4b7eec
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x4118f9
mov dword [ebp + 0x58], edi
jmp 0x411960
mov ecx, esi
nop dword [eax + eax]
mov al, byte [ecx]
cmp al, 0x20
je 0x41190a
cmp al, 9
jne 0x41190d
inc ecx
jmp 0x411900
test al, al
je 0x411951
cmp al, 0x2d
je 0x411919
cmp al, 0x2b
jne 0x411920
lea eax, [ecx + 1]
mov ecx, eax
mov al, byte [eax]
cmp al, 0x30
jne 0x411951
mov al, byte [ecx + 1]
cmp al, 0x78
je 0x41192f
cmp al, 0x58
jne 0x411951
movsx eax, byte [ecx + 2]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isxdigit]
add esp, 4
test eax, eax
je 0x411951
push 0x10
push 0
push esi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
add esp, 0xc
jmp 0x41195b
push esi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov edi, eax
mov dword [ebp + 0x3c], edi
push dword [0x4cd0e0]
mov ecx, dword [ebp + 0x60]
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x30]
push eax
lea edx, [ebp + 0x6e]
call fcn.00415f20
mov eax, dword [ebp + 0x24]
add esp, 0xc
test eax, eax
je 0x4117fd
mov byte [eax], bl
jmp 0x4117fd
test al, al
je 0x4119d2
cmp al, 0x2d
je 0x41199a
cmp al, 0x2b
jne 0x4119a1
lea eax, [ecx + 1]
mov ecx, eax
mov al, byte [eax]
cmp al, 0x30
jne 0x4119d2
mov al, byte [ecx + 1]
cmp al, 0x78
je 0x4119b0
cmp al, 0x58
jne 0x4119d2
movsx eax, byte [ecx + 2]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isxdigit]
add esp, 4
test eax, eax
je 0x4119d2
push 0x10
push 0
push ebx
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
add esp, 0xc
jmp 0x4119dc
push ebx
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov esi, eax
mov eax, dword [0x4cd0e8]
cmp eax, dword [0x4cd0ec]
jne 0x4119f8
call fcn.00414700
test eax, eax
je 0x411fcc
cmp dword [0x4cd100], 1
jne 0x411a45
mov eax, dword [0x4cd0e8]
xor edx, edx
or byte [0x4cd0f5], 1
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x50]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [0x4cb224]
inc dword [0x4cd0e8]
mov dword [eax + ecx*4], 1
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0x10], esi
mov dword [eax + ecx*4 + 0xc], edx
jmp 0x412096
mov eax, dword [0x4c999c]
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x50]
mov ecx, dword [eax]
mov eax, dword [0x4cd0e8]
inc dword [0x4cd0e8]
mov dword [ecx + eax*8], 0
mov dword [ecx + eax*8 + 4], esi
jmp 0x412096
mov eax, dword [ebp + 0x20]
mov dword [0x4c801c], 0
cmp dword [0x4cc810], eax
je 0x411b89
mov ecx, ebx
mov al, byte [ecx]
cmp al, 0x20
je 0x411a92
cmp al, 9
jne 0x411a95
inc ecx
jmp 0x411a88
test al, al
je 0x411ae1
cmp al, 0x2d
je 0x411aa1
cmp al, 0x2b
jne 0x411aa8
lea eax, [ecx + 1]
mov ecx, eax
mov al, byte [eax]
cmp al, 0x30
jne 0x411ae1
mov al, byte [ecx + 1]
cmp al, 0x78
je 0x411ab7
cmp al, 0x58
jne 0x411ae1
movsx eax, byte [ecx + 2]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isxdigit]
add esp, 4
test eax, eax
je 0x411ae1
mov esi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
push 0x10
push 0
push ebx
call esi
mov edi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 0xc
jmp 0x411af3
mov edi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
push ebx
call edi
mov esi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
add esp, 4
test eax, eax
js 0x411b89
mov ecx, ebx
nop dword [eax]
mov al, byte [ecx]
cmp al, 0x20
je 0x411b0a
cmp al, 9
jne 0x411b0d
inc ecx
jmp 0x411b00
test al, al
je 0x411b67
cmp al, 0x2d
je 0x411b19
cmp al, 0x2b
jne 0x411b20
lea eax, [ecx + 1]
mov ecx, eax
mov al, byte [eax]
cmp al, 0x30
jne 0x411b67
mov al, byte [ecx + 1]
cmp al, 0x78
je 0x411b2f
cmp al, 0x58
jne 0x411b67
movsx eax, byte [ecx + 2]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isxdigit]
add esp, 4
test eax, eax
je 0x411b67
push 0x10
push 0
push ebx
call esi
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x50]
mov dword [0x4c801c], 1
jmp 0x412096
push ebx
call edi
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x50]
mov dword [0x4c801c], 1
jmp 0x412096
mov ecx, ebx
nop dword [eax + eax]
mov al, byte [ecx]
cmp al, 0x20
je 0x411b9a
cmp al, 9
jne 0x411b9d
inc ecx
jmp 0x411b90
test al, al
je 0x411be1
cmp al, 0x2d
je 0x411ba9
cmp al, 0x2b
jne 0x411bb0
lea eax, [ecx + 1]
mov ecx, eax
mov al, byte [eax]
cmp al, 0x30
jne 0x411be1
mov al, byte [ecx + 1]
cmp al, 0x78
je 0x411bbf
cmp al, 0x58
jne 0x411be1
movsx eax, byte [ecx + 2]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isxdigit]
add esp, 4
test eax, eax
je 0x411be1
push 0x10
push 0
push ebx
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
add esp, 0xc
jmp 0x411beb
push ebx
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov edx, 1
mov ecx, eax
call fcn.00401730
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x50]
mov dword [0x4c801c], 1
jmp 0x412096
cmp eax, 1
jne 0x411c72
cmp dword [ebp + 0x58], 1
je 0x411fcc
mov ecx, dword [ebp + 0x7c]
test ecx, ecx
je 0x411c51
test edi, edi
jle 0x411fcc
mov esi, dword [sym.imp.USER32.dll_PostMessageA]
movsx eax, byte [ebx]
push 0
push eax
push 0x102
push ecx
call esi
mov ecx, dword [ebp + 0x7c]
sub edi, 1
jne 0x411c30
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x50]
jmp 0x412096
mov al, byte [ebp + 0x68]
mov edx, edi
or al, byte [ebp + 0x6f]
mov cl, byte [ebx]
movzx eax, al
push eax
call fcn.00412580
mov bh, byte [ebp + 0x6f]
add esp, 4
mov edi, dword [ebp + 0x50]
jmp 0x412096
cmp dword [ebp + 0x7c], 0
mov ecx, ebx
mov esi, dword [ebp + 0x34]
mov edx, esi
sete al
movzx eax, al
push eax
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp + 0x58]
push eax
call fcn.00415ff0
mov bl, al
add esp, 0xc
mov byte [ebp + 0x6e], bl
test bl, bl
je 0x411d8e
cmp dword [ebp + 0x7c], 0
mov esi, dword [ebp + 0x58]
jne 0x411cba
test esi, esi
jne 0x411cb3
mov byte [ebp + 0x67], bl
jmp 0x411cba
mov cl, bl
call fcn.00410d20
cmp dword [0x4cd100], 0
je 0x411cca
mov al, byte [0x4cd0f4]
jmp 0x411cd1
xor cl, cl
call fcn.004154e0
mov ecx, dword [ebp + 0x7c]
mov dl, al
mov bh, byte [ebp + 0x54]
push 0xffc3d44d
push 0
push 0
push ecx
mov cl, bh
mov byte [ebp + 0x6f], bh
call fcn.00414db0
add esp, 0x10
test edi, edi
jle 0x411fcf
nop dword [eax + eax]
push 0xffc3d44d
push 1
push dword [ebp + 0x7c]
mov dl, bl
mov ecx, esi
push 0
call fcn.00412a10
add esp, 0x10
cmp dword [0x4cd100], 0
jne 0x411d7d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4c8024]
sub eax, dword [0x4cce94]
cmp eax, dword [ecx + 0xb8]
jbe 0x411d7d
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x411d72
mov edx, 1
mov dword [0x4c801c], 0
or ecx, 0xffffffff
call fcn.00401730
mov dword [0x4c801c], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4cce94], eax
sub edi, 1
jne 0x411d00
mov edi, dword [ebp + 0x50]
jmp 0x412096
cmp esi, 4
jbe 0x411e01
mov ebx, dword [ebp + 0x60]
push 4
push str.ASC
push ebx
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbicmp]
mov edi, dword [ebp + 0x7c]
add esp, 0xc
test eax, eax
jne 0x411e0c
test edi, edi
jne 0x411e0c
lea ecx, [ebx + 3]
mov al, byte [ecx]
cmp al, 0x20
je 0x411dbf
cmp al, 9
jne 0x411dc2
inc ecx
jmp 0x411db5
call fcn.004126b0
cmp dword [0x4cd100], 2
mov eax, dword [0x4c8024]
jne 0x411deb
mov ecx, dword [eax + 0x60]
call fcn.004149b0
mov bh, byte [ebp + 0x54]
mov edi, dword [ebp + 0x50]
mov byte [ebp + 0x6f], bh
jmp 0x412096
mov ecx, dword [eax + 0x5c]
call fcn.004149b0
mov bh, byte [ebp + 0x54]
mov edi, dword [ebp + 0x50]
mov byte [ebp + 0x6f], bh
jmp 0x412096
cmp esi, 2
jbe 0x411df3
mov ebx, dword [ebp + 0x60]
mov edi, dword [ebp + 0x7c]
push 2
push 0x4bbba8
push ebx
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbicmp]
add esp, 0xc
test eax, eax
jne 0x411df3
push 0x10
push eax
lea eax, [ebx + 2]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
mov edx, eax
add esp, 0xc
cmp edx, 0x10000
jb 0x411e66
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 0x411e6b
movzx ecx, dx
xor esi, esi
mov bh, byte [ebp + 0x54]
mov byte [ebp + 0x6f], bh
test edi, edi
je 0x411ea0
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 0x411ee1
push 0
movzx eax, si
push eax
push 0x102
push dword [ebp + 0x7c]
call edi
jmp 0x411ee1
cmp dword [0x4cd100], 2
je 0x411ec5
mov bl, byte [ebp + 0x68]
or bl, bh
mov dl, bl
call fcn.00410da0
test si, si
je 0x411ee1
mov dl, bl
mov ecx, esi
call fcn.00410da0
jmp 0x411ee1
push 0xa
lea eax, [ebp - 3]
mov byte [ebp - 4], 0x30
push eax
push edx
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itoa]
add esp, 0xc
lea ecx, [ebp - 4]
call fcn.004126b0
cmp dword [0x4cd100], 2
mov eax, dword [0x4c8024]
jne 0x411eff
mov ecx, dword [eax + 0x60]
call fcn.004149b0
mov edi, dword [ebp + 0x50]
jmp 0x412096
mov ecx, dword [eax + 0x5c]
call fcn.004149b0
mov edi, dword [ebp + 0x50]
jmp 0x412096
push 0
mov edx, esi
mov cl, bh
call fcn.004156f0
mov bl, al
add esp, 4
mov eax, dword [ebp + 0x58]
mov byte [ebp + 0xc], bl
test bl, bl
je 0x411fa5
cmp dword [ebp + 0x7c], 0
jne 0x411fa5
test eax, eax
jne 0x411f5d
mov ecx, dword [ebp + 0x40]
mov byte [ebp + 0x67], bh
cmp ecx, 1
jne 0x411f4b
mov cl, byte [ebp + 0x6f]
or byte [0x4cd08e], bl
or cl, bl
jmp 0x411f9f
cmp ecx, 2
jne 0x411f56
or byte [0x4cd08f], bl
mov cl, byte [ebp + 0x6f]
or cl, bl
jmp 0x411f9f
cmp eax, 1
jne 0x411fa5
mov cl, bh
call fcn.00410d20
mov al, byte [ebp + 0x6c]
not bl
and byte [0x4cd08f], bl
mov cl, bl
and cl, byte [0x4cd08e]
and al, bl
mov byte [0x4cd08e], cl
mov byte [ebp + 0x6c], al
cmp bh, 0xa5
jne 0x411f9a
cmp dword [0x4cd0e4], 3
jne 0x411f9a
and al, 0xfe
mov byte [ebp + 0x6c], al
or cl, al
mov eax, dword [ebp + 0x58]
mov byte [ebp + 0x54], 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 + 0x54]
push dword [ebp + 0x68]
call fcn.004123d0
add esp, 0x24
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x50]
jmp 0x412096
cmp eax, 2
jne 0x412016
movsx eax, byte [edi]
add eax, 0xfffffff8
cmp eax, 5
ja case.0x411fe7.11
jmp dword [eax*4 + 0x4123ac]
cmp byte [edi + 1], 0xa
lea eax, [edi + 1]
cmove edi, eax
mov al, 0xd
mov byte [ebp + 0x6e], al
jmp 0x41203f
mov al, 8
mov byte [ebp + 0x6e], al
jmp 0x41203f
mov al, 9
mov byte [ebp + 0x6e], al
jmp 0x41203f
mov byte [ebp + 0x6e], 0
jmp 0x412069
mov eax, dword [ebp + 0x4c]
or bl, bh
je 0x412022
test eax, eax
jne 0x412022
mov al, 1
jmp 0x412024
xor al, al
mov cl, byte [edi]
lea edx, [ebp + 0x68]
push eax
push dword [0x4cd0e0]
call fcn.00415e40
add esp, 8
mov byte [ebp + 0x6e], al
test al, al
je 0x412066
push 0
push SysReAllocString
push SysReAllocString
push esi
push 0
push 2
push 1
push dword [ebp + 0x54]
xor edx, edx
mov cl, al
push dword [ebp + 0x68]
call fcn.004123d0
add esp, 0x24
jmp 0x412096
mov bl, byte [ebp + 0x68]
mov cl, byte [edi]
test esi, esi
je 0x412083
push 0
movsx eax, cl
push eax
push 0x102
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x412096
or bl, bh
mov edx, 1
movzx eax, bl
push eax
call fcn.00412580
add esp, 4
xor bl, bl
mov byte [ebp + 0x68], bl
mov al, byte [ebp + 0x67]
inc edi
mov byte [0x4cd08d], al
cmp byte [edi], 0
jne 0x4114d0
cmp dword [0x4cd100], 0
je 0x412158
or esi, 0xffffffff
cmp byte [0x4cd0f6], 0
mov dword [ebp + 0x40], esi
jne 0x412117
cmp dword [0x4cd0e8], 0
jbe 0x412117
cmp byte [0x4cd104], 0
je 0x4120df
xor bl, bl
jmp 0x4120e7
mov bl, byte [ebp + 0x66]
not bl
and bl, byte [ebp + 0x6d]
or bl, byte [0x4cd08f]
mov dl, byte [0x4cd0f4]
or bl, bh
push 0xffc3d44d
push 1
push 1
push 0
mov cl, bl
call fcn.00414db0
add esp, 0x10
lea ecx, [ebp + 0x40]
mov dl, bl
call fcn.004147b0
mov esi, dword [ebp + 0x40]
cmp dword [0x4cd100], 1
mov eax, 0x5dc
mov ecx, 0x1f4
cmove eax, ecx
cmp dword [0x4cd0ec], eax
jbe 0x412142
push dword [0x4cb224]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov ecx, esi
mov dword [0x4cd100], 0
call fcn.004149b0
jmp 0x4121e4
cmp dword [0x4ca774], 0
je 0x41216c
mov cl, byte [0x4cb0bc]
mov dl, byte [ebp + 0x6d]
jmp 0x412195
cmp dword [0x4c9224], 0
jl 0x412190
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4cce54]
cmp eax, dword [0x4c9224]
jb 0x412190
mov dl, byte [ebp + 0x6d]
xor cl, cl
jmp 0x412195
mov dl, byte [ebp + 0x6d]
mov cl, dl
or cl, byte [0x4cd08f]
cmp byte [0x4cd104], 0
je 0x4121b6
mov al, cl
xor al, dl
mov bl, al
and al, cl
and bl, dl
not bl
and bl, bh
or bl, al
jmp 0x4121bf
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.004154e0
or al, byte [0x4cb0af]
mov cl, bl
mov dl, al
call fcn.00414db0
add esp, 0x10
cmp dword [0x4ca774], 0
je 0x412207
mov cl, byte [0x4cb0bd]
mov al, cl
xor al, byte [0x4cb0be]
and al, cl
not al
and cl, al
mov byte [0x4cb0bd], cl
cmp dword [ebp + 0x18], 1
jne 0x412219
mov edx, 1
mov cl, 0x14
call fcn.00414ca0
cmp byte [ebp + 0x5f], 0
je 0x412230
push 0
push dword [ebp + 0x14]
push dword [0x4cc810]
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp + 0x5e], 0
je 0x41224b
cmp byte [ebp + 0x4b], 0
jne 0x41224b
push 0
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x4ca7e6], 0
mov eax, dword [ebp + 0x78]
test eax, eax
jne 0x4122d9
mov eax, dword [ebp + 8]
cmp dword [0x4cce90], eax
je 0x412316
cmp dword [0x4c801c], 0
je 0x412316
cmp dword [0x4ca63c], 0
jne 0x412316
mov ecx, dword [0x4c8024]
cmp byte [ecx + 0xcc], 0
jne 0x4122ca
cmp byte [ecx + 0xce], 0
jne 0x4122c1
cmp dword [ecx + 0xc0], 0xffffffff
jle 0x4122c1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4c8024]
sub eax, dword [ecx + 0xbc]
cmp eax, dword [ecx + 0xc0]
jb 0x4122c1
mov byte [ecx + 0xcc], 1
cmp byte [ecx + 0xcc], 0
je 0x412316
mov edx, 1
or ecx, 0xffffffff
call fcn.00401730
jmp 0x412316
cmp eax, 1
jne 0x412316
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4cc810]
jne 0x412316
mov edx, 1
mov dword [0x4c801c], 0
or ecx, 0xffffffff
call fcn.00401730
mov dword [0x4c801c], 1
mov eax, dword [ebp + 0x44]
mov ecx, dword [ebp + 4]
mov dword [eax + 0x5c], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x64], ecx
lea esp, [ebp - 0x60]
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x70]
pop ebp
ret