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

Disassembly:
mov eax, 0x42121c
call fcn.0041ef90
mov eax, 0x400c
call fcn.0041efe0
mov edx, dword [0x44030c]
push ebx
push esi
mov ebx, ecx
mov esi, 0x3ff
push edi
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x3014]
mov dword [ebp - 0x3018], edx
cmp dword [ebp + 0xc], eax
mov dword [ebp - 0x1018], edx
rep stosd dword es:[edi], eax
mov ecx, esi
lea edi, [ebp - 0x1014]
rep stosd dword es:[edi], eax
mov ecx, esi
lea edi, [ebp - 0x4014]
mov dword [ebp - 0x4018], edx
rep stosd dword es:[edi], eax
je 0x4181a3
push dword [ebp + 0xc]
lea eax, [ebp - 0x3018]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x3018]
mov ecx, ebx
push eax
call fcn.0041804a
mov ebx, eax
lea eax, [ebp - 0x4018]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x1018]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x1018]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jg 0x4181e7
xor eax, eax
jmp 0x4183ba
mov eax, dword [0x44030c]
mov ecx, esi
mov dword [ebp - 0x2018], eax
xor eax, eax
lea edi, [ebp - 0x2014]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1018]
push eax
lea eax, [ebp - 0x2018]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x2018]
push eax
call fcn.00417e90
lea eax, [ebp - 0x2018]
push eax
call fcn.00417e58
pop ecx
test eax, eax
pop ecx
jle 0x418268
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
xor ecx, ecx
and eax, 1
cmp dword [ebp + 8], ecx
je 0x418248
mov eax, dword [ebp + 8]
neg eax
sbb eax, eax
push ecx
and eax, str.runas
push eax
lea eax, [ebp - 0x2018]
push ecx
push eax
call fcn.00418093
add esp, 0x10
jmp 0x4183ba
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor esi, esi
cmp word [ebx], 0x22
mov dword [ebp + 0xc], esi
jne 0x418291
push 1
pop ecx
cmp eax, ecx
jle 0x418291
lea edx, [ebx + 2]
cmp word [edx], 0x22
je 0x4182a8
inc ecx
inc edx
inc edx
cmp ecx, eax
jl 0x418284
xor ecx, ecx
cmp eax, esi
jle 0x4182c1
mov edx, ebx
cmp word [edx], 0x20
je 0x4182b6
inc ecx
inc edx
inc edx
cmp ecx, eax
jl 0x418299
jmp 0x4182c1
lea eax, [ebx + ecx*2 + 4]
mov word [ebx + ecx*2 + 2], si
mov dword [ebp + 0xc], eax
jmp 0x4182c1
lea eax, [ebx + ecx*2 + 2]
mov word [ebx + ecx*2], si
mov dword [ebp + 0xc], 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 0x4182dc
mov esi, dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.00417e90
pop ecx
lea eax, [ebp - 0x1018]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41831a
neg esi
sbb esi, esi
push edi
and esi, str.runas
lea eax, [ebp - 0x1018]
push esi
push edi
push eax
call fcn.00418093
add esp, 0x10
mov esi, eax
jmp 0x4183b8
lea ecx, [ebp - 0x18]
call sub.MFC42u.DLL_CString::CString_3
and byte [ebp - 0xe], 0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
mov byte [ebp - 0x14], 0x73
mov byte [ebp - 0x13], 0x68
mov byte [ebp - 0x12], 0x65
mov byte [ebp - 0x11], 0x6c
mov byte [ebp - 0x10], 0x6c
mov byte [ebp - 0xf], 0x3a
call fcn.0041ec12
push ebx
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::MakeLower
push dword [ebp - 0x18]
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::Find
test eax, eax
push edi
jne 0x418387
neg esi
sbb esi, esi
lea eax, [ebp - 0x4018]
and esi, str.runas
push esi
push edi
push eax
jmp 0x418396
neg esi
sbb esi, esi
and esi, str.runas
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00418093
and byte [ebp - 4], 0
add esp, 0x10
lea ecx, [ebp + 8]
mov esi, eax
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42u.DLL_CString::CString
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8