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

Disassembly:
push 0xffffffffffffffff
push 0x10034ba3
mov eax, dword fs:[0]
push eax
sub esp, 0x4e4
mov eax, dword [0x10041060]
xor eax, esp
mov dword [esp + 0x4e0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10041060]
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.1000d807
add esp, 0xc
mov dword [esp + 0x500], ebx
cmp dword [esp + 0xa8], 8
mov eax, dword [esp + 0x94]
jae 0x10004eb8
lea eax, [esp + 0x94]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
test eax, eax
jne 0x10004f58
push 0x206
lea edx, [esp + 0x2f2]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x2f8], cx
call fcn.1001f190
add esp, 0xc
push 0x104
lea eax, [esp + 0x2f0]
push eax
mov ebx, str.wfchost.exe
call fcn.10009b87
lea ecx, [esp + 0x2ec]
push ecx
call esi
test eax, eax
jne 0x10004f29
cmp dword [esp + 0xa8], 8
jb 0x10005808
mov edx, dword [esp + 0x94]
push edx
jmp 0x10005800
lea eax, [esp + 0x2ec]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10004f33
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x2f0]
lea esi, [esp + 0x94]
call fcn.100039a0
xor ebx, ebx
cmp edi, ebx
je 0x100057ee
and dword [esp + 0x5c], 0xfffffe00
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov eax, 0x10039118
lea ecx, [esp + 0x38]
mov byte [esp + 0x500], 2
call fcn.10003240
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x508], 3
call fcn.10001320
mov byte [esp + 0x508], 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
mov edi, dword [eax + 0x14]
mov ebp, 0x10
mov dword [esp + 0x30], esp
cmp dword [eax + 0x18], ebp
jb 0x10004fd8
mov eax, dword [eax + 4]
jmp 0x10004fdb
add eax, 4
push eax
call fcn.100123f2
add esp, 4
mov dword [esi], eax
push str.title
lea edx, [esp + 0x70]
push edx
mov ecx, 0x10038cd9
mov byte [esp + 0x520], 5
call fcn.100137fa
mov edi, eax
mov byte [esp + 0x518], 4
call fcn.10012bb7
cmp dword [esp + 0x34], ebp
jb 0x10005024
mov eax, dword [esp + 0x20]
push eax
call fcn.1001d3cd
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 0x10005050
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.1001d3cd
add esp, 4
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x38]
call fcn.10003240
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x508], 6
call fcn.10001320
mov byte [esp + 0x508], 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
mov edi, dword [eax + 0x14]
mov dword [esp + 0x30], esp
cmp dword [eax + 0x18], ebp
jb 0x100050a6
mov eax, dword [eax + 4]
jmp 0x100050a9
add eax, 4
push eax
call fcn.100123f2
add esp, 4
mov dword [esi], eax
push str.content
lea ecx, [esp + 0x70]
push ecx
mov ecx, 0x10038c57
mov byte [esp + 0x520], 8
call fcn.100137fa
mov edi, eax
mov byte [esp + 0x518], 7
call fcn.10012bb7
cmp dword [esp + 0x34], ebp
jb 0x100050f2
mov edx, dword [esp + 0x20]
push edx
call fcn.1001d3cd
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 0x1000511e
mov eax, dword [esp + 0x3c]
push eax
call fcn.1001d3cd
add esp, 4
mov eax, 0x10038cb0
lea ecx, [esp + 0x38]
call fcn.10003240
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x508], 9
call fcn.10001320
mov byte [esp + 0x508], 0xa
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
mov edi, dword [eax + 0x14]
mov dword [esp + 0x30], esp
cmp dword [eax + 0x18], ebp
jb 0x10005175
mov eax, dword [eax + 4]
jmp 0x10005178
add eax, 4
push eax
call fcn.100123f2
add esp, 4
mov dword [esi], eax
push str.btnText
lea eax, [esp + 0x70]
push eax
mov ecx, 0x10038ce3
mov byte [esp + 0x520], 0xb
call fcn.100137fa
mov edi, eax
mov byte [esp + 0x518], 0xa
call fcn.10012bb7
cmp dword [esp + 0x34], ebp
jb 0x100051c1
mov ecx, dword [esp + 0x20]
push ecx
call fcn.1001d3cd
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 0x100051ed
mov edx, dword [esp + 0x3c]
push edx
call fcn.1001d3cd
add esp, 4
mov eax, str.rtmessage.png
lea ecx, [esp + 0x38]
call fcn.10003240
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x508], 0xc
call fcn.10001320
mov byte [esp + 0x508], 0xd
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
mov edi, dword [eax + 0x14]
mov dword [esp + 0x30], esp
cmp dword [eax + 0x18], ebp
jb 0x10005244
mov eax, dword [eax + 4]
jmp 0x10005247
add eax, 4
push eax
call fcn.100123f2
add esp, 4
mov dword [esi], eax
push str.icoName
lea edx, [esp + 0x70]
push edx
mov ecx, 0x10038ceb
mov byte [esp + 0x520], 0xe
call fcn.100137fa
mov edi, eax
mov byte [esp + 0x518], 0xd
call fcn.10012bb7
cmp dword [esp + 0x34], ebp
jb 0x10005290
mov eax, dword [esp + 0x20]
push eax
call fcn.1001d3cd
add esp, 4
cmp dword [esp + 0x50], 8
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
jb 0x100052b4
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.1001d3cd
add esp, 4
sub esp, 0x18
mov eax, esp
mov ebp, 0xfffffeff
mov byte [eax + 8], 1
and dword [eax + 8], ebp
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.showNotAlert
lea edx, [esp + 0x70]
push edx
mov ecx, 0x10038cf8
mov byte [esp + 0x520], 0x18
call fcn.100137fa
mov edi, eax
mov byte [esp + 0x518], 2
call fcn.10012bb7
sub esp, 0x18
mov eax, esp
mov byte [eax + 8], 1
and dword [eax + 8], ebp
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, 0x10038d01
mov byte [esp + 0x520], 0x19
call fcn.100137fa
mov edi, eax
mov byte [esp + 0x518], 2
call fcn.10012bb7
mov eax, str.75EFE344_E299_4dc9_86C6_2F4015057380
lea ecx, [esp + 0x38]
call fcn.10003240
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x508], 0x1a
call fcn.10001320
sub esp, 0x10
mov byte [esp + 0x518], 0x1b
mov edx, eax
mov esi, esp
mov dword [esp + 0x30], esp
call fcn.10012964
push str.singleton
lea eax, [esp + 0x70]
push eax
mov ecx, 0x10038d0d
mov byte [esp + 0x520], 0x1c
call fcn.100137fa
mov edi, eax
mov byte [esp + 0x518], 0x1b
call fcn.10012bb7
cmp dword [esp + 0x34], 0x10
jb 0x100053c7
mov ecx, dword [esp + 0x20]
push ecx
call fcn.1001d3cd
add esp, 4
cmp dword [esp + 0x50], 8
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
jb 0x100053eb
mov edx, dword [esp + 0x3c]
push edx
call fcn.1001d3cd
add esp, 4
sub esp, 0x18
mov eax, esp
mov byte [eax + 8], 1
and dword [eax + 8], ebp
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 eax, [esp + 0x70]
push eax
mov ecx, 0x10038d1a
mov byte [esp + 0x520], 0x1d
call fcn.100137fa
mov edi, eax
mov byte [esp + 0x518], 2
call fcn.10012bb7
sub esp, 0x18
mov eax, esp
mov byte [eax + 8], 1
and dword [eax + 8], ebp
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 ecx, [esp + 0x70]
push ecx
mov ecx, 0x10038d28
mov byte [esp + 0x520], 0x1e
call fcn.100137fa
mov edi, eax
mov byte [esp + 0x518], 2
call fcn.10012bb7
lea esi, [esp + 0xc8]
call fcn.10006780
push 0x206
lea eax, [esp + 0xea]
xor edx, edx
push ebx
mov byte [esp + 0x508], 0x1f
push eax
mov word [esp + 0xf0], dx
call fcn.1001f190
add esp, 0xc
lea ecx, [esp + 0xe4]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 0x38]
call fcn.10006800
mov edi, 8
cmp dword [eax + 0x18], edi
jb 0x100054dc
mov eax, dword [eax + 4]
jmp 0x100054df
add eax, 4
push eax
lea edx, [esp + 0xe8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp dword [esp + 0x50], edi
jb 0x10005501
mov eax, dword [esp + 0x3c]
push eax
call fcn.1001d3cd
add esp, 4
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x20]
call fcn.10013e7f
push eax
lea edx, [esp + 0xb0]
push edx
mov byte [esp + 0x508], 0x21
call fcn.1001c00f
add esp, 8
mov ebp, 0x10
mov byte [esp + 0x500], 0x23
cmp dword [esp + 0x34], ebp
jb 0x10005548
mov eax, dword [esp + 0x20]
push eax
call fcn.1001d3cd
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], ebp
jae 0x1000556f
lea eax, [esp + 0xb0]
mov ecx, dword [esp + 0xc0]
push ecx
push eax
lea edx, [esp + 0xec]
push edx
call fcn.10009c3a
call fcn.1000a864
mov esi, eax
cmp esi, ebx
je 0x100055c6
push esi
push 4
lea eax, [esp + 0xec]
push eax
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x100055af
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x100055bd
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call fcn.1001d3cd
add esp, 4
mov eax, dword [esp + 0x94]
cmp dword [esp + 0xa8], edi
jae 0x100055dd
lea eax, [esp + 0x94]
lea ecx, [esp + 0xe4]
push ecx
push eax
push str.__ls___common__ls
lea esi, [esp + 0x80]
call fcn.1000abd9
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], edi
jae 0x1000561a
lea eax, [esp + 0x78]
push eax
call fcn.1000a3a5
cmp eax, ebx
jne 0x1000565d
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
je 0x1000563e
call esi
cmp eax, 0x522
jne 0x10005727
mov eax, dword [esp + 0x78]
cmp dword [esp + 0x8c], edi
jae 0x1000564f
lea eax, [esp + 0x78]
push eax
call fcn.1000a258
cmp eax, ebx
je 0x10005727
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x8c], edi
jb 0x1000567a
mov edx, dword [esp + 0x78]
push edx
call fcn.1001d3cd
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], ebp
jb 0x100056ac
mov ecx, dword [esp + 0xb0]
push ecx
call fcn.1001d3cd
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], ebp
jb 0x100056df
mov edx, dword [esp + 0xcc]
push edx
call fcn.1001d3cd
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.10012b34
cmp dword [esp + 0xa8], edi
jb 0x1000571d
mov eax, dword [esp + 0x94]
push eax
call fcn.1001d3cd
add esp, 4
mov eax, 1
jmp 0x1000580a
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.ShowClientNotify_failed:
call esi
push 0x10039118
call esi
cmp dword [esp + 0x8c], edi
jb 0x10005751
mov ecx, dword [esp + 0x78]
push ecx
call fcn.1001d3cd
add esp, 4
xor edx, edx
mov dword [esp + 0x8c], 7
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], dx
cmp dword [esp + 0xc4], ebp
jb 0x10005783
mov eax, dword [esp + 0xb0]
push eax
call fcn.1001d3cd
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], ebp
jb 0x100057b6
mov ecx, dword [esp + 0xcc]
push ecx
call fcn.1001d3cd
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.10012b34
cmp dword [esp + 0xa8], edi
jb 0x10005808
mov edx, dword [esp + 0x94]
push edx
jmp 0x10005800
cmp dword [esp + 0xa8], 8
jb 0x10005808
mov eax, dword [esp + 0x94]
push eax
call fcn.1001d3cd
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.1001cefd
add esp, 0x4f0
ret