Function at 0x51d5e0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7b0b0e
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x89b044]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x60], ecx
push 0x7f1f78
push 0x7f1f7c
push 0x7f1f9c
push reloc.OLEAUT32.dll_SysReAllocString
lea eax, [ebp - 0x10]
push eax
call fcn.00618c30
add esp, 0x14
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00403b90
movzx ecx, al
test ecx, ecx
je 0x51d652
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00405ef0
jmp 0x51dadb
push str.tomorrow
lea edx, [ebp - 0x10]
push edx
call fcn.0040cb00
add esp, 8
movzx eax, al
test eax, eax
je 0x51dacc
push 0x7f1fe0
push 0x7f1fe4
push 0x7f1ffc
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x14]
push ecx
call fcn.00618c30
add esp, 0x14
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00403b90
movzx edx, al
test edx, edx
je 0x51d6c1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00405ef0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00405ef0
jmp 0x51dadb
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0x3c]
push eax
call fcn.007200ab
add esp, 4
lea ecx, [ebp - 0x14]
push ecx
call fcn.00613080
add esp, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0060f9a0
add esp, 0x10
test eax, eax
jne 0x51d729
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00405ef0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00405ef0
jmp 0x51dadb
lea eax, [ebp - 0x24]
push eax
call fcn.00615af0
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.00405e80
push eax
push str.DelayCreateIcon
push 0x7f204c
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0060f8a0
add esp, 0x10
lea ecx, [ebp - 0x50]
push ecx
call fcn.00409390
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4c]
call fcn.00405e90
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.00405e90
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x30]
call fcn.00405e90
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x18]
call fcn.00405e90
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x48]
call fcn.00405e90
mov byte [ebp - 4], 8
mov dword [ebp - 0x44], 0
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x48]
push eax
push 0
lea ecx, [ebp - 0x50]
call fcn.00405e80
push eax
call fcn.00618df0
add esp, 0x1c
test eax, eax
je 0x51d8e1
push 1
lea ecx, [ebp - 0x54]
push ecx
call fcn.00407d60
add esp, 8
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x54]
call fcn.00403b90
movzx edx, al
test edx, edx
jne 0x51d80b
push 0x7f207c
lea ecx, [ebp - 0x54]
call fcn.004036b0
jmp 0x51d83c
lea eax, [ebp - 0x58]
push eax
call fcn.006185d0
add esp, 4
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x68], ecx
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x68]
push edx
lea ecx, [ebp - 0x54]
call fcn.00403670
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x58]
call fcn.00405ef0
lea ecx, [ebp - 0x54]
call fcn.00405e80
push eax
lea ecx, [ebp - 0x1c]
call fcn.00513bc0
test eax, eax
jne 0x51d8d5
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x54]
call fcn.00405ef0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x48]
call fcn.00405ef0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x18]
call fcn.00405ef0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x30]
call fcn.00405ef0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.00405ef0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4c]
call fcn.00405ef0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
call fcn.00405ef0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00405ef0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00405ef0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00405ef0
jmp 0x51dadb
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x54]
call fcn.00405ef0
lea ecx, [ebp - 0x10]
call fcn.00406470
push eax
push str.CMainUIController::_CheckDelayCreateDeskIcon__strategy_s__do_create.
call fcn.00609080
add esp, 8
lea ecx, [ebp - 0x48]
call fcn.00405e80
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x51d92f
lea ecx, [ebp - 0x48]
call fcn.00405e80
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x48]
call fcn.00406470
push eax
push str.CMainUIController::_CheckDelayCreateDeskIcon__delete_old_icon__s.
call fcn.00609080
add esp, 8
push 0x7f212c
push str.DelayCreateIconFrom
push 0x7f21e0
push reloc.OLEAUT32.dll_SysReAllocString
lea eax, [ebp - 0x20]
push eax
call fcn.00618c30
add esp, 0x14
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x3d]
call fcn.0041ca90
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x20]
call fcn.00405e80
push eax
push 0
lea ecx, [ebp - 0x3d]
call fcn.0041e190
test eax, eax
jne 0x51da1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CMainUIController::_CheckDelayCreateDeskIcon__create_failed__error_d
call fcn.00609080
add esp, 8
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x3d]
call sub.ole32.dll_CoUninitialize
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x20]
call fcn.00405ef0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x48]
call fcn.00405ef0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x18]
call fcn.00405ef0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x30]
call fcn.00405ef0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.00405ef0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4c]
call fcn.00405ef0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
call fcn.00405ef0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00405ef0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00405ef0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00405ef0
jmp 0x51dadb
sub esp, 0x20
mov ecx, esp
mov dword [ebp - 0x5c], esp
push 0
call fcn.00432bb0
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x70], ecx
mov byte [ebp - 4], 0xd
push 1
push 0
push str.delay_add_dsk
push str.install
call fcn.00403df0
mov byte [ebp - 4], 0xc
mov ecx, eax
call fcn.00402730
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x3d]
call sub.ole32.dll_CoUninitialize
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x20]
call fcn.00405ef0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x48]
call fcn.00405ef0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x18]
call fcn.00405ef0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x30]
call fcn.00405ef0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.00405ef0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4c]
call fcn.00405ef0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
call fcn.00405ef0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00405ef0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00405ef0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00405ef0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret