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

Disassembly:
push 0xffffffffffffffff
push 0x45e0c8
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 0x40d6c4
add eax, 4
mov dword [esp + 0x14], eax
mov eax, dword [eax]
jmp 0x40d6cb
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 0x40d86d
cmp dword [ebp + 0x34], esi
lea ebx, [ebp + 0x1c]
jb 0x40d6ea
mov eax, dword [ebx + 4]
jmp 0x40d6ed
lea eax, [ebx + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d86d
cmp dword [ebp + 0x8c], edi
jne 0x40d713
mov ecx, ebp
call sym.Install.exe_protected:_bool___thiscall_CShortcut::InitLinkInstance_void_
test al, al
je 0x40d8b8
cmp dword [ebx + 0x18], esi
jb 0x40d71d
mov ecx, dword [ebx + 4]
jmp 0x40d720
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 0x40d750
cmp dword [ebp + 0x18], esi
jb 0x40d73e
mov ecx, dword [ebp + 4]
jmp 0x40d741
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.0040e0d0
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 0x40d796
mov ecx, dword [esp + 0x5c]
cmp dword [esp + 0x70], esi
jae 0x40d787
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 0x40d7ba
cmp dword [ebp + 0x6c], esi
jb 0x40d7a6
mov ecx, dword [ebp + 0x58]
jmp 0x40d7a9
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 0x40d7f0
cmp dword [esp + 0x70], esi
jb 0x40d8b8
mov ecx, dword [esp + 0x5c]
jmp 0x40d8af
mov edx, dword [esp + 0x1c]
cmp dword [edx + 0x18], esi
jb 0x40d801
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
jmp 0x40d805
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 0x40d860
mov eax, 0x46c234
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 0x40d8b8
lea esi, [esp + 0x58]
call fcn.004019b0
mov al, 1
jmp 0x40d8ba
xor eax, eax
mov word [esp + 0x24], ax
push 0xa
mov eax, 0x46c21c
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 0x40d8b8
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00446950
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.004468f0
add esp, 0x70
ret 4