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

Disassembly:
push 0xffffffffffffffff
push 0x10064f12
mov eax, dword fs:[0]
push eax
sub esp, 0x4e4
mov eax, dword [0x1007c060]
xor eax, esp
mov dword [esp + 0x4e0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1007c060]
xor eax, esp
push eax
lea eax, [esp + 0x4f8]
mov dword fs:[0], eax
push str.wfchost.exe
xor ebx, ebx
lea eax, [esp + 0x94]
mov edi, ecx
push ebx
push eax
mov dword [esp + 0x7c], edi
call fcn.1002b3c5
add esp, 0xc
mov dword [esp + 0x500], ebx
cmp dword [esp + 0xa8], 8
mov eax, dword [esp + 0x94]
jae 0x1001a3f8
lea eax, [esp + 0x94]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
test eax, eax
jne 0x1001a49a
push 0x206
lea edx, [esp + 0x2f2]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x2f8], cx
call fcn.1004e1c0
add esp, 0xc
push 0x104
lea eax, [esp + 0x2f0]
push eax
mov ebx, str.wfchost.exe
xor ecx, ecx
call fcn.10025e24
lea ecx, [esp + 0x2ec]
push ecx
call esi
test eax, eax
jne 0x1001a46b
cmp dword [esp + 0xa8], 8
jb 0x1001aca8
mov edx, dword [esp + 0x94]
push edx
jmp 0x1001aca0
lea eax, [esp + 0x2ec]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001a475
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x2f0]
lea esi, [esp + 0x94]
call fcn.10004f40
xor ebx, ebx
cmp edi, ebx
je 0x1001ac8e
and dword [esp + 0x5c], 0xfffffe00
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov eax, 0x1006c0cc
lea ecx, [esp + 0x38]
mov byte [esp + 0x500], 2
call fcn.10002e30
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x508], 3
call fcn.100014b0
mov byte [esp + 0x508], 4
sub esp, 0x10
mov esi, esp
mov byte [esi + 8], 4
mov ebp, 0x100
or dword [esi + 8], ebp
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
cmp dword [eax + 0x18], 0x10
mov edi, dword [eax + 0x14]
mov dword [esp + 0x30], esp
jb 0x1001a517
mov eax, dword [eax + 4]
jmp 0x1001a51a
add eax, 4
push eax
call fcn.1003a4d4
add esp, 4
mov dword [esi], eax
push str.title
lea edx, [esp + 0x70]
push edx
mov ecx, 0x1006bddd
mov byte [esp + 0x520], 5
call fcn.1003b8e7
mov edi, eax
mov byte [esp + 0x518], 4
call fcn.1003aca4
cmp dword [esp + 0x34], 0x10
jb 0x1001a564
mov eax, dword [esp + 0x20]
push eax
call fcn.1004a7e9
add esp, 4
mov byte [esp + 0x500], 2
cmp dword [esp + 0x50], 8
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
jb 0x1001a590
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.1004a7e9
add esp, 4
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x38]
call fcn.10002e30
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x508], 6
call fcn.100014b0
mov byte [esp + 0x508], 7
sub esp, 0x10
mov esi, esp
mov byte [esi + 8], 4
or dword [esi + 8], ebp
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
cmp dword [eax + 0x18], 0x10
mov edi, dword [eax + 0x14]
mov dword [esp + 0x30], esp
jb 0x1001a5e3
mov eax, dword [eax + 4]
jmp 0x1001a5e6
add eax, 4
push eax
call fcn.1003a4d4
add esp, 4
mov dword [esi], eax
push str.content
lea ecx, [esp + 0x70]
push ecx
mov ecx, 0x1006bd9b
mov byte [esp + 0x520], 8
call fcn.1003b8e7
mov edi, eax
mov byte [esp + 0x518], 7
call fcn.1003aca4
cmp dword [esp + 0x34], 0x10
jb 0x1001a630
mov edx, dword [esp + 0x20]
push edx
call fcn.1004a7e9
add esp, 4
mov byte [esp + 0x500], 2
cmp dword [esp + 0x50], 8
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
jb 0x1001a65c
mov eax, dword [esp + 0x3c]
push eax
call fcn.1004a7e9
add esp, 4
mov eax, 0x1006bdb4
lea ecx, [esp + 0x38]
call fcn.10002e30
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x508], 9
call fcn.100014b0
mov byte [esp + 0x508], 0xa
sub esp, 0x10
mov esi, esp
mov byte [esi + 8], 4
or dword [esi + 8], ebp
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
cmp dword [eax + 0x18], 0x10
mov edi, dword [eax + 0x14]
mov dword [esp + 0x30], esp
jb 0x1001a6b0
mov eax, dword [eax + 4]
jmp 0x1001a6b3
add eax, 4
push eax
call fcn.1003a4d4
add esp, 4
mov dword [esi], eax
push str.btnText
lea eax, [esp + 0x70]
push eax
mov ecx, 0x1006bde7
mov byte [esp + 0x520], 0xb
call fcn.1003b8e7
mov edi, eax
mov byte [esp + 0x518], 0xa
call fcn.1003aca4
cmp dword [esp + 0x34], 0x10
jb 0x1001a6fd
mov ecx, dword [esp + 0x20]
push ecx
call fcn.1004a7e9
add esp, 4
mov byte [esp + 0x500], 2
cmp dword [esp + 0x50], 8
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
jb 0x1001a729
mov edx, dword [esp + 0x3c]
push edx
call fcn.1004a7e9
add esp, 4
mov eax, str.rtmessage.png
lea ecx, [esp + 0x38]
call fcn.10002e30
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x508], 0xc
call fcn.100014b0
mov byte [esp + 0x508], 0xd
sub esp, 0x10
mov esi, esp
mov byte [esi + 8], 4
or dword [esi + 8], ebp
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov edi, dword [eax + 0x14]
mov ebp, 0x10
mov dword [esp + 0x30], esp
cmp dword [eax + 0x18], ebp
jb 0x1001a781
mov eax, dword [eax + 4]
jmp 0x1001a784
add eax, 4
push eax
call fcn.1003a4d4
add esp, 4
mov dword [esi], eax
push str.icoName
lea edx, [esp + 0x70]
push edx
mov ecx, 0x1006bdef
mov byte [esp + 0x520], 0xe
call fcn.1003b8e7
mov edi, eax
mov byte [esp + 0x518], 0xd
call fcn.1003aca4
cmp dword [esp + 0x34], ebp
jb 0x1001a7cd
mov eax, dword [esp + 0x20]
push eax
call fcn.1004a7e9
add esp, 4
mov ebp, 8
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
cmp dword [esp + 0x50], ebp
jb 0x1001a7f5
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.1004a7e9
add esp, 4
sub esp, 0x18
mov eax, esp
mov esi, 0xfffffeff
mov byte [eax + 8], 1
and dword [eax + 8], esi
mov dword [esp + 0x30], esp
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov dword [eax], 1
mov dword [eax + 4], ebx
push str.showNotAlert
lea edx, [esp + 0x70]
push edx
mov ecx, 0x1006bdfc
mov byte [esp + 0x520], 0x18
call fcn.1003b8e7
mov edi, eax
mov byte [esp + 0x518], 2
call fcn.1003aca4
sub esp, 0x18
mov eax, esp
mov byte [eax + 8], 1
and dword [eax + 8], esi
mov dword [esp + 0x30], esp
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov dword [eax], ebx
mov dword [eax + 4], ebx
push str.runas
lea eax, [esp + 0x70]
push eax
mov ecx, 0x1006be05
mov byte [esp + 0x520], 0x19
call fcn.1003b8e7
mov edi, eax
mov byte [esp + 0x518], 2
call fcn.1003aca4
sub esp, 0x18
mov eax, esp
mov byte [eax + 8], 1
and dword [eax + 8], esi
mov dword [esp + 0x30], esp
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov dword [eax], ebx
mov dword [eax + 4], ebx
push str.fullscreen
lea ecx, [esp + 0x70]
push ecx
mov ecx, 0x1006be12
mov byte [esp + 0x520], 0x1d
call fcn.1003b8e7
mov edi, eax
mov byte [esp + 0x518], 2
call fcn.1003aca4
sub esp, 0x18
mov eax, esp
mov byte [eax + 8], 1
and dword [eax + 8], esi
mov dword [esp + 0x30], esp
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov dword [eax], ebx
mov dword [eax + 4], ebx
push str.closeExpired
lea edx, [esp + 0x70]
push edx
mov ecx, 0x1006be20
mov byte [esp + 0x520], 0x1e
call fcn.1003b8e7
mov edi, eax
mov byte [esp + 0x518], 2
call fcn.1003aca4
lea esi, [esp + 0xc8]
call fcn.10020c60
push 0x206
lea ecx, [esp + 0xea]
xor eax, eax
push ebx
mov byte [esp + 0x508], 0x1f
push ecx
mov word [esp + 0xf0], ax
call fcn.1004e1c0
add esp, 0xc
lea edx, [esp + 0xe4]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 0x38]
call fcn.10020ce0
cmp dword [eax + 0x18], ebp
jb 0x1001a97c
mov eax, dword [eax + 4]
jmp 0x1001a97f
add eax, 4
push eax
lea eax, [esp + 0xe8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp dword [esp + 0x50], ebp
jb 0x1001a9a1
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.1004a7e9
add esp, 4
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x20]
call fcn.1003bfa0
push eax
lea eax, [esp + 0xb0]
push eax
mov byte [esp + 0x508], 0x21
call fcn.1004202c
add esp, 8
mov edi, 0x10
mov byte [esp + 0x500], 0x23
cmp dword [esp + 0x34], edi
jb 0x1001a9e8
mov ecx, dword [esp + 0x20]
push ecx
call fcn.1004a7e9
add esp, 4
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
cmp dword [esp + 0xc4], edi
jae 0x1001aa0f
lea eax, [esp + 0xb0]
mov edx, dword [esp + 0xc0]
push edx
push eax
lea eax, [esp + 0xec]
push eax
call fcn.10025ed6
call fcn.10027092
mov esi, eax
cmp esi, ebx
je 0x1001aa66
push esi
push 4
lea ecx, [esp + 0xec]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x1001aa4f
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x1001aa5d
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call fcn.1004a7e9
add esp, 4
mov eax, dword [esp + 0x94]
cmp dword [esp + 0xa8], ebp
jae 0x1001aa7d
lea eax, [esp + 0x94]
lea edx, [esp + 0xe4]
push edx
push eax
push str.__ls___common__ls
lea esi, [esp + 0x80]
call fcn.100275a7
add esp, 0xc
push ebx
mov byte [esp + 0x504], 0x24
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x78]
cmp dword [esp + 0x8c], ebp
jae 0x1001aaba
lea eax, [esp + 0x78]
push eax
call fcn.10026a85
cmp eax, ebx
jne 0x1001aafd
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
je 0x1001aade
call esi
cmp eax, 0x522
jne 0x1001abc7
mov eax, dword [esp + 0x78]
cmp dword [esp + 0x8c], ebp
jae 0x1001aaef
lea eax, [esp + 0x78]
push eax
call fcn.10026938
cmp eax, ebx
je 0x1001abc7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x8c], ebp
jb 0x1001ab1a
mov eax, dword [esp + 0x78]
push eax
call fcn.1004a7e9
add esp, 4
xor ecx, ecx
mov dword [esp + 0x8c], 7
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], cx
cmp dword [esp + 0xc4], edi
jb 0x1001ab4c
mov edx, dword [esp + 0xb0]
push edx
call fcn.1004a7e9
add esp, 4
mov esi, 0xf
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc0], ebx
mov byte [esp + 0xb0], bl
cmp dword [esp + 0xe0], edi
jb 0x1001ab7f
mov eax, dword [esp + 0xcc]
push eax
call fcn.1004a7e9
add esp, 4
mov dword [esp + 0xe0], esi
lea esi, [esp + 0x54]
mov dword [esp + 0xdc], ebx
mov byte [esp + 0xcc], bl
mov byte [esp + 0x500], bl
call fcn.1003ac21
cmp dword [esp + 0xa8], ebp
jb 0x1001abbd
mov ecx, dword [esp + 0x94]
push ecx
call fcn.1004a7e9
add esp, 4
mov eax, 1
jmp 0x1001acaa
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.ShowClientNotify_failed:
call esi
push 0x1006c0cc
call esi
cmp dword [esp + 0x8c], ebp
jb 0x1001abf1
mov edx, dword [esp + 0x78]
push edx
call fcn.1004a7e9
add esp, 4
xor eax, eax
mov dword [esp + 0x8c], 7
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], ax
cmp dword [esp + 0xc4], edi
jb 0x1001ac23
mov ecx, dword [esp + 0xb0]
push ecx
call fcn.1004a7e9
add esp, 4
mov esi, 0xf
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc0], ebx
mov byte [esp + 0xb0], bl
cmp dword [esp + 0xe0], edi
jb 0x1001ac56
mov edx, dword [esp + 0xcc]
push edx
call fcn.1004a7e9
add esp, 4
mov dword [esp + 0xe0], esi
lea esi, [esp + 0x54]
mov dword [esp + 0xdc], ebx
mov byte [esp + 0xcc], bl
mov byte [esp + 0x500], bl
call fcn.1003ac21
cmp dword [esp + 0xa8], ebp
jb 0x1001aca8
mov eax, dword [esp + 0x94]
push eax
jmp 0x1001aca0
cmp dword [esp + 0xa8], 8
jb 0x1001aca8
mov ecx, dword [esp + 0x94]
push ecx
call fcn.1004a7e9
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x4f8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4e0]
xor ecx, esp
call fcn.1004a172
add esp, 0x4f0
ret