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

Disassembly:
push 0xffffffffffffffff
push 0x45e078
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x476110]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x476110]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov eax, dword [esp + 0x88]
mov esi, 8
mov ebp, ecx
mov dword [esp + 0x1c], eax
cmp dword [eax + 0x18], esi
jb 0x40d664
add eax, 4
mov dword [esp + 0x14], eax
mov eax, dword [eax]
jmp 0x40d66b
add eax, 4
mov dword [esp + 0x14], eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
cmp dword [ebp + 0x30], edi
je 0x40d80d
cmp dword [ebp + 0x34], esi
lea ebx, [ebp + 0x1c]
jb 0x40d68a
mov eax, dword [ebx + 4]
jmp 0x40d68d
lea eax, [ebx + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d80d
cmp dword [ebp + 0x8c], edi
jne 0x40d6b3
mov ecx, ebp
call sym.Install.exe_protected:_bool___thiscall_CShortcut::InitLinkInstance_void_
test al, al
je 0x40d858
cmp dword [ebx + 0x18], esi
jb 0x40d6bd
mov ecx, dword [ebx + 4]
jmp 0x40d6c0
lea ecx, [ebx + 4]
mov eax, dword [ebp + 0x8c]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x50]
call eax
cmp dword [ebp + 0x14], edi
je 0x40d6f0
cmp dword [ebp + 0x18], esi
jb 0x40d6de
mov ecx, dword [ebp + 4]
jmp 0x40d6e1
lea ecx, [ebp + 4]
mov eax, dword [ebp + 0x8c]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x2c]
call eax
mov edi, 1
call fcn.0040e080
push ebx
mov ecx, eax
xor edx, edx
lea esi, [esp + 0x5c]
call fcn.00402820
mov dword [esp + 0x80], edi
cmp dword [esp + 0x6c], 0
lea esi, [edi + 7]
je 0x40d736
mov ecx, dword [esp + 0x5c]
cmp dword [esp + 0x70], esi
jae 0x40d727
lea ecx, [esp + 0x5c]
mov eax, dword [ebp + 0x8c]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x24]
call eax
cmp dword [ebp + 0x68], 0
je 0x40d75a
cmp dword [ebp + 0x6c], esi
jb 0x40d746
mov ecx, dword [ebp + 0x58]
jmp 0x40d749
lea ecx, [ebp + 0x58]
mov eax, dword [ebp + 0x8c]
mov edx, dword [eax]
push 0
push ecx
push eax
mov eax, dword [edx + 0x44]
call eax
mov eax, dword [ebp + 0x8c]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], 0
mov ecx, dword [eax]
push 0x46afa4
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jge 0x40d790
cmp dword [esp + 0x70], esi
jb 0x40d858
mov ecx, dword [esp + 0x5c]
jmp 0x40d84f
mov edx, dword [esp + 0x1c]
cmp dword [edx + 0x18], esi
jb 0x40d7a1
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
jmp 0x40d7a5
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
push 1
push ecx
push eax
mov eax, dword [edx + 0x18]
call eax
mov esi, eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
test esi, esi
jge 0x40d800
mov eax, 0x46c25c
lea ecx, [esp + 0x3c]
call fcn.00401300
push 0xffffffffffffffff
push 0
lea ecx, [ebp + 0x70]
lea eax, [esp + 0x44]
mov byte [esp + 0x88], 2
call fcn.00401900
lea esi, [esp + 0x3c]
call fcn.004019b0
lea esi, [esp + 0x58]
call fcn.004019b0
jmp 0x40d858
lea esi, [esp + 0x58]
call fcn.004019b0
mov al, 1
jmp 0x40d85a
xor eax, eax
mov word [esp + 0x24], ax
push 0xa
mov eax, 0x46c244
lea esi, [esp + 0x24]
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], edi
call fcn.00401510
push 0xffffffffffffffff
push edi
lea ecx, [ebp + 0x70]
mov eax, esi
mov dword [esp + 0x88], edi
call fcn.00401900
cmp dword [esp + 0x38], 8
jb 0x40d858
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00446900
add esp, 4
xor al, al
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.004468a0
add esp, 0x70
ret 4