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

Disassembly:
push 0x4f8
mov eax, 0x1005cd12
call fcn.100422ea
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.10023135
add esp, 0xc
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x428], 8
mov eax, dword [ebp - 0x43c]
jae 0x1000340f
lea eax, [ebp - 0x43c]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
jne 0x100034a1
push 0x206
mov word [ebp - 0x424], ax
lea eax, [ebp - 0x422]
push ebx
push eax
call fcn.10043280
add esp, 0xc
push 0x104
lea eax, [ebp - 0x424]
push eax
mov ebx, esi
xor ecx, ecx
call fcn.10032583
lea eax, [ebp - 0x424]
push eax
call edi
test eax, eax
jne 0x10003477
xor edi, edi
xor ebx, ebx
push ebx
push 1
lea esi, [ebp - 0x440]
call fcn.10002370
mov eax, edi
jmp 0x10003a66
lea eax, [ebp - 0x424]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10003480
sub eax, edx
sar eax, 1
lea ecx, [ebp - 0x424]
lea edx, [ebp - 0x440]
call fcn.10002620
xor ebx, ebx
cmp dword [ebp - 0x4a0], ebx
jne 0x100034b3
mov dword [ebp - 0x4a0], 0x100630ac
cmp dword [ebp - 0x49c], ebx
je 0x10003a56
cmp dword [ebp - 0x4ac], ebx
je 0x10003a56
cmp dword [ebp - 0x4a4], ebx
jne 0x100034dd
mov dword [ebp - 0x4a4], str.rtmessage.png
push ebx
push ebx
lea eax, [ebp - 0x4cc]
call fcn.10029f1e
push dword [ebp - 0x49c]
lea esi, [ebp - 0x4e8]
mov byte [ebp - 4], 3
call fcn.10002030
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.10029031
lea eax, [ebp - 0x4cc]
push eax
mov edx, str.title
mov byte [ebp - 4], 6
call fcn.1002a1bc
mov edi, eax
mov byte [ebp - 4], 5
call fcn.10029284
push ebx
push 1
lea ecx, [ebp - 0x504]
call fcn.10002274
push ebx
push 1
lea esi, [ebp - 0x4e8]
mov byte [ebp - 4], 3
call fcn.10002370
push dword [ebp - 0x4ac]
lea esi, [ebp - 0x4e8]
call fcn.10002030
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.10029031
lea eax, [ebp - 0x4cc]
push eax
mov edx, str.content
mov byte [ebp - 4], 9
call fcn.1002a1bc
mov edi, eax
mov byte [ebp - 4], 8
call fcn.10029284
push ebx
push 1
lea ecx, [ebp - 0x504]
call fcn.10002274
push ebx
push 1
lea esi, [ebp - 0x4e8]
mov byte [ebp - 4], 3
call fcn.10002370
push dword [ebp - 0x4a0]
lea esi, [ebp - 0x4e8]
call fcn.10002030
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.10029031
lea eax, [ebp - 0x4cc]
push eax
mov edx, str.btnText
mov byte [ebp - 4], 0xc
call fcn.1002a1bc
mov edi, eax
mov byte [ebp - 4], 0xb
call fcn.10029284
push ebx
push 1
lea ecx, [ebp - 0x504]
call fcn.10002274
push ebx
push 1
lea esi, [ebp - 0x4e8]
mov byte [ebp - 4], 3
call fcn.10002370
push dword [ebp - 0x4a4]
lea esi, [ebp - 0x4e8]
call fcn.10002030
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.10029031
lea eax, [ebp - 0x4cc]
push eax
mov edx, str.icoName
mov byte [ebp - 4], 0xf
call fcn.1002a1bc
mov edi, eax
mov byte [ebp - 4], 0xe
call fcn.10029284
push ebx
push 1
lea ecx, [ebp - 0x504]
call fcn.10002274
push ebx
push 1
lea esi, [ebp - 0x4e8]
call fcn.10002370
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.10028f52
lea eax, [ebp - 0x4cc]
push eax
mov edx, str.showNotAlert
mov byte [ebp - 4], 0x19
call fcn.1002a1bc
mov edi, eax
mov byte [ebp - 4], 3
call fcn.10029284
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x498], esp
push ebx
call fcn.10028f52
lea eax, [ebp - 0x4cc]
push eax
mov edx, str.runas
mov byte [ebp - 4], 0x1a
call fcn.1002a1bc
mov edi, eax
mov byte [ebp - 4], 3
call fcn.10029284
cmp dword [ebp - 0x4b0], ebx
je 0x100037ba
push dword [ebp - 0x4b0]
lea esi, [ebp - 0x4e8]
call fcn.10002030
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.10029031
lea eax, [ebp - 0x4cc]
push eax
mov edx, str.singleton
mov byte [ebp - 4], 0x1d
call fcn.1002a1bc
mov edi, eax
mov byte [ebp - 4], 0x1c
call fcn.10029284
push ebx
push 1
lea ecx, [ebp - 0x504]
call fcn.10002274
push ebx
push 1
lea esi, [ebp - 0x4e8]
call fcn.10002370
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x498], esp
push ebx
call fcn.10028f52
lea eax, [ebp - 0x4cc]
push eax
mov edx, str.fullscreen
mov byte [ebp - 4], 0x1e
call fcn.1002a1bc
mov edi, eax
mov byte [ebp - 4], 3
call fcn.10029284
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x498], esp
push ebx
call fcn.10028f52
lea eax, [ebp - 0x4cc]
push eax
mov edx, str.closeExpired
mov byte [ebp - 4], 0x1f
call fcn.1002a1bc
mov edi, eax
mov byte [ebp - 4], 3
call fcn.10029284
lea esi, [ebp - 0x494]
call fcn.10005f18
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.10043280
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x504]
call fcn.10005f78
cmp dword [eax + 0x18], 8
jb 0x10003871
mov eax, dword [eax + 4]
jmp 0x10003874
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.10002370
lea eax, [ebp - 0x4cc]
push eax
lea ecx, [ebp - 0x504]
call fcn.1002a681
push eax
lea eax, [ebp - 0x478]
push eax
mov byte [ebp - 4], 0x22
call fcn.10037735
pop ecx
pop ecx
push ebx
push edi
lea ecx, [ebp - 0x504]
mov byte [ebp - 4], 0x24
call fcn.10002274
cmp dword [ebp - 0x460], 0x10
mov eax, dword [ebp - 0x474]
jae 0x100038dd
lea eax, [ebp - 0x474]
push dword [ebp - 0x464]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.10032635
lea eax, [ebp - 0x21c]
push eax
call fcn.10034307
cmp dword [ebp - 0x428], 8
mov eax, dword [ebp - 0x43c]
jae 0x10003911
lea eax, [ebp - 0x43c]
lea ecx, [ebp - 0x21c]
push ecx
push eax
push str.__ls___common__ls
lea ecx, [ebp - 0x45c]
call fcn.100347ad
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 0x1000394c
lea eax, [ebp - 0x458]
push edi
push eax
call fcn.10033830
mov esi, eax
cmp esi, ebx
jne 0x10003994
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
je 0x10003973
call esi
cmp eax, 0x522
jne 0x10003a08
cmp dword [ebp - 0x444], 8
mov eax, dword [ebp - 0x458]
jae 0x10003988
lea eax, [ebp - 0x458]
push eax
call fcn.100336e3
mov esi, eax
cmp esi, ebx
je 0x10003a08
cmp dword [ebp - 0x4a8], ebx
je 0x100039c7
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x100039ba
mov eax, dword [ebp - 0x4a8]
mov dword [eax], 0x3f2
jmp 0x100039c7
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.10002370
push ebx
push edi
lea ecx, [ebp - 0x478]
call fcn.10002274
push ebx
push edi
lea ecx, [ebp - 0x494]
call fcn.10002274
lea esi, [ebp - 0x4cc]
mov byte [ebp - 4], bl
call fcn.10029201
jmp 0x10003462
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.10002370
push ebx
push edi
lea ecx, [ebp - 0x478]
call fcn.10002274
push ebx
push edi
lea ecx, [ebp - 0x494]
call fcn.10002274
lea esi, [ebp - 0x4cc]
mov byte [ebp - 4], bl
call fcn.10029201
push ebx
push edi
jmp 0x10003a59
push ebx
push 1
lea esi, [ebp - 0x440]
call fcn.10002370
xor eax, eax
call fcn.1004236d
ret