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

Disassembly:
push 0xffffffffffffffff
push 0x45dfd8
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 0x40d604
add eax, 4
mov dword [esp + 0x14], eax
mov eax, dword [eax]
jmp 0x40d60b
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 0x40d7ad
cmp dword [ebp + 0x34], esi
lea ebx, [ebp + 0x1c]
jb 0x40d62a
mov eax, dword [ebx + 4]
jmp 0x40d62d
lea eax, [ebx + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d7ad
cmp dword [ebp + 0x8c], edi
jne 0x40d653
mov ecx, ebp
call sym.Install.exe_protected:_bool___thiscall_CShortcut::InitLinkInstance_void_
test al, al
je 0x40d7f8
cmp dword [ebx + 0x18], esi
jb 0x40d65d
mov ecx, dword [ebx + 4]
jmp 0x40d660
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 0x40d690
cmp dword [ebp + 0x18], esi
jb 0x40d67e
mov ecx, dword [ebp + 4]
jmp 0x40d681
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.0040e010
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 0x40d6d6
mov ecx, dword [esp + 0x5c]
cmp dword [esp + 0x70], esi
jae 0x40d6c7
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 0x40d6fa
cmp dword [ebp + 0x6c], esi
jb 0x40d6e6
mov ecx, dword [ebp + 0x58]
jmp 0x40d6e9
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 0x46afc4
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jge 0x40d730
cmp dword [esp + 0x70], esi
jb 0x40d7f8
mov ecx, dword [esp + 0x5c]
jmp 0x40d7ef
mov edx, dword [esp + 0x1c]
cmp dword [edx + 0x18], esi
jb 0x40d741
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
jmp 0x40d745
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 0x40d7a0
mov eax, 0x46c1bc
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 0x40d7f8
lea esi, [esp + 0x58]
call fcn.004019b0
mov al, 1
jmp 0x40d7fa
xor eax, eax
mov word [esp + 0x24], ax
push 0xa
mov eax, 0x46c1a4
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 0x40d7f8
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00446890
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.00446830
add esp, 0x70
ret 4