Function at 0x40186a
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x42a040]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
movzx ecx, ax
push esi
push edi
cmp ecx, 0x302
ja 0x4019b0
je 0x401955
sub ecx, 0x10b
je 0x40191c
sub ecx, 1
je 0x40174c
sub ecx, 1
jne case.default.0x401763
shr eax, 0x10
test eax, eax
jne case.default.0x401763
push 2
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_EndDialog]
jmp case.default.0x401763
shr eax, 0x10
test eax, eax
jne case.default.0x401763
mov eax, dword [ebx + 0x44]
cmp eax, 3
ja case.default.0x401763
jmp dword [eax*4 + 0x4019f4]
mov ecx, ebx
call fcn.004026a0
jmp case.default.0x401763
mov ecx, ebx
call fcn.00402cc0
test eax, eax
je 0x40178d
mov ecx, ebx
call fcn.00402530
jmp case.default.0x401763
dec dword [ebx + 0x44]
jmp case.default.0x401763
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x10d
push dword [ebx + 4]
call edi
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push eax
call esi
push 0x10c
push dword [ebx + 4]
call edi
push 0
push eax
call esi
push 0x10b
push dword [ebx + 4]
call edi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call esi
push 0x301
push dword [ebx + 4]
call edi
push 0
push eax
call esi
push 0x302
push dword [ebx + 4]
call edi
push 0
push eax
call esi
push 0x303
push dword [ebx + 4]
call edi
push 0
push eax
call esi
push 0x304
push dword [ebx + 4]
call edi
push 0
push eax
call esi
push 0x305
push dword [ebx + 4]
call edi
push 0
push eax
call esi
push 0x306
push dword [ebx + 4]
call edi
push 0
push eax
call esi
push 0x401
push dword [ebx + 4]
call edi
push 5
push eax
call esi
push 0
push 0
push dword [ebx + 4]
push 0x402ec0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x40185e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x44], 3
jmp case.default.0x401763
push 0x208
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0040fb70
add esp, 0xc
lea eax, [esp + 0x10]
push 0x104
push eax
push 0x10c
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
push 0x422540
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x40190c
call fcn.00408f70
test eax, eax
je 0x40190c
mov esi, dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x402660
push 5
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
push 0x24
push str.yrR
push 0x4224b0
push esi
mov dword [0x42b748], eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
push dword [ebx + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_EndDialog]
xor eax, eax
mov ecx, 2
cmp esi, 6
cmovne ecx, eax
push ecx
call fcn.00409700
add esp, 4
jmp case.default.0x401763
push 1
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_EndDialog]
jmp case.default.0x401763
shr eax, 0x10
test eax, eax
jne case.default.0x401763
mov eax, dword [ebx + 0x44]
sub eax, 1
je 0x401949
sub eax, 1
jne case.default.0x401763
cmp dword [ebx + 0x30], eax
jne 0x401949
mov ecx, ebx
call fcn.00402430
jmp case.default.0x401763
mov ecx, ebx
call fcn.00402310
jmp case.default.0x401763
shr eax, 0x10
cmp eax, 0x300
jne case.default.0x401763
push 0x208
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0040fb70
add esp, 0xc
lea eax, [esp + 0x10]
push 0x104
push eax
push 0x302
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
push 0x4221ac
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x10]
push eax
push 0x305
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
jmp case.default.0x401763
sub ecx, 0x303
je 0x4019c8
sub ecx, 3
jne case.default.0x401763
shr eax, 0x10
test eax, eax
jne case.default.0x401763
push 1
jmp 0x4019d0
shr eax, 0x10
test eax, eax
jne case.default.0x401763
push eax
mov ecx, ebx
call fcn.00402b50
mov ecx, dword [esp + 0x21c]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040e852
mov esp, ebp
pop ebp
ret 0x10