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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b00d1
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x4dd070]
xor eax, esp
mov dword [esp + 0xc0], eax
push ebx
push esi
push edi
mov eax, dword [0x4dd070]
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.004026bb
sub esp, 0x1c
mov dword [esp + 0xfc], ebx
mov ecx, esp
mov dword [esp + 0x34], esp
mov edi, 0x4b8448
push edi
call fcn.004026bb
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0xd4]
push eax
call fcn.00406a70
add esp, 0x24
push ebx
push 1
lea ecx, [esp + 0x68]
mov byte [esp + 0xe8], 2
call fcn.00402abb
mov edx, dword [esp + 0xc8]
push 0xc
push str.wfctSecShare
lea eax, [esp + 0xbc]
call fcn.00402a6a
test eax, eax
je 0x407c69
mov edx, dword [esp + 0xc8]
push 0xb
push str.wfctDecrypt
lea eax, [esp + 0xbc]
call fcn.00402a6a
test eax, eax
je 0x407c69
mov edx, dword [esp + 0xc8]
push 0xf
push str.wfctRemoveDocwm
lea eax, [esp + 0xbc]
call fcn.00402a6a
test eax, eax
jne 0x407efe
push dword [esp + 0x14]
mov esi, str.attachment
mov edx, esi
call fcn.00431f7c
cmp byte [eax + 8], 4
jne 0x407ce5
lea eax, [esp + 0x98]
push eax
push ecx
push dword [esp + 0x1c]
mov edx, esi
call fcn.00431f7c
pop ecx
push eax
call fcn.0043121e
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0xe4], 3
call fcn.004011eb
cmp dword [eax + 0x18], 8
pop ecx
jb 0x407cb8
mov eax, dword [eax + 4]
jmp 0x407cbb
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push 1
lea esi, [esp + 0x30]
call fcn.00402bb8
push ebx
push 1
lea ecx, [esp + 0xa0]
mov byte [esp + 0xe8], 2
call fcn.00402abb
mov edx, dword [esp + 0xc8]
push 0xb
push str.wfctDecrypt
lea eax, [esp + 0xbc]
call fcn.00402a6a
test eax, eax
je 0x407d25
mov edx, dword [esp + 0xc8]
push 0xf
push str.wfctRemoveDocwm
lea eax, [esp + 0xbc]
call fcn.00402a6a
test eax, eax
jne 0x407efe
push ebx
push ebx
lea eax, [esp + 0x4c]
call fcn.00431ce9
push str.addition
lea ecx, [esp + 0x9c]
mov byte [esp + 0xe4], 6
call fcn.004026bb
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.004026bb
mov esi, dword [esp + 0x34]
lea eax, [esp + 0xb8]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.00406a70
add esp, 0x24
mov dword [esp + 0xe4], 8
mov ecx, eax
mov dword [esp + 0x1c], 3
call fcn.0040122b
pop ecx
test al, al
je 0x407db1
cmp byte [esp + 0x4c], 7
mov byte [esp + 0x13], 1
je 0x407db5
mov byte [esp + 0x13], bl
push ebx
push 1
lea ecx, [esp + 0x30]
call fcn.00402abb
push ebx
push 1
lea ecx, [esp + 0xa0]
mov dword [esp + 0xe8], 6
call fcn.00402abb
cmp byte [esp + 0x13], bl
je 0x407eed
push str.__attach
lea ecx, [esp + 0x2c]
call fcn.004026bb
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push edi
mov byte [esp + 0x100], 9
call fcn.004026bb
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x9c]
push eax
lea esi, [esp + 0x68]
call fcn.00406a70
add esp, 0x24
push eax
lea ecx, [esp + 0x9c]
mov byte [esp + 0xe4], 0xa
call fcn.004011eb
pop ecx
push ebx
push 1
lea ecx, [esp + 0x84]
call fcn.00402abb
push ebx
push 1
lea ecx, [esp + 0x30]
mov byte [esp + 0xe8], 0xd
call fcn.00402abb
mov eax, dword [esp + 0x9c]
push 8
pop esi
cmp dword [esp + 0xb0], esi
jae 0x407e76
lea eax, [esp + 0x9c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407ede
mov eax, dword [esp + 0x9c]
cmp dword [esp + 0xb0], esi
jae 0x407e98
lea eax, [esp + 0x9c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x407ec2
mov eax, dword [esp + 0x9c]
cmp dword [esp + 0xb0], esi
jae 0x407eba
lea eax, [esp + 0x9c]
push eax
call fcn.004255f3
jmp 0x407ede
cmp dword [esp + 0xb0], esi
mov esi, dword [esp + 0x9c]
jae 0x407ed9
lea esi, [esp + 0x9c]
call fcn.004255c5
push ebx
push 1
lea esi, [esp + 0xa0]
call fcn.00402bb8
lea esi, [esp + 0x44]
mov byte [esp + 0xe0], 2
call fcn.0043102f
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 + 0xbc]
call fcn.00402abb
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.0048ff11
mov esp, ebp
pop ebp
ret