Function at 0x411474
Capabilities:
Check if file exists
Get file attributes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4008
call fcn.00416200
mov edx, dword [0x434820]
push ebx
push esi
mov ebx, ecx
mov esi, 0x3ff
push edi
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x2004]
mov dword [ebp - 0x2008], edx
rep stosd dword es:[edi], eax
mov ecx, esi
lea edi, [ebp - 0x1004]
mov dword [ebp - 0x1008], edx
mov dword [ebp - 0x4008], edx
rep stosd dword es:[edi], eax
mov ecx, esi
lea edi, [ebp - 0x4004]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2008]
push 0x800
push eax
push 0x410
push dword [ebx + 0x45038]
mov dword [ebp - 8], ebx
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
cmp dword [ebp + 0xc], 0
je 0x4114f9
push dword [ebp + 0xc]
lea eax, [ebp - 0x2008]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x2008]
push eax
call fcn.00411193
pop ecx
mov ebx, eax
lea eax, [ebp - 0x4008]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x1008]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x1008]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jg 0x41153c
xor eax, eax
jmp 0x411714
mov eax, dword [0x434820]
mov ecx, esi
mov dword [ebp - 0x3008], eax
xor eax, eax
lea edi, [ebp - 0x3004]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x3008]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x3008]
push eax
call fcn.004111e0
lea eax, [ebp - 0x3008]
push eax
call fcn.00411412
pop ecx
test eax, eax
pop ecx
jle 0x4115bd
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
xor ecx, ecx
and eax, 1
cmp dword [ebp + 8], ecx
je 0x41159d
mov eax, dword [ebp + 8]
neg eax
sbb eax, eax
push ecx
and eax, str.runas
push eax
lea eax, [ebp - 0x3008]
push ecx
push eax
call fcn.0040e1c1
add esp, 0x10
jmp 0x411714
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor esi, esi
cmp word [ebx], 0x22
mov dword [ebp - 4], esi
jne 0x4115e6
push 1
pop ecx
cmp eax, ecx
jle 0x4115e6
lea edx, [ebx + 2]
cmp word [edx], 0x22
je 0x4115fd
inc ecx
inc edx
inc edx
cmp ecx, eax
jl 0x4115d9
xor ecx, ecx
cmp eax, esi
jle 0x411616
mov edx, ebx
cmp word [edx], 0x20
je 0x41160b
inc ecx
inc edx
inc edx
cmp ecx, eax
jl 0x4115ee
jmp 0x411616
lea eax, [ebx + ecx*2 + 4]
mov word [ebx + ecx*2 + 2], si
mov dword [ebp - 4], eax
jmp 0x411616
lea eax, [ebx + ecx*2 + 2]
mov word [ebx + ecx*2], si
mov dword [ebp - 4], eax
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov si, ax
xor edi, edi
shr esi, 0xf
and esi, 1
cmp dword [ebp + 8], edi
je 0x411631
mov esi, dword [ebp + 8]
push dword [ebp - 4]
call fcn.004111e0
pop ecx
lea eax, [ebp - 0x1008]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x411661
neg esi
sbb esi, esi
push edi
and esi, str.runas
lea eax, [ebp - 0x1008]
push esi
push edi
jmp 0x4116ca
mov ax, word [ebx]
cmp ax, 0x73
je 0x411670
cmp ax, 0x53
jne 0x4116cd
mov ax, word [ebx + 2]
cmp ax, 0x68
je 0x411680
cmp ax, 0x48
jne 0x4116cd
mov ax, word [ebx + 4]
cmp ax, 0x65
je 0x411690
cmp ax, 0x45
jne 0x4116cd
mov ax, word [ebx + 6]
cmp ax, 0x6c
je 0x4116a0
cmp ax, 0x4c
jne 0x4116cd
mov ax, word [ebx + 8]
cmp ax, 0x6c
je 0x4116b0
cmp ax, 0x4c
jne 0x4116cd
cmp word [ebx + 0xa], 0x3a
jne 0x4116cd
neg esi
sbb esi, esi
push edi
and esi, str.runas
lea eax, [ebp - 0x4008]
push esi
push edi
push eax
jmp 0x4116dd
neg esi
sbb esi, esi
push edi
and esi, str.runas
push esi
push dword [ebp - 4]
push ebx
call fcn.0040e1c1
add esp, 0x10
mov esi, eax
lea eax, [ebp - 0x1008]
push eax
push str.last_run
call fcn.0040c0f4
pop ecx
cmp esi, edi
pop ecx
je 0x411712
cmp dword [ebp + 0xc], edi
jne 0x411712
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x1008]
push eax
call fcn.00411cb0
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8