Function at 0x418aac
Capabilities:
Check if file exists
Get common file path
Print debug messages

Disassembly:
push 0x4e0
mov eax, 0x487606
call fcn.0044465a
mov eax, dword [ebp + 8]
mov edi, str.wfchost.exe
push edi
mov dword [ebp - 0x49c], eax
xor ebx, ebx
lea eax, [ebp - 0x440]
push ebx
push eax
call fcn.00421651
add esp, 0xc
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x428], 8
mov eax, dword [ebp - 0x43c]
jae 0x418af4
lea eax, [ebp - 0x43c]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
test eax, eax
jne 0x418b86
push 0x206
mov word [ebp - 0x424], ax
lea eax, [ebp - 0x422]
push ebx
push eax
call fcn.00444cd0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x424]
push eax
mov ebx, edi
xor ecx, ecx
call fcn.0041bf89
lea eax, [ebp - 0x424]
push eax
call esi
test eax, eax
jne 0x418b5c
xor edi, edi
xor ebx, ebx
push ebx
push 1
lea esi, [ebp - 0x440]
call fcn.00403d0d
mov eax, edi
jmp 0x419055
lea eax, [ebp - 0x424]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x418b65
sub eax, edx
sar eax, 1
lea ecx, [ebp - 0x424]
lea esi, [ebp - 0x440]
call fcn.00404506
xor ebx, ebx
push ebx
cmp dword [ebp - 0x49c], ebx
je 0x419046
push ebx
lea eax, [ebp - 0x4b4]
call fcn.0042a348
push str._u7b:_6R_vN
lea esi, [ebp - 0x4ec]
mov byte [ebp - 4], 3
call fcn.004034dc
mov eax, esi
push eax
lea eax, [ebp - 0x4d0]
push eax
mov byte [ebp - 4], 4
call fcn.0040129f
sub esp, 0x10
mov byte [ebp - 4], 5
mov edx, eax
mov esi, esp
mov dword [ebp - 0x498], esp
call fcn.0042949c
lea eax, [ebp - 0x4b4]
push eax
mov edx, str.title
mov byte [ebp - 4], 6
call fcn.0042a627
mov edi, eax
mov byte [ebp - 4], 5
call fcn.004296ef
push ebx
push 1
lea ecx, [ebp - 0x4d0]
call fcn.00403c15
push ebx
push 1
lea esi, [ebp - 0x4ec]
mov byte [ebp - 4], 3
call fcn.00403d0d
push dword [ebp - 0x49c]
lea esi, [ebp - 0x4ec]
call fcn.004034dc
mov eax, esi
push eax
lea eax, [ebp - 0x4d0]
push eax
mov byte [ebp - 4], 7
call fcn.0040129f
sub esp, 0x10
mov byte [ebp - 4], 8
mov edx, eax
mov esi, esp
mov dword [ebp - 0x498], esp
call fcn.0042949c
lea eax, [ebp - 0x4b4]
push eax
mov edx, str.content
mov byte [ebp - 4], 9
call fcn.0042a627
mov edi, eax
mov byte [ebp - 4], 8
call fcn.004296ef
push ebx
push 1
lea ecx, [ebp - 0x4d0]
call fcn.00403c15
push ebx
push 1
lea esi, [ebp - 0x4ec]
mov byte [ebp - 4], 3
call fcn.00403d0d
push 0x492328
lea esi, [ebp - 0x4ec]
call fcn.004034dc
mov byte [ebp - 4], 0xa
mov eax, esi
push eax
lea eax, [ebp - 0x4d0]
push eax
call fcn.0040129f
sub esp, 0x10
mov byte [ebp - 4], 0xb
mov edx, eax
mov esi, esp
mov dword [ebp - 0x498], esp
call fcn.0042949c
lea eax, [ebp - 0x4b4]
push eax
mov edx, str.btnText
mov byte [ebp - 4], 0xc
call fcn.0042a627
mov edi, eax
mov byte [ebp - 4], 0xb
call fcn.004296ef
push ebx
push 1
lea ecx, [ebp - 0x4d0]
call fcn.00403c15
push ebx
push 1
lea esi, [ebp - 0x4ec]
mov byte [ebp - 4], 3
call fcn.00403d0d
push str.rtmessage.png
lea esi, [ebp - 0x4ec]
call fcn.004034dc
mov eax, esi
push eax
lea eax, [ebp - 0x4d0]
push eax
mov byte [ebp - 4], 0xd
call fcn.0040129f
sub esp, 0x10
mov byte [ebp - 4], 0xe
mov edx, eax
mov esi, esp
mov dword [ebp - 0x498], esp
call fcn.0042949c
lea eax, [ebp - 0x4b4]
push eax
mov edx, str.icoName
mov byte [ebp - 4], 0xf
call fcn.0042a627
mov edi, eax
mov byte [ebp - 4], 0xe
call fcn.004296ef
push ebx
push 1
lea ecx, [ebp - 0x4d0]
call fcn.00403c15
push ebx
push 1
lea esi, [ebp - 0x4ec]
call fcn.00403d0d
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x498], esp
push 1
call fcn.004293d6
lea eax, [ebp - 0x4b4]
push eax
mov edx, str.showNotAlert
mov byte [ebp - 4], 0x19
call fcn.0042a627
mov edi, eax
mov byte [ebp - 4], 3
call fcn.004296ef
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x498], esp
push ebx
call fcn.004293d6
lea eax, [ebp - 0x4b4]
push eax
mov edx, str.runas
mov byte [ebp - 4], 0x1a
call fcn.0042a627
mov edi, eax
mov byte [ebp - 4], 3
call fcn.004296ef
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x498], esp
push ebx
call fcn.004293d6
lea eax, [ebp - 0x4b4]
push eax
mov edx, str.fullscreen
mov byte [ebp - 4], 0x1e
call fcn.0042a627
mov edi, eax
mov byte [ebp - 4], 3
call fcn.004296ef
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x498], esp
push ebx
call fcn.004293d6
lea eax, [ebp - 0x4b4]
push eax
mov edx, str.closeExpired
mov byte [ebp - 4], 0x1f
call fcn.0042a627
mov edi, eax
mov byte [ebp - 4], 3
call fcn.004296ef
lea esi, [ebp - 0x494]
call fcn.0040d703
xor eax, eax
mov byte [ebp - 4], 0x20
push 0x206
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push ebx
push eax
call fcn.00444cd0
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x4d0]
call fcn.0041b415
cmp dword [eax + 0x18], 8
jb 0x418e9e
mov eax, dword [eax + 4]
jmp 0x418ea1
add eax, 4
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor edi, edi
push ebx
inc edi
push edi
lea esi, [ebp - 0x4d0]
call fcn.00403d0d
lea eax, [ebp - 0x4b4]
push eax
lea ecx, [ebp - 0x4d0]
call fcn.0042aa9b
push eax
lea eax, [ebp - 0x478]
push eax
mov byte [ebp - 4], 0x22
call fcn.00439e09
pop ecx
pop ecx
push ebx
push edi
lea ecx, [ebp - 0x4d0]
mov byte [ebp - 4], 0x24
call fcn.00403c15
cmp dword [ebp - 0x460], 0x10
mov eax, dword [ebp - 0x474]
jae 0x418f0a
lea eax, [ebp - 0x474]
push dword [ebp - 0x464]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0041c03b
lea eax, [ebp - 0x21c]
push eax
call fcn.0041d6f4
cmp dword [ebp - 0x428], 8
mov eax, dword [ebp - 0x43c]
jae 0x418f3e
lea eax, [ebp - 0x43c]
lea ecx, [ebp - 0x21c]
push ecx
push eax
push str.__ls___common__ls
lea ecx, [ebp - 0x45c]
call fcn.0041dbb7
add esp, 0xc
push ebx
mov byte [ebp - 4], 0x25
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x444], 8
mov eax, dword [ebp - 0x458]
jae 0x418f79
lea eax, [ebp - 0x458]
push eax
call fcn.0041cd02
cmp eax, ebx
jne 0x418fb8
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
je 0x418f99
call esi
cmp eax, 0x522
jne 0x418ff9
cmp dword [ebp - 0x444], 8
mov eax, dword [ebp - 0x458]
jae 0x418fae
lea eax, [ebp - 0x458]
push eax
call fcn.0041ca8f
cmp eax, ebx
je 0x418ff9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
lea esi, [ebp - 0x45c]
call fcn.00403d0d
push ebx
push edi
lea ecx, [ebp - 0x478]
call fcn.00403c15
push ebx
push edi
lea ecx, [ebp - 0x494]
call fcn.00403c15
lea esi, [ebp - 0x4b4]
mov byte [ebp - 4], bl
call fcn.0042966c
jmp 0x418b47
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.ShowClientNotify_failed:
call esi
push str._u7b:_6R_vN
call esi
push ebx
push edi
lea esi, [ebp - 0x45c]
call fcn.00403d0d
push ebx
push edi
lea ecx, [ebp - 0x478]
call fcn.00403c15
push ebx
push edi
lea ecx, [ebp - 0x494]
call fcn.00403c15
lea esi, [ebp - 0x4b4]
mov byte [ebp - 4], bl
call fcn.0042966c
push ebx
push edi
jmp 0x419048
push 1
lea esi, [ebp - 0x440]
call fcn.00403d0d
xor eax, eax
call fcn.004446dd
ret