Function at 0x405de0
Capabilities:
Check if file exists
Delete file
Get common file path
Get program files directory

Disassembly:
push 0xffffffffffffffff
push 0x44f447
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x4655f0]
xor eax, esp
mov dword [esp + 0x24c], eax
push ebp
push esi
push edi
mov eax, dword [0x4655f0]
xor eax, esp
push eax
lea eax, [esp + 0x260]
mov dword fs:[0], eax
push 0x103
xor ebp, ebp
lea eax, [esp + 0x59]
push ebp
push eax
mov byte [esp + 0x60], 0
call fcn.0043b390
add esp, 0xc
push ebp
push 0x26
lea ecx, [esp + 0x5c]
push ecx
push ebp
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edx, [esp + 0x54]
push 0x456f6e
push edx
call fcn.004369f3
add esp, 8
test eax, eax
jne 0x405e70
push str.C:Program_Files
lea eax, [esp + 0x58]
push 0x104
push eax
call fcn.00437c78
add esp, 0xc
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x14]
call fcn.004017a0
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x26c], ebp
call fcn.00406d30
lea eax, [esp + 0x158]
push eax
push ebp
push ebp
push ebp
push ebp
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x4060ae
push 2
push ebp
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov esi, 0xf
lea eax, [esp + 0x158]
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebp
mov byte [esp + 0x20], 0
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x405ed0
sub eax, edx
push eax
lea ecx, [esp + 0x15c]
push ecx
lea ecx, [esp + 0x24]
call fcn.004071b0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x3c]
push eax
mov edi, 0x4578ac
mov byte [esp + 0x270], 1
call fcn.004075f0
add esp, 8
mov edi, 0x10
mov byte [esp + 0x268], 3
cmp dword [esp + 0x34], edi
jb 0x405f2c
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004181cf
add esp, 4
cmp dword [esp + 0x50], edi
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebp
mov byte [esp + 0x20], 0
jae 0x405f47
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x405f67
cmp dword [esp + 0x50], edi
mov eax, dword [esp + 0x3c]
jae 0x405f60
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.00418933
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x405f81
push 0x80004005
call fcn.00401640
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x268], 4
call fcn.00418933
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x405fb3
push 0x80004005
call fcn.00401640
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x4575bc
mov byte [esp + 0x26c], 5
mov ecx, dword [esp + 0x14]
push str.Fileham.comFileHamBrowser
push ecx
lea edx, [esp + 0x24]
push str._s_s_s
push edx
call fcn.00401d60
mov eax, dword [esp + 0x24]
push 0x4578c0
push str.Fileham.comFileHamBrowser
push eax
lea ecx, [esp + 0x34]
push str._s_s_s
push ecx
call fcn.00401d60
mov ecx, dword [esp + 0x64]
add esp, 0x28
cmp dword [esp + 0x50], edi
jae 0x406018
lea ecx, [esp + 0x3c]
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
push esi
push ebp
mov edi, 0x4578d4
call fcn.00417fa0
add esp, 8
call dword [sym.imp.ole32.dll_CoUninitialize]
lea eax, [esi - 0x10]
mov byte [esp + 0x268], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406059
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x268], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40607d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x268], 0
cmp dword [esp + 0x50], 0x10
jb 0x406099
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.004181cf
add esp, 4
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
mov dword [esp + 0x268], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4060d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x24c]
xor ecx, esp
call fcn.00437030
add esp, 0x25c
ret