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

Disassembly:
push 0xffffffffffffffff
push 0x100542d4
mov eax, dword fs:[0]
push eax
sub esp, 0x4ec
mov eax, dword [0x10067060]
xor eax, esp
mov dword [esp + 0x4e8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10067060]
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.1002fdd1
add esp, 0xc
mov dword [esp + 0x508], ebx
cmp dword [esp + 0xb0], 8
mov eax, dword [esp + 0x9c]
jae 0x10002a45
lea eax, [esp + 0x9c]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
test eax, eax
jne 0x10002ad9
push 0x206
lea edx, [esp + 0x2fa]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x300], cx
call fcn.1003b960
add esp, 0xc
lea eax, [esp + 0x2f4]
push eax
call fcn.1001ebf2
lea ecx, [esp + 0x2f4]
push ecx
call esi
test eax, eax
jne 0x10002aac
cmp dword [esp + 0xb0], 8
jb 0x1000348b
mov edx, dword [esp + 0x9c]
push edx
jmp 0x10003483
lea eax, [esp + 0x2f4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10002ab6
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x2f8]
lea esi, [esp + 0x9c]
call fcn.1000a400
cmp edi, ebx
jne 0x10002ae5
mov dword [esp + 0x70], 0x10058ba0
cmp dword [esp + 0x34], ebx
je 0x10003471
cmp ebp, ebx
je 0x10003471
xor eax, eax
cmp eax, str.printer.png
jne 0x10002b08
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.10007de0
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x510], 3
call fcn.100014a0
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 0x10002b7b
mov eax, dword [eax + 4]
jmp 0x10002b7e
add eax, 4
push eax
call fcn.10025302
add esp, 4
mov dword [esi], eax
push str.title
lea eax, [esp + 0x70]
push eax
mov ecx, 0x10058bc9
mov byte [esp + 0x528], 5
call fcn.10026715
mov edi, eax
mov byte [esp + 0x520], 4
call fcn.10025ad2
cmp dword [esp + 0x30], 0x10
jb 0x10002bc8
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.10038093
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 0x10002bf4
mov edx, dword [esp + 0x3c]
push edx
call fcn.10038093
add esp, 4
mov eax, ebp
lea ecx, [esp + 0x38]
call fcn.10007de0
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x510], 6
call fcn.100014a0
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 0x10002c49
mov eax, dword [eax + 4]
jmp 0x10002c4c
add eax, 4
push eax
call fcn.10025302
add esp, 4
mov dword [esi], eax
push str.content
lea edx, [esp + 0x70]
push edx
mov ecx, 0x10058afb
mov byte [esp + 0x528], 8
call fcn.10026715
mov edi, eax
mov byte [esp + 0x520], 7
call fcn.10025ad2
cmp dword [esp + 0x30], 0x10
jb 0x10002c96
mov eax, dword [esp + 0x1c]
push eax
call fcn.10038093
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 0x10002cc2
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.10038093
add esp, 4
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x38]
call fcn.10007de0
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x510], 9
call fcn.100014a0
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 0x10002d1a
mov eax, dword [eax + 4]
jmp 0x10002d1d
add eax, 4
push eax
call fcn.10025302
add esp, 4
mov dword [esi], eax
push str.btnText
lea ecx, [esp + 0x70]
push ecx
mov ecx, 0x10058bd3
mov byte [esp + 0x528], 0xb
call fcn.10026715
mov edi, eax
mov byte [esp + 0x520], 0xa
call fcn.10025ad2
cmp dword [esp + 0x30], 0x10
jb 0x10002d67
mov edx, dword [esp + 0x1c]
push edx
call fcn.10038093
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 0x10002d93
mov eax, dword [esp + 0x3c]
push eax
call fcn.10038093
add esp, 4
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0x38]
call fcn.10007de0
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x510], 0xc
call fcn.100014a0
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 0x10002de6
mov eax, dword [eax + 4]
jmp 0x10002de9
add eax, 4
push eax
call fcn.10025302
add esp, 4
mov dword [esi], eax
push str.icoName
lea eax, [esp + 0x70]
push eax
mov ecx, 0x10058bdb
mov byte [esp + 0x528], 0xe
call fcn.10026715
mov edi, eax
mov byte [esp + 0x520], 0xd
call fcn.10025ad2
cmp dword [esp + 0x30], 0x10
jb 0x10002e33
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.10038093
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 0x10002e63
mov edx, dword [esp + 0x3c]
push edx
call fcn.10038093
add esp, 4
mov eax, dword [esp + 0x78]
cmp eax, ebx
je 0x10002f11
lea ecx, [esp + 0x38]
call fcn.10007de0
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x510], 0xf
call fcn.100014a0
sub esp, 0x10
mov byte [esp + 0x520], 0x10
mov edx, eax
mov esi, esp
mov dword [esp + 0x2c], esp
call fcn.1002587f
push 0x10058bdc
lea edx, [esp + 0x70]
push edx
mov ecx, 0x10058bdf
mov byte [esp + 0x528], 0x11
call fcn.10026715
mov edi, eax
mov byte [esp + 0x520], 0x10
call fcn.10025ad2
cmp dword [esp + 0x30], 0x10
jb 0x10002ee6
mov eax, dword [esp + 0x1c]
push eax
call fcn.10038093
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 0x10002f11
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.10038093
add esp, 4
mov eax, dword [esp + 0x74]
cmp eax, ebx
je 0x10002fb7
lea ecx, [esp + 0x38]
call fcn.10007de0
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x510], 0x12
call fcn.100014a0
sub esp, 0x10
mov byte [esp + 0x520], 0x13
mov edx, eax
mov esi, esp
mov dword [esp + 0x2c], esp
call fcn.1002587f
push str.param
lea ecx, [esp + 0x70]
push ecx
mov ecx, 0x10058be5
mov byte [esp + 0x528], 0x14
call fcn.10026715
mov edi, eax
mov byte [esp + 0x520], 0x13
call fcn.10025ad2
cmp dword [esp + 0x30], 0x10
jb 0x10002f94
mov edx, dword [esp + 0x1c]
push edx
call fcn.10038093
add esp, 4
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
cmp dword [esp + 0x50], ebp
jb 0x10002fb7
mov eax, dword [esp + 0x3c]
push eax
call fcn.10038093
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, 0x10058bf4
mov byte [esp + 0x528], 0x18
call fcn.10026715
mov edi, eax
mov byte [esp + 0x520], 2
call fcn.10025ad2
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, 0x10058bfd
mov byte [esp + 0x528], 0x19
call fcn.10026715
mov edi, eax
mov byte [esp + 0x520], 2
call fcn.10025ad2
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, 0x10058c0a
mov byte [esp + 0x528], 0x1d
call fcn.10026715
mov edi, eax
mov byte [esp + 0x520], 2
call fcn.10025ad2
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, 0x10058c18
call fcn.10026715
mov edi, eax
mov byte [esp + 0x520], 2
call fcn.10025ad2
lea esi, [esp + 0xd0]
call fcn.1000cca0
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.1003b960
add esp, 0xc
lea ecx, [esp + 0xec]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 0x38]
call fcn.1000cd20
cmp dword [eax + 0x18], ebp
jb 0x10003147
mov eax, dword [eax + 4]
jmp 0x1000314a
add eax, 4
push eax
lea edx, [esp + 0xf0]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp dword [esp + 0x50], ebp
jb 0x1000316c
mov eax, dword [esp + 0x3c]
push eax
call fcn.10038093
add esp, 4
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x1c]
call fcn.10026df0
push eax
lea edx, [esp + 0xb8]
push edx
mov byte [esp + 0x510], 0x21
call fcn.1002f585
add esp, 8
mov edi, 0x10
mov byte [esp + 0x508], 0x23
cmp dword [esp + 0x30], edi
jb 0x100031b3
mov eax, dword [esp + 0x1c]
push eax
call fcn.10038093
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 0x100031da
lea eax, [esp + 0xb8]
mov ecx, dword [esp + 0xc8]
push ecx
push eax
lea edx, [esp + 0xf4]
push edx
call fcn.1001ec9a
call fcn.1001f601
mov esi, eax
cmp esi, ebx
je 0x10003231
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 0x1000321a
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x10003228
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call fcn.10038093
add esp, 4
mov eax, dword [esp + 0x9c]
cmp dword [esp + 0xb0], ebp
jae 0x10003248
lea eax, [esp + 0x9c]
lea ecx, [esp + 0xec]
push ecx
push eax
push str.__ls___common__ls
lea esi, [esp + 0x88]
call fcn.1001f9c5
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 0x1000328b
lea eax, [esp + 0x80]
push eax
call fcn.1001f35c
cmp eax, ebx
jne 0x100032d4
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
je 0x100032af
call esi
cmp eax, 0x522
jne 0x100033a4
mov eax, dword [esp + 0x80]
cmp dword [esp + 0x94], ebp
jae 0x100032c6
lea eax, [esp + 0x80]
push eax
call fcn.1001f20f
cmp eax, ebx
je 0x100033a4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x94], ebp
jb 0x100032f4
mov edx, dword [esp + 0x80]
push edx
call fcn.10038093
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 0x10003329
mov ecx, dword [esp + 0xb8]
push ecx
call fcn.10038093
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 0x1000335c
mov edx, dword [esp + 0xd4]
push edx
call fcn.10038093
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.10025a4f
cmp dword [esp + 0xb0], ebp
jb 0x1000339a
mov eax, dword [esp + 0x9c]
push eax
call fcn.10038093
add esp, 4
mov eax, 1
jmp 0x1000348d
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 0x100033d1
mov edx, dword [esp + 0x80]
push edx
call fcn.10038093
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 0x10003406
mov ecx, dword [esp + 0xb8]
push ecx
call fcn.10038093
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 0x10003439
mov edx, dword [esp + 0xd4]
push edx
call fcn.10038093
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.10025a4f
cmp dword [esp + 0xb0], ebp
jb 0x1000348b
mov eax, dword [esp + 0x9c]
push eax
jmp 0x10003483
cmp dword [esp + 0xb0], 8
jb 0x1000348b
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.10038093
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.10037693
add esp, 0x4f8
ret