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

Disassembly:
push 0x4e8
mov eax, 0x1004f316
call fcn.100352ea
mov eax, dword [ebp + 8]
mov dword [ebp - 0x498], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x49c], eax
mov eax, dword [ebp + 0x10]
mov esi, str.wfchost.exe
push esi
mov dword [ebp - 0x4bc], eax
xor ebx, ebx
lea eax, [ebp - 0x43c]
push ebx
push eax
call fcn.1002b3aa
add esp, 0xc
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x424], 8
mov eax, dword [ebp - 0x438]
jae 0x100013b3
lea eax, [ebp - 0x438]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
jne 0x1000143a
push 0x206
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push ebx
push eax
call fcn.10035590
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
mov ebx, esi
call fcn.10019b00
lea eax, [ebp - 0x420]
push eax
call edi
test eax, eax
jne 0x10001410
xor edi, edi
xor ebx, ebx
push ebx
push 1
lea esi, [ebp - 0x43c]
call fcn.10003179
mov eax, edi
jmp 0x10001963
lea eax, [ebp - 0x420]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10001419
sub eax, edx
sar eax, 1
lea ecx, [ebp - 0x420]
lea esi, [ebp - 0x43c]
call fcn.10003539
xor ebx, ebx
cmp dword [ebp - 0x498], ebx
je 0x10001953
cmp dword [ebp - 0x49c], ebx
je 0x10001953
push ebx
push ebx
lea eax, [ebp - 0x4b8]
call fcn.10022118
push dword [ebp - 0x498]
lea esi, [ebp - 0x4d8]
mov byte [ebp - 4], 3
call fcn.10002ca9
mov eax, esi
push eax
lea eax, [ebp - 0x4f4]
push eax
mov byte [ebp - 4], 4
call fcn.10001237
sub esp, 0x10
mov byte [ebp - 4], 5
mov edx, eax
mov esi, esp
mov dword [ebp - 0x494], esp
call fcn.100212ab
lea eax, [ebp - 0x4b8]
push eax
mov edx, str.title
mov byte [ebp - 4], 6
call fcn.100223b6
mov edi, eax
mov byte [ebp - 4], 5
call fcn.100214fe
push ebx
push 1
lea ecx, [ebp - 0x4f4]
call fcn.10003081
push ebx
push 1
lea esi, [ebp - 0x4d8]
mov byte [ebp - 4], 3
call fcn.10003179
push dword [ebp - 0x49c]
lea esi, [ebp - 0x4d8]
call fcn.10002ca9
mov eax, esi
push eax
lea eax, [ebp - 0x4f4]
push eax
mov byte [ebp - 4], 7
call fcn.10001237
sub esp, 0x10
mov byte [ebp - 4], 8
mov edx, eax
mov esi, esp
mov dword [ebp - 0x494], esp
call fcn.100212ab
lea eax, [ebp - 0x4b8]
push eax
mov edx, str.content
mov byte [ebp - 4], 9
call fcn.100223b6
mov edi, eax
mov byte [ebp - 4], 8
call fcn.100214fe
push ebx
push 1
lea ecx, [ebp - 0x4f4]
call fcn.10003081
push ebx
push 1
lea esi, [ebp - 0x4d8]
mov byte [ebp - 4], 3
call fcn.10003179
push 0x100540a0
lea esi, [ebp - 0x4d8]
call fcn.10002ca9
mov byte [ebp - 4], 0xa
mov eax, esi
push eax
lea eax, [ebp - 0x4f4]
push eax
call fcn.10001237
sub esp, 0x10
mov byte [ebp - 4], 0xb
mov edx, eax
mov esi, esp
mov dword [ebp - 0x494], esp
call fcn.100212ab
lea eax, [ebp - 0x4b8]
push eax
mov edx, str.btnText
mov byte [ebp - 4], 0xc
call fcn.100223b6
mov edi, eax
mov byte [ebp - 4], 0xb
call fcn.100214fe
push ebx
push 1
lea ecx, [ebp - 0x4f4]
call fcn.10003081
push ebx
push 1
lea esi, [ebp - 0x4d8]
mov byte [ebp - 4], 3
call fcn.10003179
push str.rtmessage.png
lea esi, [ebp - 0x4d8]
call fcn.10002ca9
mov eax, esi
push eax
lea eax, [ebp - 0x4f4]
push eax
mov byte [ebp - 4], 0xd
call fcn.10001237
sub esp, 0x10
mov byte [ebp - 4], 0xe
mov edx, eax
mov esi, esp
mov dword [ebp - 0x494], esp
call fcn.100212ab
lea eax, [ebp - 0x4b8]
push eax
mov edx, str.icoName
mov byte [ebp - 4], 0xf
call fcn.100223b6
mov edi, eax
mov byte [ebp - 4], 0xe
call fcn.100214fe
push ebx
push 1
lea ecx, [ebp - 0x4f4]
call fcn.10003081
push ebx
push 1
lea esi, [ebp - 0x4d8]
call fcn.10003179
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x494], esp
push ebx
call fcn.100211e5
lea eax, [ebp - 0x4b8]
push eax
mov edx, str.showNotAlert
mov byte [ebp - 4], 0x19
call fcn.100223b6
mov edi, eax
mov byte [ebp - 4], 3
call fcn.100214fe
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x494], esp
push ebx
call fcn.100211e5
lea eax, [ebp - 0x4b8]
push eax
mov edx, str.runas
mov byte [ebp - 4], 0x1a
call fcn.100223b6
mov edi, eax
mov byte [ebp - 4], 3
call fcn.100214fe
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x494], esp
push ebx
call fcn.100211e5
lea eax, [ebp - 0x4b8]
push eax
mov edx, str.fullscreen
mov byte [ebp - 4], 0x1e
call fcn.100223b6
mov edi, eax
mov byte [ebp - 4], 3
call fcn.100214fe
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x494], esp
push ebx
call fcn.100211e5
lea eax, [ebp - 0x4b8]
push eax
mov edx, str.closeExpired
mov byte [ebp - 4], 0x1f
call fcn.100223b6
mov edi, eax
mov byte [ebp - 4], 3
call fcn.100214fe
lea esi, [ebp - 0x490]
call fcn.10003e75
xor eax, eax
mov byte [ebp - 4], 0x20
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.10035590
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x4f4]
call fcn.10003ed5
cmp dword [eax + 0x18], 8
jb 0x1000175e
mov eax, dword [eax + 4]
jmp 0x10001761
add eax, 4
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor edi, edi
push ebx
inc edi
push edi
lea esi, [ebp - 0x4f4]
call fcn.10003179
lea eax, [ebp - 0x4b8]
push eax
lea ecx, [ebp - 0x4f4]
call fcn.10022832
push eax
lea eax, [ebp - 0x474]
push eax
mov byte [ebp - 4], 0x22
call fcn.1002aab4
pop ecx
pop ecx
push ebx
push edi
lea ecx, [ebp - 0x4f4]
mov byte [ebp - 4], 0x24
call fcn.10003081
cmp dword [ebp - 0x45c], 0x10
mov eax, dword [ebp - 0x470]
jae 0x100017ca
lea eax, [ebp - 0x470]
push dword [ebp - 0x460]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10019ba5
call fcn.1001af80
mov esi, eax
cmp esi, ebx
je 0x100017fd
push esi
push 4
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
call fcn.1001af5c
cmp dword [ebp - 0x424], 8
mov eax, dword [ebp - 0x438]
jae 0x10001812
lea eax, [ebp - 0x438]
lea ecx, [ebp - 0x218]
push ecx
push eax
push str.__ls___common__ls
lea ecx, [ebp - 0x458]
call fcn.1001b423
add esp, 0xc
push ebx
mov byte [ebp - 4], 0x25
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x440], 8
mov eax, dword [ebp - 0x454]
jae 0x1000184d
lea eax, [ebp - 0x454]
push eax
call fcn.1001a9dc
mov esi, eax
cmp esi, ebx
jne 0x10001894
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
je 0x10001873
call esi
cmp eax, 0x522
jne 0x10001905
cmp dword [ebp - 0x440], 8
mov eax, dword [ebp - 0x454]
jae 0x10001888
lea eax, [ebp - 0x454]
push eax
call fcn.1001a88f
mov esi, eax
cmp esi, ebx
je 0x10001905
mov edi, dword [ebp - 0x4bc]
cmp edi, ebx
je 0x100018c1
push 0x2bf20
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x100018b9
mov dword [edi], 0x3f2
jmp 0x100018c1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
push ebx
inc edi
push edi
lea esi, [ebp - 0x458]
call fcn.10003179
push ebx
push edi
lea ecx, [ebp - 0x474]
call fcn.10003081
push ebx
push edi
lea ecx, [ebp - 0x490]
call fcn.10003081
lea esi, [ebp - 0x4b8]
mov byte [ebp - 4], bl
call fcn.1002147b
jmp 0x100013fb
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.ShowClientNotify_failed:
call esi
push dword [ebp - 0x498]
call esi
push ebx
push edi
lea esi, [ebp - 0x458]
call fcn.10003179
push ebx
push edi
lea ecx, [ebp - 0x474]
call fcn.10003081
push ebx
push edi
lea ecx, [ebp - 0x490]
call fcn.10003081
lea esi, [ebp - 0x4b8]
mov byte [ebp - 4], bl
call fcn.1002147b
push ebx
push edi
jmp 0x10001956
push ebx
push 1
lea esi, [ebp - 0x43c]
call fcn.10003179
xor eax, eax
call fcn.1003536d
ret