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

Disassembly:
push 0x4f4
mov eax, 0x10043e6f
call fcn.1002a6aa
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4a0], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4ac], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x49c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x498], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x4a4], 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 - 0x43c]
push ebx
push eax
call fcn.100231e9
add esp, 0xc
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x424], 8
mov eax, dword [ebp - 0x438]
jae 0x1000330b
lea eax, [ebp - 0x438]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
jne 0x1000339d
push 0x206
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push ebx
push eax
call fcn.1002bdc0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x420]
push eax
mov ebx, esi
xor ecx, ecx
call fcn.10012cec
lea eax, [ebp - 0x420]
push eax
call edi
test eax, eax
jne 0x10003373
xor edi, edi
xor ebx, ebx
push ebx
push 1
lea esi, [ebp - 0x43c]
call fcn.10001e8c
mov eax, edi
jmp 0x10003a30
lea eax, [ebp - 0x420]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1000337c
sub eax, edx
sar eax, 1
lea ecx, [ebp - 0x420]
lea esi, [ebp - 0x43c]
call fcn.10002141
xor ebx, ebx
cmp dword [ebp - 0x498], ebx
jne 0x100033af
mov dword [ebp - 0x498], 0x10048d70
cmp dword [ebp - 0x4a0], ebx
je 0x10003a20
cmp dword [ebp - 0x4ac], ebx
je 0x10003a20
cmp dword [ebp - 0x49c], ebx
jne 0x100033d9
mov dword [ebp - 0x49c], str.rtmessage.png
push ebx
push ebx
lea eax, [ebp - 0x500]
call fcn.1001b5c1
push dword [ebp - 0x4a0]
lea esi, [ebp - 0x4cc]
mov byte [ebp - 4], 3
call fcn.10001b24
mov eax, esi
push eax
lea eax, [ebp - 0x4e8]
push eax
mov byte [ebp - 4], 4
call fcn.1000303a
sub esp, 0x10
mov byte [ebp - 4], 5
mov edx, eax
mov esi, esp
mov dword [ebp - 0x494], esp
call fcn.1001a754
lea eax, [ebp - 0x500]
push eax
mov edx, str.title
mov byte [ebp - 4], 6
call fcn.1001b85f
mov edi, eax
mov byte [ebp - 4], 5
call fcn.1001a9a7
push ebx
push 1
lea ecx, [ebp - 0x4e8]
call fcn.10001d94
push ebx
push 1
lea esi, [ebp - 0x4cc]
mov byte [ebp - 4], 3
call fcn.10001e8c
push dword [ebp - 0x4ac]
lea esi, [ebp - 0x4cc]
call fcn.10001b24
mov eax, esi
push eax
lea eax, [ebp - 0x4e8]
push eax
mov byte [ebp - 4], 7
call fcn.1000303a
sub esp, 0x10
mov byte [ebp - 4], 8
mov edx, eax
mov esi, esp
mov dword [ebp - 0x494], esp
call fcn.1001a754
lea eax, [ebp - 0x500]
push eax
mov edx, str.content
mov byte [ebp - 4], 9
call fcn.1001b85f
mov edi, eax
mov byte [ebp - 4], 8
call fcn.1001a9a7
push ebx
push 1
lea ecx, [ebp - 0x4e8]
call fcn.10001d94
push ebx
push 1
lea esi, [ebp - 0x4cc]
mov byte [ebp - 4], 3
call fcn.10001e8c
push dword [ebp - 0x498]
lea esi, [ebp - 0x4cc]
call fcn.10001b24
mov byte [ebp - 4], 0xa
mov eax, esi
push eax
lea eax, [ebp - 0x4e8]
push eax
call fcn.1000303a
sub esp, 0x10
mov byte [ebp - 4], 0xb
mov edx, eax
mov esi, esp
mov dword [ebp - 0x494], esp
call fcn.1001a754
lea eax, [ebp - 0x500]
push eax
mov edx, str.btnText
mov byte [ebp - 4], 0xc
call fcn.1001b85f
mov edi, eax
mov byte [ebp - 4], 0xb
call fcn.1001a9a7
push ebx
push 1
lea ecx, [ebp - 0x4e8]
call fcn.10001d94
push ebx
push 1
lea esi, [ebp - 0x4cc]
mov byte [ebp - 4], 3
call fcn.10001e8c
push dword [ebp - 0x49c]
lea esi, [ebp - 0x4cc]
call fcn.10001b24
mov eax, esi
push eax
lea eax, [ebp - 0x4e8]
push eax
mov byte [ebp - 4], 0xd
call fcn.1000303a
sub esp, 0x10
mov byte [ebp - 4], 0xe
mov edx, eax
mov esi, esp
mov dword [ebp - 0x494], esp
call fcn.1001a754
lea eax, [ebp - 0x500]
push eax
mov edx, str.icoName
mov byte [ebp - 4], 0xf
call fcn.1001b85f
mov edi, eax
mov byte [ebp - 4], 0xe
call fcn.1001a9a7
push ebx
push 1
lea ecx, [ebp - 0x4e8]
call fcn.10001d94
push ebx
push 1
lea esi, [ebp - 0x4cc]
mov byte [ebp - 4], 3
call fcn.10001e8c
cmp dword [ebp - 0x4a4], ebx
je 0x10003654
push dword [ebp - 0x4a4]
lea esi, [ebp - 0x4cc]
call fcn.10001b24
mov eax, esi
push eax
lea eax, [ebp - 0x4e8]
push eax
mov byte [ebp - 4], 0x10
call fcn.1000303a
sub esp, 0x10
mov byte [ebp - 4], 0x11
mov edx, eax
mov esi, esp
mov dword [ebp - 0x494], esp
call fcn.1001a754
lea eax, [ebp - 0x500]
push eax
mov edx, 0x10048db4
mov byte [ebp - 4], 0x12
call fcn.1001b85f
mov edi, eax
mov byte [ebp - 4], 0x11
call fcn.1001a9a7
push ebx
push 1
lea ecx, [ebp - 0x4e8]
call fcn.10001d94
push ebx
push 1
lea esi, [ebp - 0x4cc]
mov byte [ebp - 4], 3
call fcn.10001e8c
cmp dword [ebp - 0x4a8], ebx
je 0x100036d6
push dword [ebp - 0x4a8]
lea esi, [ebp - 0x4cc]
call fcn.10001b24
mov eax, esi
push eax
lea eax, [ebp - 0x4e8]
push eax
mov byte [ebp - 4], 0x13
call fcn.1000303a
sub esp, 0x10
mov byte [ebp - 4], 0x14
mov edx, eax
mov esi, esp
mov dword [ebp - 0x494], esp
call fcn.1001a754
lea eax, [ebp - 0x500]
push eax
mov edx, str.param
mov byte [ebp - 4], 0x15
call fcn.1001b85f
mov edi, eax
mov byte [ebp - 4], 0x14
call fcn.1001a9a7
push ebx
push 1
lea ecx, [ebp - 0x4e8]
call fcn.10001d94
push ebx
push 1
lea esi, [ebp - 0x4cc]
mov byte [ebp - 4], 3
call fcn.10001e8c
cmp dword [ebp - 0x4b0], ebx
je 0x10003754
push dword [ebp - 0x4b0]
lea esi, [ebp - 0x4cc]
call fcn.10001b24
mov eax, esi
push eax
lea eax, [ebp - 0x4e8]
push eax
mov byte [ebp - 4], 0x16
call fcn.1000303a
sub esp, 0x10
mov byte [ebp - 4], 0x17
mov edx, eax
mov esi, esp
mov dword [ebp - 0x494], esp
call fcn.1001a754
lea eax, [ebp - 0x500]
push eax
mov edx, str.wndClass
mov byte [ebp - 4], 0x18
call fcn.1001b85f
mov edi, eax
mov byte [ebp - 4], 0x17
call fcn.1001a9a7
push ebx
push 1
lea ecx, [ebp - 0x4e8]
call fcn.10001d94
push ebx
push 1
lea esi, [ebp - 0x4cc]
call fcn.10001e8c
xor eax, eax
cmp dword [ebp + 0x24], ebx
setne al
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x494], esp
push eax
call fcn.1001a675
lea eax, [ebp - 0x500]
push eax
mov edx, str.showNotAlert
mov byte [ebp - 4], 0x19
call fcn.1001b85f
mov edi, eax
mov byte [ebp - 4], 3
call fcn.1001a9a7
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x494], esp
push ebx
call fcn.1001a675
lea eax, [ebp - 0x500]
push eax
mov edx, str.runas
mov byte [ebp - 4], 0x1a
call fcn.1001b85f
mov edi, eax
mov byte [ebp - 4], 3
call fcn.1001a9a7
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x494], esp
push ebx
call fcn.1001a675
lea eax, [ebp - 0x500]
push eax
mov edx, str.fullscreen
mov byte [ebp - 4], 0x1e
call fcn.1001b85f
mov edi, eax
mov byte [ebp - 4], 3
call fcn.1001a9a7
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x494], esp
push ebx
call fcn.1001a675
lea eax, [ebp - 0x500]
push eax
mov edx, str.closeExpired
mov byte [ebp - 4], 0x1f
call fcn.1001b85f
mov edi, eax
mov byte [ebp - 4], 3
call fcn.1001a9a7
lea esi, [ebp - 0x490]
call fcn.10005cd9
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.1002bdc0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x4e8]
call fcn.10005d39
cmp dword [eax + 0x18], 8
jb 0x10003875
mov eax, dword [eax + 4]
jmp 0x10003878
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 - 0x4e8]
call fcn.10001e8c
lea eax, [ebp - 0x500]
push eax
lea ecx, [ebp - 0x4e8]
call fcn.1001bcc7
push eax
lea eax, [ebp - 0x474]
push eax
mov byte [ebp - 4], 0x22
call fcn.10024857
pop ecx
pop ecx
push ebx
push edi
lea ecx, [ebp - 0x4e8]
mov byte [ebp - 4], 0x24
call fcn.10001d94
cmp dword [ebp - 0x45c], 0x10
mov eax, dword [ebp - 0x470]
jae 0x100038e1
lea eax, [ebp - 0x470]
push dword [ebp - 0x460]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10012e8a
lea eax, [ebp - 0x218]
push eax
call fcn.10013e51
cmp dword [ebp - 0x424], 8
mov eax, dword [ebp - 0x438]
jae 0x10003915
lea eax, [ebp - 0x438]
lea ecx, [ebp - 0x218]
push ecx
push eax
push str.__ls___common__ls
lea ecx, [ebp - 0x458]
call fcn.1001418c
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 0x10003950
lea eax, [ebp - 0x454]
push eax
call fcn.10013a56
cmp eax, ebx
jne 0x10003991
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
je 0x10003970
call esi
cmp eax, 0x522
jne 0x100039d2
cmp dword [ebp - 0x440], 8
mov eax, dword [ebp - 0x454]
jae 0x10003985
lea eax, [ebp - 0x454]
push eax
mov eax, edi
call fcn.10013891
cmp eax, ebx
je 0x100039d2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
lea esi, [ebp - 0x458]
call fcn.10001e8c
push ebx
push edi
lea ecx, [ebp - 0x474]
call fcn.10001d94
push ebx
push edi
lea ecx, [ebp - 0x490]
call fcn.10001d94
lea esi, [ebp - 0x500]
mov byte [ebp - 4], bl
call fcn.1001a924
jmp 0x1000335e
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.ShowClientNotify_failed:
call esi
push dword [ebp - 0x4a0]
call esi
push ebx
push edi
lea esi, [ebp - 0x458]
call fcn.10001e8c
push ebx
push edi
lea ecx, [ebp - 0x474]
call fcn.10001d94
push ebx
push edi
lea ecx, [ebp - 0x490]
call fcn.10001d94
lea esi, [ebp - 0x500]
mov byte [ebp - 4], bl
call fcn.1001a924
push ebx
push edi
jmp 0x10003a23
push ebx
push 1
lea esi, [ebp - 0x43c]
call fcn.10001e8c
xor eax, eax
call fcn.1002a72d
ret