Function at 0x10001883
Capabilities:
Check if file exists
Delete registry value
Get common file path
Print debug messages

Disassembly:
push 0x4e4
mov eax, 0x1005e00f
call fcn.1004262a
mov eax, dword [ebp + 8]
mov dword [ebp - 0x49c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x498], eax
mov eax, dword [ebp + 0x1c]
mov esi, str.wfchost.exe
push esi
mov dword [ebp - 0x4f0], eax
xor ebx, ebx
lea eax, [ebp - 0x43c]
push ebx
push eax
call fcn.1002cc1e
add esp, 0xc
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x424], 8
mov eax, dword [ebp - 0x438]
jae 0x100018dd
lea eax, [ebp - 0x438]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
jne 0x10001966
push 0x206
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push ebx
push eax
call fcn.10046720
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
mov ebx, esi
xor ecx, ecx
call fcn.10027248
lea eax, [ebp - 0x420]
push eax
call edi
test eax, eax
jne 0x1000193c
xor edi, edi
xor ebx, ebx
push ebx
push 1
lea esi, [ebp - 0x43c]
call fcn.10004e12
mov eax, edi
jmp 0x10001f86
lea eax, [ebp - 0x420]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10001945
sub eax, edx
sar eax, 1
lea ecx, [ebp - 0x420]
lea esi, [ebp - 0x43c]
call fcn.100053f4
xor ebx, ebx
cmp dword [ebp - 0x498], ebx
jne 0x10001978
mov dword [ebp - 0x498], 0x10062ed4
push ebx
cmp dword [ebp - 0x49c], ebx
je 0x10001f77
push ebx
lea eax, [ebp - 0x4d0]
call fcn.10031e83
push 0x10063564
lea esi, [ebp - 0x4ec]
mov byte [ebp - 4], 3
call fcn.100048dd
mov eax, esi
push eax
lea eax, [ebp - 0x4b8]
push eax
mov byte [ebp - 4], 4
call fcn.10001246
sub esp, 0x10
mov byte [ebp - 4], 5
mov edx, eax
mov esi, esp
mov dword [ebp - 0x494], esp
call fcn.10030f74
lea eax, [ebp - 0x4d0]
push eax
mov edx, str.title
mov byte [ebp - 4], 6
call fcn.100321b8
mov edi, eax
mov byte [ebp - 4], 5
call fcn.100311c7
push ebx
push 1
lea ecx, [ebp - 0x4b8]
call fcn.10004d1a
push ebx
push 1
lea esi, [ebp - 0x4ec]
mov byte [ebp - 4], 3
call fcn.10004e12
push dword [ebp - 0x49c]
lea esi, [ebp - 0x4ec]
call fcn.100048dd
mov eax, esi
push eax
lea eax, [ebp - 0x4b8]
push eax
mov byte [ebp - 4], 7
call fcn.10001246
sub esp, 0x10
mov byte [ebp - 4], 8
mov edx, eax
mov esi, esp
mov dword [ebp - 0x494], esp
call fcn.10030f74
lea eax, [ebp - 0x4d0]
push eax
mov edx, str.content
mov byte [ebp - 4], 9
call fcn.100321b8
mov edi, eax
mov byte [ebp - 4], 8
call fcn.100311c7
push ebx
push 1
lea ecx, [ebp - 0x4b8]
call fcn.10004d1a
push ebx
push 1
lea esi, [ebp - 0x4ec]
mov byte [ebp - 4], 3
call fcn.10004e12
push dword [ebp - 0x498]
lea esi, [ebp - 0x4ec]
call fcn.100048dd
mov byte [ebp - 4], 0xa
mov eax, esi
push eax
lea eax, [ebp - 0x4b8]
push eax
call fcn.10001246
sub esp, 0x10
mov byte [ebp - 4], 0xb
mov edx, eax
mov esi, esp
mov dword [ebp - 0x494], esp
call fcn.10030f74
lea eax, [ebp - 0x4d0]
push eax
mov edx, str.btnText
mov byte [ebp - 4], 0xc
call fcn.100321b8
mov edi, eax
mov byte [ebp - 4], 0xb
call fcn.100311c7
push ebx
push 1
lea ecx, [ebp - 0x4b8]
call fcn.10004d1a
push ebx
push 1
lea esi, [ebp - 0x4ec]
mov byte [ebp - 4], 3
call fcn.10004e12
push str.rtmessage.png
lea esi, [ebp - 0x4ec]
call fcn.100048dd
mov eax, esi
push eax
lea eax, [ebp - 0x4b8]
push eax
mov byte [ebp - 4], 0xd
call fcn.10001246
sub esp, 0x10
mov byte [ebp - 4], 0xe
mov edx, eax
mov esi, esp
mov dword [ebp - 0x494], esp
call fcn.10030f74
lea eax, [ebp - 0x4d0]
push eax
mov edx, str.icoName
mov byte [ebp - 4], 0xf
call fcn.100321b8
mov edi, eax
mov byte [ebp - 4], 0xe
call fcn.100311c7
push ebx
push 1
lea ecx, [ebp - 0x4b8]
call fcn.10004d1a
push ebx
push 1
lea esi, [ebp - 0x4ec]
call fcn.10004e12
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x494], esp
push ebx
call fcn.10030e63
lea eax, [ebp - 0x4d0]
push eax
mov edx, str.showNotAlert
mov byte [ebp - 4], 0x19
call fcn.100321b8
mov edi, eax
mov byte [ebp - 4], 3
call fcn.100311c7
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x494], esp
push ebx
call fcn.10030e63
lea eax, [ebp - 0x4d0]
push eax
mov edx, str.runas
mov byte [ebp - 4], 0x1a
call fcn.100321b8
mov edi, eax
mov byte [ebp - 4], 3
call fcn.100311c7
xor eax, eax
cmp dword [ebp + 0x10], ebx
setne al
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x494], esp
push eax
call fcn.10030e63
lea eax, [ebp - 0x4d0]
push eax
mov edx, str.fullscreen
mov byte [ebp - 4], 0x1e
call fcn.100321b8
mov edi, eax
mov byte [ebp - 4], 3
call fcn.100311c7
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x494], esp
push dword [ebp + 0x14]
call fcn.10030e63
lea eax, [ebp - 0x4d0]
push eax
mov edx, str.closeExpired
mov byte [ebp - 4], 0x1f
call fcn.100321b8
mov edi, eax
mov byte [ebp - 4], 3
call fcn.100311c7
lea esi, [ebp - 0x490]
call fcn.100060fb
mov byte [ebp - 4], 0x20
cmp dword [ebp + 0x18], ebx
je 0x10001c8b
sub esp, 0x18
mov edx, esi
mov esi, esp
mov dword [ebp - 0x494], esp
call fcn.10030f74
lea eax, [ebp - 0x4d0]
push eax
mov edx, str.receiptId
mov byte [ebp - 4], 0x21
call fcn.100321b8
mov edi, eax
mov byte [ebp - 4], 0x20
call fcn.100311c7
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.10046720
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x4b8]
call fcn.1000615b
cmp dword [eax + 0x18], 8
jb 0x10001cd1
mov eax, dword [eax + 4]
jmp 0x10001cd4
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 - 0x4b8]
call fcn.10004e12
lea eax, [ebp - 0x4d0]
push eax
lea ecx, [ebp - 0x4b8]
call fcn.1003264a
push eax
lea eax, [ebp - 0x474]
push eax
mov byte [ebp - 4], 0x22
call fcn.1003a4df
pop ecx
pop ecx
push ebx
push edi
lea ecx, [ebp - 0x4b8]
mov byte [ebp - 4], 0x24
call fcn.10004d1a
cmp dword [ebp - 0x45c], 0x10
mov eax, dword [ebp - 0x470]
jae 0x10001d3d
lea eax, [ebp - 0x470]
push dword [ebp - 0x460]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.100272ec
call fcn.100288a1
mov esi, eax
cmp esi, ebx
je 0x10001d70
push esi
push 4
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
call fcn.1002887d
cmp dword [ebp - 0x424], 8
mov eax, dword [ebp - 0x438]
jae 0x10001d85
lea eax, [ebp - 0x438]
lea ecx, [ebp - 0x218]
push ecx
push eax
push str.__ls___common__ls
lea ecx, [ebp - 0x458]
call fcn.10028d88
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 0x10001dc0
lea eax, [ebp - 0x454]
push eax
call fcn.100280dd
mov dword [ebp - 0x498], eax
cmp eax, ebx
jne 0x10001e15
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
je 0x10001dea
call esi
cmp eax, 0x522
jne 0x10001f2a
cmp dword [ebp - 0x440], 8
mov eax, dword [ebp - 0x454]
jae 0x10001dff
lea eax, [ebp - 0x454]
push eax
mov eax, edi
call fcn.10027e26
mov dword [ebp - 0x498], eax
cmp eax, ebx
je 0x10001f2a
cmp dword [ebp + 0x18], ebx
je 0x10001ee4
push 0xffffffffffffffff
push dword [ebp - 0x498]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x10001ee4
lea eax, [ebp - 0x490]
push eax
lea ecx, [ebp - 0x4ec]
call fcn.10001206
pop ecx
mov byte [ebp - 4], 0x26
cmp dword [eax + 0x18], 8
jb 0x10001e59
mov eax, dword [eax + 4]
jmp 0x10001e5c
add eax, 4
push eax
mov edi, str.Softwareprojonepodlp_smpcache_
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, edi
lea esi, [ebp - 0x4b8]
call fcn.10028f39
pop ecx
pop ecx
push 0xffffffffffffffff
push dword [ebp - 0x4f0]
xor ebx, ebx
mov byte [ebp - 4], 0x27
call fcn.10004d65
push ebx
push 1
call fcn.10004e12
push ebx
push 1
lea esi, [ebp - 0x4ec]
mov byte [ebp - 4], 0x25
call fcn.10004e12
lea eax, [ebp - 0x490]
push eax
lea ecx, [ebp - 0x4b8]
call fcn.10001206
cmp dword [eax + 0x18], 8
pop ecx
jb 0x10001ec1
mov eax, dword [eax + 4]
jmp 0x10001ec4
add eax, 4
push eax
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
push ebx
push 1
lea esi, [ebp - 0x4b8]
call fcn.10004e12
xor edi, edi
xor ebx, ebx
inc edi
push dword [ebp - 0x498]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
lea esi, [ebp - 0x458]
call fcn.10004e12
push ebx
push edi
lea ecx, [ebp - 0x474]
call fcn.10004d1a
push ebx
push edi
lea ecx, [ebp - 0x490]
call fcn.10004d1a
lea esi, [ebp - 0x4d0]
mov byte [ebp - 4], bl
call fcn.10031144
jmp 0x10001927
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.ShowClientNotify_failed:
call esi
push 0x10063564
call esi
push ebx
push edi
lea esi, [ebp - 0x458]
call fcn.10004e12
push ebx
push edi
lea ecx, [ebp - 0x474]
call fcn.10004d1a
push ebx
push edi
lea ecx, [ebp - 0x490]
call fcn.10004d1a
lea esi, [ebp - 0x4d0]
mov byte [ebp - 4], bl
call fcn.10031144
push ebx
push edi
jmp 0x10001f79
push 1
lea esi, [ebp - 0x43c]
call fcn.10004e12
xor eax, eax
call fcn.100426ad
ret