Function at 0x45ae15
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea edi, [ebx + 0x14]
lea esi, [edi + 8]
mov dword [esp + 0x2c], edi
call fcn.00451646
mov ecx, dword [ebp + 0xc]
xor esi, esi
mov dword [edi + 0x24], esi
cmp ecx, esi
je 0x45ae4d
cmp ebx, esi
je 0x45ae48
lea eax, [ebx + 4]
jmp 0x45ae4a
xor eax, eax
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 8]
mov dword [ebx + 0x60], ecx
mov eax, dword [eax + 8]
cmp eax, esi
mov dword [esp + 0x1c], eax
jle 0x45ae91
push esi
mov eax, ebx
call fcn.0045abc9
cmp eax, 2
jne 0x45ae8a
mov eax, dword [ebx + 8]
lea ecx, [eax + 4]
mov eax, esi
call fcn.00451fb3
lea ecx, [eax + 0x24]
push ecx
push esi
push dword [eax + 0x20]
add eax, 0xc
push eax
push edi
call fcn.0045b899
inc esi
cmp esi, dword [esp + 0x1c]
jl 0x45ae5e
lea eax, [esp + 0x20]
push eax
call fcn.00403dfc
cmp dword [ebp + 0xc], 0
je 0x45aec0
push 0xc7
lea esi, [esp + 0x20]
call fcn.00460189
pop ecx
lea edi, [esp + 0x20]
call fcn.004085dd
mov ecx, esi
call fcn.00403d84
and dword [esp + 0x10], 0
lea edi, [ebx + 0x1c]
mov eax, dword [edi + 4]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], eax
test eax, eax
jle 0x45b031
mov eax, dword [esp + 0x10]
mov ecx, edi
call fcn.00462c30
mov ecx, dword [ebp + 0xc]
mov esi, eax
mov dword [esp + 0x28], esi
test ecx, ecx
je 0x45af5d
mov eax, dword [ecx]
call dword [eax + 0x14]
test al, al
jne 0x45b031
lea eax, [esp + 0x18]
push eax
call fcn.00403dfc
mov ecx, dword [ebx + 8]
mov eax, dword [esi + 0x10]
add ecx, 4
call fcn.00451fb3
mov esi, eax
call fcn.0040808a
push eax
lea esi, [esp + 0x24]
call fcn.0040808a
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004399be
mov eax, dword [ebp + 0xc]
mov edi, dword [eax]
add esp, 0xc
lea esi, [esp + 0x18]
add edi, 0xc
call fcn.0040808a
mov ecx, dword [ebp + 0xc]
push eax
call dword [edi]
mov ecx, esi
call fcn.00403d84
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
push dword [esp + 0x10]
mov eax, dword [esp + 0x30]
call fcn.0045ba30
mov eax, dword [esp + 0x10]
mov ecx, edi
call fcn.00462c30
cmp dword [eax + 0xc], 0
jne 0x45b007
lea eax, [esi + 0x14]
push eax
add ebx, 0x18
push esi
push ebx
lea ebx, [esp + 0x20]
call fcn.0045bab3
add esp, 0xc
cmp dword [esi + 4], 0
je 0x45afac
mov eax, ebx
push eax
call fcn.0044acf0
pop ecx
cmp dword [esi + 4], eax
jne 0x45b047
mov ebx, dword [ebp + 8]
mov esi, dword [esi + 0x10]
mov ecx, dword [ebx + 8]
add ecx, 4
mov eax, esi
call fcn.00451fb3
add eax, 0x1c
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x45afdc
mov ecx, dword [esp + 0x14]
push 0
push eax
call fcn.00460619
pop ecx
pop ecx
test al, al
je 0x45b04a
mov eax, dword [esp + 0x10]
mov ecx, edi
call fcn.00462c30
mov ebx, dword [ebx + 8]
mov eax, dword [eax + 0x10]
lea ecx, [ebx + 4]
call fcn.00451fb3
lea ecx, [esp + 0x14]
mov byte [eax + 0x60], 1
call fcn.00403d84
mov ebx, dword [ebp + 8]
jmp 0x45b01f
mov eax, dword [esp + 0x10]
push 0
mov ecx, edi
call fcn.00462c30
push dword [eax + 0x10]
mov ecx, dword [ebx + 8]
call fcn.004519d4
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x1c]
jl 0x45aedb
xor esi, esi
lea ecx, [esp + 0x20]
call fcn.00403d84
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp + 8]
lea esi, [esp + 0x14]
call fcn.0040808a
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x40]
test al, 1
je 0x45b06e
shr eax, 6
test al, 1
lea eax, [ebx + 0x54]
je 0x45b071
lea eax, [ebx + 0x58]
push eax
push 0x5c
lea esi, [esp + 0x1c]
call fcn.0043406b
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
push ecx
mov ecx, eax
call fcn.0042927c
push eax
call fcn.00445e70
pop ecx
pop ecx
lea ecx, [esp + 0x2c]
call fcn.00403d84
mov ecx, esi
call fcn.00403d84
push 5
pop esi
jmp 0x45b033