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

Disassembly:
push 0x4ec
mov eax, 0x1003411f
call fcn.1001d42a
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4a0], eax
mov eax, dword [ebp + 0xc]
push str.wfchost.exe
mov dword [ebp - 0x49c], eax
xor ebx, ebx
lea eax, [ebp - 0x440]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x4c0], edi
call fcn.1001ac9e
add esp, 0xc
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x428], 8
mov eax, dword [ebp - 0x43c]
jae 0x10004a8d
lea eax, [ebp - 0x43c]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
test eax, eax
jne 0x10004b0e
push 0x206
mov word [ebp - 0x424], ax
lea eax, [ebp - 0x422]
push ebx
push eax
call fcn.1001da40
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
call fcn.1000b5d3
lea eax, [ebp - 0x424]
push eax
call esi
test eax, eax
jne 0x10004ae6
xor edi, edi
push ebx
push 1
lea esi, [ebp - 0x440]
call fcn.1000245e
mov eax, edi
jmp 0x10004ff8
lea eax, [ebp - 0x424]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x10004aef
sub eax, edx
sar eax, 1
lea ecx, [ebp - 0x424]
lea esi, [ebp - 0x440]
call fcn.10002328
cmp edi, ebx
je 0x10004fe8
cmp dword [ebp - 0x4a0], ebx
je 0x10004fe8
cmp dword [ebp - 0x49c], ebx
jne 0x10004b34
mov dword [ebp - 0x49c], str.rtmessage.png
push ebx
push ebx
lea eax, [ebp - 0x4bc]
call fcn.100126b0
push edi
lea esi, [ebp - 0x4dc]
mov byte [ebp - 4], 3
call fcn.10001f7d
mov eax, esi
push eax
lea eax, [ebp - 0x4f8]
push eax
mov byte [ebp - 4], 4
call fcn.100010e1
sub esp, 0x10
mov byte [ebp - 4], 5
mov edx, eax
mov esi, esp
mov dword [ebp - 0x498], esp
call fcn.10011843
lea eax, [ebp - 0x4bc]
push eax
mov edx, str.title
mov byte [ebp - 4], 6
call fcn.1001294e
mov edi, eax
mov byte [ebp - 4], 5
call fcn.10011a96
push ebx
push 1
lea ecx, [ebp - 0x4f8]
call fcn.10002257
push ebx
push 1
lea esi, [ebp - 0x4dc]
mov byte [ebp - 4], 3
call fcn.1000245e
push dword [ebp - 0x4a0]
lea esi, [ebp - 0x4dc]
call fcn.10001f7d
mov eax, esi
push eax
lea eax, [ebp - 0x4f8]
push eax
mov byte [ebp - 4], 7
call fcn.100010e1
sub esp, 0x10
mov byte [ebp - 4], 8
mov edx, eax
mov esi, esp
mov dword [ebp - 0x498], esp
call fcn.10011843
lea eax, [ebp - 0x4bc]
push eax
mov edx, str.content
mov byte [ebp - 4], 9
call fcn.1001294e
mov edi, eax
mov byte [ebp - 4], 8
call fcn.10011a96
push ebx
push 1
lea ecx, [ebp - 0x4f8]
call fcn.10002257
push ebx
push 1
lea esi, [ebp - 0x4dc]
mov byte [ebp - 4], 3
call fcn.1000245e
push 0x10037e00
lea esi, [ebp - 0x4dc]
call fcn.10001f7d
mov byte [ebp - 4], 0xa
mov eax, esi
push eax
lea eax, [ebp - 0x4f8]
push eax
call fcn.100010e1
sub esp, 0x10
mov byte [ebp - 4], 0xb
mov edx, eax
mov esi, esp
mov dword [ebp - 0x498], esp
call fcn.10011843
lea eax, [ebp - 0x4bc]
push eax
mov edx, str.btnText
mov byte [ebp - 4], 0xc
call fcn.1001294e
mov edi, eax
mov byte [ebp - 4], 0xb
call fcn.10011a96
push ebx
push 1
lea ecx, [ebp - 0x4f8]
call fcn.10002257
push ebx
push 1
lea esi, [ebp - 0x4dc]
mov byte [ebp - 4], 3
call fcn.1000245e
push dword [ebp - 0x49c]
lea esi, [ebp - 0x4dc]
call fcn.10001f7d
mov eax, esi
push eax
lea eax, [ebp - 0x4f8]
push eax
mov byte [ebp - 4], 0xd
call fcn.100010e1
sub esp, 0x10
mov byte [ebp - 4], 0xe
mov edx, eax
mov esi, esp
mov dword [ebp - 0x498], esp
call fcn.10011843
lea eax, [ebp - 0x4bc]
push eax
mov edx, str.icoName
mov byte [ebp - 4], 0xf
call fcn.1001294e
mov edi, eax
mov byte [ebp - 4], 0xe
call fcn.10011a96
push ebx
push 1
lea ecx, [ebp - 0x4f8]
call fcn.10002257
push ebx
push 1
lea esi, [ebp - 0x4dc]
call fcn.1000245e
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x498], esp
push 1
call fcn.1001177d
lea eax, [ebp - 0x4bc]
push eax
mov edx, str.showNotAlert
mov byte [ebp - 4], 0x19
call fcn.1001294e
mov edi, eax
mov byte [ebp - 4], 3
call fcn.10011a96
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x498], esp
push ebx
call fcn.1001177d
lea eax, [ebp - 0x4bc]
push eax
mov edx, str.runas
mov byte [ebp - 4], 0x1a
call fcn.1001294e
mov edi, eax
mov byte [ebp - 4], 3
call fcn.10011a96
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x498], esp
push ebx
call fcn.1001177d
lea eax, [ebp - 0x4bc]
push eax
mov edx, str.fullscreen
mov byte [ebp - 4], 0x1e
call fcn.1001294e
mov edi, eax
mov byte [ebp - 4], 3
call fcn.10011a96
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x498], esp
push ebx
call fcn.1001177d
lea eax, [ebp - 0x4bc]
push eax
mov edx, str.closeExpired
mov byte [ebp - 4], 0x1f
call fcn.1001294e
mov edi, eax
mov byte [ebp - 4], 3
call fcn.10011a96
lea esi, [ebp - 0x494]
call fcn.10005c74
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.1001da40
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x4f8]
call fcn.10005cd4
cmp dword [eax + 0x18], 8
jb 0x10004e3d
mov eax, dword [eax + 4]
jmp 0x10004e40
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 - 0x4f8]
call fcn.1000245e
lea eax, [ebp - 0x4bc]
push eax
lea ecx, [ebp - 0x4f8]
call fcn.10012d72
push eax
lea eax, [ebp - 0x478]
push eax
mov byte [ebp - 4], 0x22
call fcn.1001aad8
pop ecx
pop ecx
push ebx
push edi
lea ecx, [ebp - 0x4f8]
mov byte [ebp - 4], 0x24
call fcn.10002257
cmp dword [ebp - 0x460], 0x10
mov eax, dword [ebp - 0x474]
jae 0x10004ea9
lea eax, [ebp - 0x474]
push dword [ebp - 0x464]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.1000b67b
lea eax, [ebp - 0x21c]
push eax
call fcn.1000c6aa
cmp dword [ebp - 0x428], 8
mov eax, dword [ebp - 0x43c]
jae 0x10004edd
lea eax, [ebp - 0x43c]
lea ecx, [ebp - 0x21c]
push ecx
push eax
push str.__ls___common__ls
lea ecx, [ebp - 0x45c]
call fcn.1000c96f
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 0x10004f18
lea eax, [ebp - 0x458]
push eax
call fcn.1000c2e9
cmp eax, ebx
jne 0x10004f59
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
je 0x10004f38
call esi
cmp eax, 0x522
jne 0x10004f9a
cmp dword [ebp - 0x444], 8
mov eax, dword [ebp - 0x458]
jae 0x10004f4d
lea eax, [ebp - 0x458]
push eax
mov eax, edi
call fcn.1000c127
cmp eax, ebx
je 0x10004f9a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
lea esi, [ebp - 0x45c]
call fcn.1000245e
push ebx
push edi
lea ecx, [ebp - 0x478]
call fcn.10002257
push ebx
push edi
lea ecx, [ebp - 0x494]
call fcn.10002257
lea esi, [ebp - 0x4bc]
mov byte [ebp - 4], bl
call fcn.10011a13
jmp 0x10004ad1
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.ShowClientNotify_failed:
call esi
push dword [ebp - 0x4c0]
call esi
push ebx
push edi
lea esi, [ebp - 0x45c]
call fcn.1000245e
push ebx
push edi
lea ecx, [ebp - 0x478]
call fcn.10002257
push ebx
push edi
lea ecx, [ebp - 0x494]
call fcn.10002257
lea esi, [ebp - 0x4bc]
mov byte [ebp - 4], bl
call fcn.10011a13
push ebx
push edi
jmp 0x10004feb
push ebx
push 1
lea esi, [ebp - 0x440]
call fcn.1000245e
xor eax, eax
call fcn.1001d4ad
ret