Function at 0x407d10
Capabilities:
Check if file exists
Delete file
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b84be
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x4e8070]
xor eax, esp
mov dword [esp + 0xc0], eax
push ebx
push esi
push edi
mov eax, dword [0x4e8070]
xor eax, esp
push eax
lea eax, [esp + 0xd8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push str.type
lea ecx, [esp + 0x64]
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ebx
call fcn.00403461
sub esp, 0x1c
mov dword [esp + 0xfc], ebx
mov ecx, esp
mov dword [esp + 0x34], esp
mov edi, 0x4c102f
push edi
call fcn.00403461
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0xb8]
push eax
call fcn.0040694a
add esp, 0x24
push ebx
push 1
lea ecx, [esp + 0x68]
mov byte [esp + 0xe8], 2
call fcn.00403db0
mov edx, dword [esp + 0xac]
push 0xc
push str.wfctSecShare
lea eax, [esp + 0xa0]
call fcn.00403d5f
test eax, eax
je 0x407e56
mov edx, dword [esp + 0xac]
push 0xb
push str.wfctDecrypt
lea eax, [esp + 0xa0]
call fcn.00403d5f
test eax, eax
je 0x407e56
mov edx, dword [esp + 0xac]
push 0xf
push str.wfctRemoveDocwm
lea eax, [esp + 0xa0]
call fcn.00403d5f
test eax, eax
je 0x407e56
mov edx, dword [esp + 0xac]
push 0xc
push 0x4c1728
lea eax, [esp + 0xa0]
call fcn.00403d5f
test eax, eax
je 0x407e56
mov edx, dword [esp + 0xac]
push 8
push str.wfctBurn
lea eax, [esp + 0xa0]
call fcn.00403d5f
test eax, eax
jne 0x408127
push dword [esp + 0x14]
mov esi, str.attachment
mov edx, esi
call fcn.00437a7b
cmp byte [eax + 8], 4
jne 0x407ed2
lea eax, [esp + 0xb4]
push eax
push ecx
push dword [esp + 0x1c]
mov edx, esi
call fcn.00437a7b
pop ecx
push eax
call fcn.00436d1d
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0xe4], 3
call fcn.00401215
cmp dword [eax + 0x18], 8
pop ecx
jb 0x407ea5
mov eax, dword [eax + 4]
jmp 0x407ea8
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push 1
lea esi, [esp + 0x30]
call fcn.00403ead
push ebx
push 1
lea ecx, [esp + 0xbc]
mov byte [esp + 0xe8], 2
call fcn.00403db0
mov edx, dword [esp + 0xac]
push 0xb
push str.wfctDecrypt
lea eax, [esp + 0xa0]
call fcn.00403d5f
test eax, eax
je 0x407f4e
mov edx, dword [esp + 0xac]
push 0xf
push str.wfctRemoveDocwm
lea eax, [esp + 0xa0]
call fcn.00403d5f
test eax, eax
je 0x407f4e
mov edx, dword [esp + 0xac]
push 0xc
push 0x4c1728
lea eax, [esp + 0xa0]
call fcn.00403d5f
test eax, eax
je 0x407f4e
mov edx, dword [esp + 0xac]
push 8
push str.wfctBurn
lea eax, [esp + 0xa0]
call fcn.00403d5f
test eax, eax
jne 0x408127
push ebx
push ebx
lea eax, [esp + 0x4c]
call fcn.004377e8
push str.addition
lea ecx, [esp + 0xb8]
mov byte [esp + 0xe4], 6
call fcn.00403461
lea eax, [esp + 0x44]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
mov byte [esp + 0x100], 7
push edi
mov dword [esp + 0x3c], 1
call fcn.00403461
mov esi, dword [esp + 0x34]
lea eax, [esp + 0xd4]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.0040694a
add esp, 0x24
mov dword [esp + 0xe4], 8
mov ecx, eax
mov dword [esp + 0x1c], 3
call fcn.00401475
pop ecx
test al, al
je 0x407fda
cmp byte [esp + 0x4c], 7
mov byte [esp + 0x13], 1
je 0x407fde
mov byte [esp + 0x13], bl
push ebx
push 1
lea ecx, [esp + 0x30]
call fcn.00403db0
push ebx
push 1
lea ecx, [esp + 0xbc]
mov dword [esp + 0xe8], 6
call fcn.00403db0
cmp byte [esp + 0x13], bl
je 0x408116
push str.__attach
lea ecx, [esp + 0x2c]
call fcn.00403461
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push edi
mov byte [esp + 0x100], 9
call fcn.00403461
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x9c]
push eax
lea esi, [esp + 0x68]
call fcn.0040694a
add esp, 0x24
push eax
lea ecx, [esp + 0xb8]
mov byte [esp + 0xe4], 0xa
call fcn.00401215
pop ecx
push ebx
push 1
lea ecx, [esp + 0x84]
call fcn.00403db0
push ebx
push 1
lea ecx, [esp + 0x30]
mov byte [esp + 0xe8], 0xd
call fcn.00403db0
mov eax, dword [esp + 0xb8]
push 8
pop esi
cmp dword [esp + 0xcc], esi
jae 0x40809f
lea eax, [esp + 0xb8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x408107
mov eax, dword [esp + 0xb8]
cmp dword [esp + 0xcc], esi
jae 0x4080c1
lea eax, [esp + 0xb8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4080eb
mov eax, dword [esp + 0xb8]
cmp dword [esp + 0xcc], esi
jae 0x4080e3
lea eax, [esp + 0xb8]
push eax
call fcn.0042d89c
jmp 0x408107
cmp dword [esp + 0xcc], esi
mov esi, dword [esp + 0xb8]
jae 0x408102
lea esi, [esp + 0xb8]
call fcn.0042d86e
push ebx
push 1
lea esi, [esp + 0xbc]
call fcn.00403ead
lea esi, [esp + 0x44]
mov byte [esp + 0xe0], 2
call fcn.00436b2e
push dword [esp + 0x20]
push dword [esp + 0x28]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
push ebx
push 1
lea ecx, [esp + 0xa0]
call fcn.00403db0
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.0049795f
mov esp, ebp
pop ebp
ret