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

Disassembly:
push 0x4f8
mov eax, 0x1005187b
call fcn.10037d5a
mov eax, dword [ebp + 8]
mov dword [ebp - 0x49c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4ac], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x4a4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x4a0], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x4a8], eax
mov eax, dword [ebp + 0x20]
mov esi, str.wfchost.exe
push esi
mov dword [ebp - 0x4b0], eax
xor ebx, ebx
lea eax, [ebp - 0x440]
push ebx
push eax
call fcn.1001c902
add esp, 0xc
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x428], 8
mov eax, dword [ebp - 0x43c]
jae 0x1000316d
lea eax, [ebp - 0x43c]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
jne 0x100031ff
push 0x206
mov word [ebp - 0x424], ax
lea eax, [ebp - 0x422]
push ebx
push eax
call fcn.10038cf0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x424]
push eax
mov ebx, esi
xor ecx, ecx
call fcn.1002b6b2
lea eax, [ebp - 0x424]
push eax
call edi
test eax, eax
jne 0x100031d5
xor edi, edi
xor ebx, ebx
push ebx
push 1
lea esi, [ebp - 0x440]
call fcn.100021ef
mov eax, edi
jmp 0x100037c4
lea eax, [ebp - 0x424]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x100031de
sub eax, edx
sar eax, 1
lea ecx, [ebp - 0x424]
lea edx, [ebp - 0x440]
call fcn.100024b2
xor ebx, ebx
cmp dword [ebp - 0x4a0], ebx
jne 0x10003211
mov dword [ebp - 0x4a0], 0x1005700c
cmp dword [ebp - 0x49c], ebx
je 0x100037b4
cmp dword [ebp - 0x4ac], ebx
je 0x100037b4
cmp dword [ebp - 0x4a4], ebx
jne 0x1000323b
mov dword [ebp - 0x4a4], str.rtmessage.png
push ebx
push ebx
lea eax, [ebp - 0x4cc]
call fcn.10022f83
push dword [ebp - 0x49c]
lea esi, [ebp - 0x4e8]
mov byte [ebp - 4], 3
call fcn.10001ec7
mov eax, esi
push eax
lea eax, [ebp - 0x504]
push eax
mov byte [ebp - 4], 4
call fcn.1000121f
sub esp, 0x10
mov byte [ebp - 4], 5
mov edx, eax
mov esi, esp
mov dword [ebp - 0x498], esp
call fcn.10022096
lea eax, [ebp - 0x4cc]
push eax
mov edx, str.title
mov byte [ebp - 4], 6
call fcn.10023221
mov edi, eax
mov byte [ebp - 4], 5
call fcn.100222e9
push ebx
push 1
lea ecx, [ebp - 0x504]
call fcn.100020f3
push ebx
push 1
lea esi, [ebp - 0x4e8]
mov byte [ebp - 4], 3
call fcn.100021ef
push dword [ebp - 0x4ac]
lea esi, [ebp - 0x4e8]
call fcn.10001ec7
mov eax, esi
push eax
lea eax, [ebp - 0x504]
push eax
mov byte [ebp - 4], 7
call fcn.1000121f
sub esp, 0x10
mov byte [ebp - 4], 8
mov edx, eax
mov esi, esp
mov dword [ebp - 0x498], esp
call fcn.10022096
lea eax, [ebp - 0x4cc]
push eax
mov edx, str.content
mov byte [ebp - 4], 9
call fcn.10023221
mov edi, eax
mov byte [ebp - 4], 8
call fcn.100222e9
push ebx
push 1
lea ecx, [ebp - 0x504]
call fcn.100020f3
push ebx
push 1
lea esi, [ebp - 0x4e8]
mov byte [ebp - 4], 3
call fcn.100021ef
push dword [ebp - 0x4a0]
lea esi, [ebp - 0x4e8]
call fcn.10001ec7
mov byte [ebp - 4], 0xa
mov eax, esi
push eax
lea eax, [ebp - 0x504]
push eax
call fcn.1000121f
sub esp, 0x10
mov byte [ebp - 4], 0xb
mov edx, eax
mov esi, esp
mov dword [ebp - 0x498], esp
call fcn.10022096
lea eax, [ebp - 0x4cc]
push eax
mov edx, str.btnText
mov byte [ebp - 4], 0xc
call fcn.10023221
mov edi, eax
mov byte [ebp - 4], 0xb
call fcn.100222e9
push ebx
push 1
lea ecx, [ebp - 0x504]
call fcn.100020f3
push ebx
push 1
lea esi, [ebp - 0x4e8]
mov byte [ebp - 4], 3
call fcn.100021ef
push dword [ebp - 0x4a4]
lea esi, [ebp - 0x4e8]
call fcn.10001ec7
mov eax, esi
push eax
lea eax, [ebp - 0x504]
push eax
mov byte [ebp - 4], 0xd
call fcn.1000121f
sub esp, 0x10
mov byte [ebp - 4], 0xe
mov edx, eax
mov esi, esp
mov dword [ebp - 0x498], esp
call fcn.10022096
lea eax, [ebp - 0x4cc]
push eax
mov edx, str.icoName
mov byte [ebp - 4], 0xf
call fcn.10023221
mov edi, eax
mov byte [ebp - 4], 0xe
call fcn.100222e9
push ebx
push 1
lea ecx, [ebp - 0x504]
call fcn.100020f3
push ebx
push 1
lea esi, [ebp - 0x4e8]
call fcn.100021ef
xor eax, eax
cmp dword [ebp + 0x18], ebx
setne al
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x498], esp
push eax
call fcn.10021fb7
lea eax, [ebp - 0x4cc]
push eax
mov edx, str.showNotAlert
mov byte [ebp - 4], 0x19
call fcn.10023221
mov edi, eax
mov byte [ebp - 4], 3
call fcn.100222e9
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x498], esp
push ebx
call fcn.10021fb7
lea eax, [ebp - 0x4cc]
push eax
mov edx, str.runas
mov byte [ebp - 4], 0x1a
call fcn.10023221
mov edi, eax
mov byte [ebp - 4], 3
call fcn.100222e9
cmp dword [ebp - 0x4b0], ebx
je 0x10003518
push dword [ebp - 0x4b0]
lea esi, [ebp - 0x4e8]
call fcn.10001ec7
mov eax, esi
push eax
lea eax, [ebp - 0x504]
push eax
mov byte [ebp - 4], 0x1b
call fcn.1000121f
sub esp, 0x10
mov byte [ebp - 4], 0x1c
mov edx, eax
mov esi, esp
mov dword [ebp - 0x498], esp
call fcn.10022096
lea eax, [ebp - 0x4cc]
push eax
mov edx, str.singleton
mov byte [ebp - 4], 0x1d
call fcn.10023221
mov edi, eax
mov byte [ebp - 4], 0x1c
call fcn.100222e9
push ebx
push 1
lea ecx, [ebp - 0x504]
call fcn.100020f3
push ebx
push 1
lea esi, [ebp - 0x4e8]
call fcn.100021ef
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x498], esp
push ebx
call fcn.10021fb7
lea eax, [ebp - 0x4cc]
push eax
mov edx, str.fullscreen
mov byte [ebp - 4], 0x1e
call fcn.10023221
mov edi, eax
mov byte [ebp - 4], 3
call fcn.100222e9
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x498], esp
push ebx
call fcn.10021fb7
lea eax, [ebp - 0x4cc]
push eax
mov edx, str.closeExpired
mov byte [ebp - 4], 0x1f
call fcn.10023221
mov edi, eax
mov byte [ebp - 4], 3
call fcn.100222e9
lea esi, [ebp - 0x494]
call fcn.10005c56
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.10038cf0
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x504]
call fcn.10005cb6
cmp dword [eax + 0x18], 8
jb 0x100035cf
mov eax, dword [eax + 4]
jmp 0x100035d2
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 - 0x504]
call fcn.100021ef
lea eax, [ebp - 0x4cc]
push eax
lea ecx, [ebp - 0x504]
call fcn.100236bf
push eax
lea eax, [ebp - 0x478]
push eax
mov byte [ebp - 4], 0x22
call fcn.100305ba
pop ecx
pop ecx
push ebx
push edi
lea ecx, [ebp - 0x504]
mov byte [ebp - 4], 0x24
call fcn.100020f3
cmp dword [ebp - 0x460], 0x10
mov eax, dword [ebp - 0x474]
jae 0x1000363b
lea eax, [ebp - 0x474]
push dword [ebp - 0x464]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.1002b764
lea eax, [ebp - 0x21c]
push eax
call fcn.1002d31a
cmp dword [ebp - 0x428], 8
mov eax, dword [ebp - 0x43c]
jae 0x1000366f
lea eax, [ebp - 0x43c]
lea ecx, [ebp - 0x21c]
push ecx
push eax
push str.__ls___common__ls
lea ecx, [ebp - 0x45c]
call fcn.1002d7c0
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 0x100036aa
lea eax, [ebp - 0x458]
push edi
push eax
call fcn.1002c853
mov esi, eax
cmp esi, ebx
jne 0x100036f2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
je 0x100036d1
call esi
cmp eax, 0x522
jne 0x10003766
cmp dword [ebp - 0x444], 8
mov eax, dword [ebp - 0x458]
jae 0x100036e6
lea eax, [ebp - 0x458]
push eax
call fcn.1002c706
mov esi, eax
cmp esi, ebx
je 0x10003766
cmp dword [ebp - 0x4a8], ebx
je 0x10003725
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10003718
mov eax, dword [ebp - 0x4a8]
mov dword [eax], 0x3f2
jmp 0x10003725
push dword [ebp - 0x4a8]
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
lea esi, [ebp - 0x45c]
call fcn.100021ef
push ebx
push edi
lea ecx, [ebp - 0x478]
call fcn.100020f3
push ebx
push edi
lea ecx, [ebp - 0x494]
call fcn.100020f3
lea esi, [ebp - 0x4cc]
mov byte [ebp - 4], bl
call fcn.10022266
jmp 0x100031c0
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.ShowClientNotify_failed:
call esi
push dword [ebp - 0x49c]
call esi
push ebx
push edi
lea esi, [ebp - 0x45c]
call fcn.100021ef
push ebx
push edi
lea ecx, [ebp - 0x478]
call fcn.100020f3
push ebx
push edi
lea ecx, [ebp - 0x494]
call fcn.100020f3
lea esi, [ebp - 0x4cc]
mov byte [ebp - 4], bl
call fcn.10022266
push ebx
push edi
jmp 0x100037b7
push ebx
push 1
lea esi, [ebp - 0x440]
call fcn.100021ef
xor eax, eax
call fcn.10037ddd
ret