Function at 0x403798
Capabilities:
Delete file

Disassembly:
push 0x14
mov eax, 0x57a9a1
call fcn.0054d3c4
mov ebx, dword [ebp + 0xc]
xor esi, esi
push 0x58bf8c
mov ecx, ebx
mov dword [ebp - 4], esi
call fcn.00406c3c
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x18]
call fcn.00401ed2
push dword [ebp - 0x18]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov byte [ebp - 4], 1
call edi
push eax
lea ecx, [ebp + 0xc]
call fcn.00401ed2
lea ecx, [ebp - 0x10]
call fcn.00401fc2
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 3
push str..exe
push eax
call fcn.00402189
pop ecx
pop ecx
test al, al
jne 0x40381a
lea eax, [ebp + 0xc]
push str..msi
push eax
call fcn.00402189
pop ecx
pop ecx
test al, al
je 0x403955
push esi
push 0x58c2e8
lea ecx, [ebp + 8]
call fcn.00403b61
cmp eax, 0xffffffff
jne 0x403955
push esi
push 0x58c1b0
lea ecx, [ebp + 8]
call fcn.00403b61
cmp eax, 0xffffffff
jne 0x403955
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push 0x58bf8c
push eax
call fcn.004022f4
add esp, 0xc
mov eax, dword [eax]
mov ecx, ebx
mov byte [ebp - 4], 4
push dword [eax - 0xc]
push eax
call fcn.00403132
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.00406137
mov esi, dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push ecx
mov edi, esp
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x20], edi
mov eax, dword [ebx]
sub eax, 0x10
push eax
call fcn.00403470
add eax, 0x10
mov dword [edi], eax
mov edi, esp
mov byte [ebp - 4], 5
mov dword [ebp - 0x20], edi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.00403470
add eax, 0x10
mov dword [edi], eax
pop ecx
mov byte [ebp - 4], 3
call fcn.00404172
add esp, 0xc
mov edi, eax
cmp dword [ebp - 0x14], 0x11170
jae 0x403924
cmp dword [esi - 0xc], 0
je 0x403924
lea eax, [ebp - 0x14]
push eax
push ecx
mov edi, esp
mov dword [ebp - 0x20], esp
mov dword [ebp - 0x1c], edi
mov eax, dword [ebx]
sub eax, 0x10
push eax
call fcn.00403470
add eax, 0x10
mov dword [edi], eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 6
mov edi, esp
push eax
mov dword [ebp - 0x1c], edi
call fcn.00403470
add eax, 0x10
mov dword [edi], eax
pop ecx
mov byte [ebp - 4], 3
call fcn.00404172
add esp, 0xc
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.00406137
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00406137
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00406137
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00406137
mov eax, edi
call fcn.0054d392
ret
lea eax, [ebp - 0x10]
push eax
push ecx
mov esi, esp
mov dword [ebp - 0x14], esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.00403470
add eax, 0x10
pop ecx
mov dword [esi], eax
call fcn.004043dc
pop ecx
pop ecx
test eax, eax
jne 0x40387d
mov esi, dword [ebp - 0x10]
push esi
call edi
push eax
lea ecx, [ebp + 0xc]
call fcn.00406950
lea eax, [ebp + 0xc]
push str..exe
push eax
call fcn.00402189
pop ecx
pop ecx
test al, al
jne 0x4039c8
lea eax, [ebp + 0xc]
push str..msi
push eax
call fcn.00402189
pop ecx
pop ecx
test al, al
jne 0x4039c8
push str.Setup.exe
mov ecx, ebx
call fcn.004030fd
jmp 0x403880
push dword [ebp + 0xc]
push 0x58c2ec
push ebx
call fcn.004031c1
add esp, 0xc
jmp 0x403880