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

Disassembly:
push 0xffffffffffffffff
push 0x10053bd4
mov eax, dword fs:[0]
push eax
sub esp, 0x4ec
mov eax, dword [0x10066060]
xor eax, esp
mov dword [esp + 0x4e8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10066060]
xor eax, esp
push eax
lea eax, [esp + 0x500]
mov dword fs:[0], eax
mov eax, dword [esp + 0x510]
mov edi, dword [esp + 0x518]
mov ebp, dword [esp + 0x514]
push str.wfchost.exe
mov dword [esp + 0x38], eax
xor ebx, ebx
lea eax, [esp + 0x9c]
push ebx
push eax
mov dword [esp + 0x7c], edi
mov dword [esp + 0x84], ecx
mov dword [esp + 0x80], edx
mov dword [esp + 0x78], str.printer.png
call fcn.1002f917
add esp, 0xc
mov dword [esp + 0x508], ebx
cmp dword [esp + 0xb0], 8
mov eax, dword [esp + 0x9c]
jae 0x10002a25
lea eax, [esp + 0x9c]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
test eax, eax
jne 0x10002ab9
push 0x206
lea edx, [esp + 0x2fa]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x300], cx
call fcn.10039730
add esp, 0xc
lea eax, [esp + 0x2f4]
push eax
call fcn.1001e798
lea ecx, [esp + 0x2f4]
push ecx
call esi
test eax, eax
jne 0x10002a8c
cmp dword [esp + 0xb0], 8
jb 0x1000346b
mov edx, dword [esp + 0x9c]
push edx
jmp 0x10003463
lea eax, [esp + 0x2f4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10002a96
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x2f8]
lea esi, [esp + 0x9c]
call fcn.10009f80
cmp edi, ebx
jne 0x10002ac5
mov dword [esp + 0x70], 0x10057ba0
cmp dword [esp + 0x34], ebx
je 0x10003451
cmp ebp, ebx
je 0x10003451
xor eax, eax
cmp eax, str.printer.png
jne 0x10002ae8
mov dword [esp + 0x6c], str.rtmessage.png
and dword [esp + 0x5c], 0xfffffe00
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x38]
mov byte [esp + 0x508], 2
call fcn.10007a10
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x510], 3
call fcn.10001480
mov byte [esp + 0x510], 4
sub esp, 0x10
mov esi, esp
mov byte [esi + 8], 4
or dword [esi + 8], 0x100
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 + 0x2c], esp
jb 0x10002b5b
mov eax, dword [eax + 4]
jmp 0x10002b5e
add eax, 4
push eax
call fcn.10024f03
add esp, 4
mov dword [esi], eax
push str.title
lea eax, [esp + 0x70]
push eax
mov ecx, 0x10057bc9
mov byte [esp + 0x528], 5
call fcn.10026324
mov edi, eax
mov byte [esp + 0x520], 4
call fcn.100256e1
cmp dword [esp + 0x30], 0x10
jb 0x10002ba8
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.100378fa
add esp, 4
mov byte [esp + 0x508], 2
cmp dword [esp + 0x50], 8
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
jb 0x10002bd4
mov edx, dword [esp + 0x3c]
push edx
call fcn.100378fa
add esp, 4
mov eax, ebp
lea ecx, [esp + 0x38]
call fcn.10007a10
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x510], 6
call fcn.10001480
mov byte [esp + 0x510], 7
sub esp, 0x10
mov esi, esp
mov byte [esi + 8], 4
or dword [esi + 8], 0x100
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 + 0x2c], esp
jb 0x10002c29
mov eax, dword [eax + 4]
jmp 0x10002c2c
add eax, 4
push eax
call fcn.10024f03
add esp, 4
mov dword [esi], eax
push str.content
lea edx, [esp + 0x70]
push edx
mov ecx, 0x10057afb
mov byte [esp + 0x528], 8
call fcn.10026324
mov edi, eax
mov byte [esp + 0x520], 7
call fcn.100256e1
cmp dword [esp + 0x30], 0x10
jb 0x10002c76
mov eax, dword [esp + 0x1c]
push eax
call fcn.100378fa
add esp, 4
mov byte [esp + 0x508], 2
cmp dword [esp + 0x50], 8
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
jb 0x10002ca2
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.100378fa
add esp, 4
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x38]
call fcn.10007a10
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x510], 9
call fcn.10001480
mov byte [esp + 0x510], 0xa
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 + 0x2c], esp
jb 0x10002cfa
mov eax, dword [eax + 4]
jmp 0x10002cfd
add eax, 4
push eax
call fcn.10024f03
add esp, 4
mov dword [esi], eax
push str.btnText
lea ecx, [esp + 0x70]
push ecx
mov ecx, 0x10057bd3
mov byte [esp + 0x528], 0xb
call fcn.10026324
mov edi, eax
mov byte [esp + 0x520], 0xa
call fcn.100256e1
cmp dword [esp + 0x30], 0x10
jb 0x10002d47
mov edx, dword [esp + 0x1c]
push edx
call fcn.100378fa
add esp, 4
mov byte [esp + 0x508], 2
cmp dword [esp + 0x50], 8
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
jb 0x10002d73
mov eax, dword [esp + 0x3c]
push eax
call fcn.100378fa
add esp, 4
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0x38]
call fcn.10007a10
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x510], 0xc
call fcn.10001480
mov byte [esp + 0x510], 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
cmp dword [eax + 0x18], 0x10
mov edi, dword [eax + 0x14]
mov dword [esp + 0x2c], esp
jb 0x10002dc6
mov eax, dword [eax + 4]
jmp 0x10002dc9
add eax, 4
push eax
call fcn.10024f03
add esp, 4
mov dword [esi], eax
push str.icoName
lea eax, [esp + 0x70]
push eax
mov ecx, 0x10057bdb
mov byte [esp + 0x528], 0xe
call fcn.10026324
mov edi, eax
mov byte [esp + 0x520], 0xd
call fcn.100256e1
cmp dword [esp + 0x30], 0x10
jb 0x10002e13
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.100378fa
add esp, 4
mov ebp, 8
mov byte [esp + 0x508], 2
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
cmp dword [esp + 0x50], ebp
jb 0x10002e43
mov edx, dword [esp + 0x3c]
push edx
call fcn.100378fa
add esp, 4
mov eax, dword [esp + 0x78]
cmp eax, ebx
je 0x10002ef1
lea ecx, [esp + 0x38]
call fcn.10007a10
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x510], 0xf
call fcn.10001480
sub esp, 0x10
mov byte [esp + 0x520], 0x10
mov edx, eax
mov esi, esp
mov dword [esp + 0x2c], esp
call fcn.1002548e
push 0x10057bdc
lea edx, [esp + 0x70]
push edx
mov ecx, 0x10057bdf
mov byte [esp + 0x528], 0x11
call fcn.10026324
mov edi, eax
mov byte [esp + 0x520], 0x10
call fcn.100256e1
cmp dword [esp + 0x30], 0x10
jb 0x10002ec6
mov eax, dword [esp + 0x1c]
push eax
call fcn.100378fa
add esp, 4
mov byte [esp + 0x508], 2
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
cmp dword [esp + 0x50], ebp
jb 0x10002ef1
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.100378fa
add esp, 4
mov eax, dword [esp + 0x74]
cmp eax, ebx
je 0x10002f97
lea ecx, [esp + 0x38]
call fcn.10007a10
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x510], 0x12
call fcn.10001480
sub esp, 0x10
mov byte [esp + 0x520], 0x13
mov edx, eax
mov esi, esp
mov dword [esp + 0x2c], esp
call fcn.1002548e
push str.param
lea ecx, [esp + 0x70]
push ecx
mov ecx, 0x10057be5
mov byte [esp + 0x528], 0x14
call fcn.10026324
mov edi, eax
mov byte [esp + 0x520], 0x13
call fcn.100256e1
cmp dword [esp + 0x30], 0x10
jb 0x10002f74
mov edx, dword [esp + 0x1c]
push edx
call fcn.100378fa
add esp, 4
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
cmp dword [esp + 0x50], ebp
jb 0x10002f97
mov eax, dword [esp + 0x3c]
push eax
call fcn.100378fa
add esp, 4
sub esp, 0x18
mov ecx, esp
mov esi, 0xfffffeff
xor eax, eax
mov byte [ecx + 8], 1
and dword [ecx + 8], esi
cmp dword [esp + 0x534], ebx
mov dword [esp + 0x2c], esp
setne al
mov dword [ecx + 0xc], ebx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
push str.showNotAlert
lea ecx, [esp + 0x70]
push ecx
mov ecx, 0x10057bf4
mov byte [esp + 0x528], 0x18
call fcn.10026324
mov edi, eax
mov byte [esp + 0x520], 2
call fcn.100256e1
sub esp, 0x18
mov eax, esp
mov byte [eax + 8], 1
and dword [eax + 8], esi
mov dword [esp + 0x2c], 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 edx, [esp + 0x70]
push edx
mov ecx, 0x10057bfd
mov byte [esp + 0x528], 0x19
call fcn.10026324
mov edi, eax
mov byte [esp + 0x520], 2
call fcn.100256e1
sub esp, 0x18
mov eax, esp
mov byte [eax + 8], 1
and dword [eax + 8], esi
mov dword [esp + 0x2c], 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 eax, [esp + 0x70]
push eax
mov ecx, 0x10057c0a
mov byte [esp + 0x528], 0x1d
call fcn.10026324
mov edi, eax
mov byte [esp + 0x520], 2
call fcn.100256e1
sub esp, 0x18
mov eax, esp
mov byte [eax + 8], 1
and dword [eax + 8], esi
mov dword [esp + 0x2c], 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
lea ecx, [esp + 0x6c]
push str.closeExpired
push ecx
mov byte [esp + 0x528], 0x1e
mov ecx, 0x10057c18
call fcn.10026324
mov edi, eax
mov byte [esp + 0x520], 2
call fcn.100256e1
lea esi, [esp + 0xd0]
call fcn.1000c7f0
push 0x206
lea eax, [esp + 0xf2]
xor edx, edx
push ebx
mov byte [esp + 0x510], 0x1f
push eax
mov word [esp + 0xf8], dx
call fcn.10039730
add esp, 0xc
lea ecx, [esp + 0xec]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 0x38]
call fcn.1000c870
cmp dword [eax + 0x18], ebp
jb 0x10003127
mov eax, dword [eax + 4]
jmp 0x1000312a
add eax, 4
push eax
lea edx, [esp + 0xf0]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp dword [esp + 0x50], ebp
jb 0x1000314c
mov eax, dword [esp + 0x3c]
push eax
call fcn.100378fa
add esp, 4
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x1c]
call fcn.100269ff
push eax
lea edx, [esp + 0xb8]
push edx
mov byte [esp + 0x510], 0x21
call fcn.1002f159
add esp, 8
mov edi, 0x10
mov byte [esp + 0x508], 0x23
cmp dword [esp + 0x30], edi
jb 0x10003193
mov eax, dword [esp + 0x1c]
push eax
call fcn.100378fa
add esp, 4
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
cmp dword [esp + 0xcc], edi
jae 0x100031ba
lea eax, [esp + 0xb8]
mov ecx, dword [esp + 0xc8]
push ecx
push eax
lea edx, [esp + 0xf4]
push edx
call fcn.1001e840
call fcn.1001f1a7
mov esi, eax
cmp esi, ebx
je 0x10003211
push esi
push 4
lea eax, [esp + 0xf4]
push eax
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x100031fa
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x10003208
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call fcn.100378fa
add esp, 4
mov eax, dword [esp + 0x9c]
cmp dword [esp + 0xb0], ebp
jae 0x10003228
lea eax, [esp + 0x9c]
lea ecx, [esp + 0xec]
push ecx
push eax
push str.__ls___common__ls
lea esi, [esp + 0x88]
call fcn.1001f56b
add esp, 0xc
push ebx
mov byte [esp + 0x50c], 0x24
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x80]
cmp dword [esp + 0x94], ebp
jae 0x1000326b
lea eax, [esp + 0x80]
push eax
call fcn.1001ef02
cmp eax, ebx
jne 0x100032b4
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
je 0x1000328f
call esi
cmp eax, 0x522
jne 0x10003384
mov eax, dword [esp + 0x80]
cmp dword [esp + 0x94], ebp
jae 0x100032a6
lea eax, [esp + 0x80]
push eax
call fcn.1001edb5
cmp eax, ebx
je 0x10003384
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x94], ebp
jb 0x100032d4
mov edx, dword [esp + 0x80]
push edx
call fcn.100378fa
add esp, 4
xor eax, eax
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], ax
cmp dword [esp + 0xcc], edi
jb 0x10003309
mov ecx, dword [esp + 0xb8]
push ecx
call fcn.100378fa
add esp, 4
mov esi, 0xf
mov dword [esp + 0xcc], esi
mov dword [esp + 0xc8], ebx
mov byte [esp + 0xb8], bl
cmp dword [esp + 0xe8], edi
jb 0x1000333c
mov edx, dword [esp + 0xd4]
push edx
call fcn.100378fa
add esp, 4
mov dword [esp + 0xe8], esi
lea esi, [esp + 0x54]
mov dword [esp + 0xe4], ebx
mov byte [esp + 0xd4], bl
mov byte [esp + 0x508], bl
call fcn.1002565e
cmp dword [esp + 0xb0], ebp
jb 0x1000337a
mov eax, dword [esp + 0x9c]
push eax
call fcn.100378fa
add esp, 4
mov eax, 1
jmp 0x1000346d
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.ShowClientNotify_failed:
call esi
mov ecx, dword [esp + 0x34]
push ecx
call esi
cmp dword [esp + 0x94], ebp
jb 0x100033b1
mov edx, dword [esp + 0x80]
push edx
call fcn.100378fa
add esp, 4
xor eax, eax
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], ax
cmp dword [esp + 0xcc], edi
jb 0x100033e6
mov ecx, dword [esp + 0xb8]
push ecx
call fcn.100378fa
add esp, 4
mov esi, 0xf
mov dword [esp + 0xcc], esi
mov dword [esp + 0xc8], ebx
mov byte [esp + 0xb8], bl
cmp dword [esp + 0xe8], edi
jb 0x10003419
mov edx, dword [esp + 0xd4]
push edx
call fcn.100378fa
add esp, 4
mov dword [esp + 0xe8], esi
lea esi, [esp + 0x54]
mov dword [esp + 0xe4], ebx
mov byte [esp + 0xd4], bl
mov byte [esp + 0x508], bl
call fcn.1002565e
cmp dword [esp + 0xb0], ebp
jb 0x1000346b
mov eax, dword [esp + 0x9c]
push eax
jmp 0x10003463
cmp dword [esp + 0xb0], 8
jb 0x1000346b
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.100378fa
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x500]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4e8]
xor ecx, esp
call fcn.100370e4
add esp, 0x4f8
ret