Function at 0x45befb
Capabilities:
Delete file

Disassembly:
push 0x1f0
mov eax, 0x571651
call fcn.00523c97
mov eax, dword [ebp + 8]
xor edi, edi
mov ebx, ecx
mov esi, edx
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x150], edi
mov dword [ebp - 0x14c], edi
mov dword [ebp - 0x148], edi
push esi
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 4], edi
call fcn.0045ca06
mov byte [ebp - 4], 1
mov eax, dword [esi + 0xb0]
sub eax, dword [esi + 0xac]
push 0x5c
cdq
pop ecx
idiv ecx
mov dword [ebp - 0x134], edi
test eax, eax
je 0x45c02d
mov eax, dword [ebp - 0x13c]
push edi
call fcn.00491c88
test al, al
jne 0x45c0a0
mov edi, dword [ebp - 0x134]
mov ebx, dword [esi + 0xac]
imul edi, edi, 0x5c
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x30]
add ebx, edi
push eax
call fcn.004292e2
pop ecx
pop ecx
mov byte [ebp - 4], 2
mov ecx, dword [esi + 0xac]
lea eax, [ebp - 0x30]
add ecx, edi
push eax
call fcn.0045bd6f
mov edi, eax
test edi, edi
je 0x45bfed
lea eax, [ebp - 0x134]
lea esi, [ebp - 0x150]
call fcn.00505667
cmp edi, 4
je 0x45bfd2
cmp edi, 3
jne 0x45bfed
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x45bfde
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x45c0b8
push 1
xor edi, edi
lea esi, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00404145
mov ecx, dword [ebp - 0x138]
mov eax, dword [ecx + 0xb0]
sub eax, dword [ecx + 0xac]
push 0x5c
cdq
pop ecx
idiv ecx
inc dword [ebp - 0x134]
mov esi, dword [ebp - 0x138]
cmp dword [ebp - 0x134], eax
jb 0x45bf68
mov eax, dword [ebp - 0x13c]
push edi
call fcn.00491c88
test al, al
jne 0x45c0a0
cmp dword [ebp - 0x38], 8
mov ebx, dword [ebp - 0x4c]
jae 0x45c049
lea ebx, [ebp - 0x4c]
call fcn.0048e5e6
test al, al
jne 0x45c149
lea eax, [ebp - 0x1fc]
push eax
call fcn.004036c8
mov esi, eax
push str.Cannot_create_path_for_package:
push esi
mov byte [ebp - 4], 5
call fcn.00405d7d
push esi
lea ecx, [ebp - 0x4c]
call fcn.0041193b
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
mov eax, esi
call fcn.00403732
mov byte [ebp - 4], 6
push 0x294
mov ecx, str.srcPackageManager.cpp
lea eax, [ebp - 0x68]
call fcn.004025fb
lea ebx, [ebp - 0x114]
call fcn.0049d9c5
push 0x5c98f0
mov eax, ebx
push eax
call fcn.0051ed55
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x1fc]
push eax
call fcn.004036c8
mov edi, eax
push str.Cannot_delete_incorrect_package_file_
push edi
mov byte [ebp - 4], 3
call fcn.00405d7d
push edi
lea ecx, [ebp - 0x30]
call fcn.0041193b
add esp, 0xc
push str.:_DeleteFile_failed_with
push edi
call fcn.00405d7d
pop ecx
pop ecx
push esi
push edi
call fcn.0041056c
lea eax, [ebp - 0x68]
push eax
mov eax, edi
call fcn.00403732
mov byte [ebp - 4], 4
test esi, esi
jle 0x45c11c
and esi, 0xffff
or esi, 0x80070000
push 1
push 0x286
push str.srcPackageManager.cpp
push esi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.0049844a
push 0x5c983c
lea eax, [ebp - 0x114]
jmp 0x45c0b2
mov eax, dword [ebp - 0x14c]
sub eax, dword [ebp - 0x150]
mov dword [ebp - 0x134], edi
sar eax, 2
mov dword [ebp - 0x160], eax
cmp eax, edi
jbe 0x45c269
lea eax, [esi + 0x90]
mov dword [ebp - 0x154], eax
jmp 0x45c180
mov esi, dword [ebp - 0x138]
mov eax, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x134]
mov edi, dword [eax + ecx*4]
mov ebx, dword [ebp - 0x154]
lea eax, [ebp - 0x84]
push 0x587ef8
push eax
call fcn.004100cb
mov ebx, edi
imul ebx, ebx, 0x5c
mov byte [ebp - 4], 7
mov edx, dword [esi + 0xac]
add edx, ebx
add edx, 0x1c
push edx
lea ecx, [ebp - 0x68]
push ecx
mov ecx, eax
mov dword [ebp - 0x158], ebx
call fcn.0041028b
add esp, 0x10
push 1
xor edi, edi
lea esi, [ebp - 0x84]
mov byte [ebp - 4], 9
call fcn.00404145
mov esi, dword [ebp - 0x138]
add ebx, dword [esi + 0xac]
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x30]
push ecx
call fcn.004292e2
pop ecx
pop ecx
push dword [ebp - 0x13c]
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x140]
mov byte [ebp - 4], 0xa
push dword [eax + 0xc]
lea ecx, [ebp - 0x68]
call fcn.004545eb
mov ecx, dword [esi + 0xac]
add ecx, dword [ebp - 0x158]
lea eax, [ebp - 0x30]
push eax
call fcn.0045bd6f
test eax, eax
jne 0x45c2c7
push 1
lea esi, [ebp - 0x30]
call fcn.00404145
push 1
lea esi, [ebp - 0x68]
mov byte [ebp - 4], 1
call fcn.00404145
inc dword [ebp - 0x134]
mov eax, dword [ebp - 0x134]
cmp eax, dword [ebp - 0x160]
jb 0x45c17a
mov eax, dword [ebp - 0x14c]
cmp dword [ebp - 0x150], eax
je 0x45c2a8
lea edi, [ebp - 0x164]
call fcn.004930b5
mov ecx, dword [eax]
mov edx, dword [ebp - 0x138]
mov dword [edx + 0xc0], ecx
mov eax, dword [eax + 4]
mov dword [edx + 0xc4], eax
mov eax, dword [ebp - 0x140]
mov ecx, dword [eax + 0x14]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push 1
xor edi, edi
lea esi, [ebp - 0x4c]
call fcn.00404145
lea esi, [ebp - 0x150]
call fcn.00426e9d
call fcn.00523d1a
ret 4
push dword [esi]
lea eax, [ebp - 0x130]
push eax
call fcn.0045b3e4
pop ecx
pop ecx
mov edi, eax
lea eax, [ebp - 0x1fc]
push eax
mov byte [ebp - 4], 0xb
call fcn.004036c8
mov esi, eax
push str.Check_failed_for_file_
push esi
mov byte [ebp - 4], 0xc
call fcn.00405d7d
push esi
lea ecx, [ebp - 0x30]
call fcn.0041193b
add esp, 0xc
push str._of_package_
push esi
call fcn.00405d7d
push esi
mov ecx, edi
call fcn.0041193b
add esp, 0xc
push str.._Installation_aborted.
push esi
call fcn.00405d7d
pop ecx
pop ecx
lea eax, [ebp - 0x84]
push eax
mov eax, esi
call fcn.00403732
mov byte [ebp - 4], 0xd
push 0x2ac
mov ecx, str.srcPackageManager.cpp
lea eax, [ebp - 0x84]
jmp 0x45c09b