Function at 0x45646a
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push esi
lea esi, [ebx + 0x10]
push edi
mov dword [esp + 0x18], esi
call fcn.0044e8e2
mov eax, dword [ebx]
mov edi, dword [eax + 8]
xor esi, esi
test edi, edi
jle 0x4564c3
push esi
mov eax, ebx
call fcn.00456225
cmp eax, 2
jne 0x4564be
mov eax, dword [ebx]
lea ecx, [eax + 4]
mov eax, esi
call fcn.0044f213
lea ecx, [eax + 0x24]
push ecx
push esi
push dword [eax + 0x20]
add eax, 0xc
push eax
lea eax, [ebx + 0xc]
push eax
call fcn.0045e77d
inc esi
cmp esi, edi
jl 0x456490
lea eax, [esp + 0x20]
push eax
call fcn.004038ab
cmp dword [ebp + 0xc], 0
je 0x4564f2
push 0xc7
lea esi, [esp + 0x20]
call fcn.0045b2d1
pop ecx
lea edi, [esp + 0x20]
call fcn.00407ece
mov ecx, esi
call fcn.00403833
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
and dword [esp + 0x10], 0
mov dword [esp + 0x24], eax
test eax, eax
jle 0x45665a
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
call fcn.0045af2c
mov ecx, dword [ebp + 0xc]
mov edi, eax
test ecx, ecx
je 0x456584
mov eax, dword [ecx]
call dword [eax + 0x14]
test al, al
jne 0x45665a
lea eax, [esp + 0x1c]
push eax
call fcn.004038ab
mov ebx, dword [ebx]
mov eax, dword [edi + 0x10]
lea ecx, [ebx + 4]
call fcn.0044f213
mov esi, eax
call fcn.0040794e
push eax
lea esi, [esp + 0x24]
call fcn.0040794e
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00436b7a
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax]
add esp, 0xc
lea esi, [esp + 0x1c]
add ebx, 0xc
call fcn.0040794e
mov ecx, dword [ebp + 0xc]
push eax
call dword [ebx]
mov ecx, esi
call fcn.00403833
mov ebx, dword [ebp + 8]
mov eax, dword [esp + 0x10]
add ebx, 0xc
call fcn.0045e7e7
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
call fcn.0045af2c
xor esi, esi
cmp dword [eax + 0xc], esi
jne 0x456629
push edi
lea ecx, [esp + 0x18]
push ebx
lea eax, [edi + 0x14]
push ecx
call fcn.0045e922
add esp, 0xc
cmp dword [edi + 4], esi
je 0x4565d3
lea eax, [esp + 0x14]
push eax
call fcn.00448710
pop ecx
cmp dword [edi + 4], eax
jne 0x456670
mov ebx, dword [ebp + 8]
mov edi, dword [edi + 0x10]
mov ecx, dword [ebx]
add ecx, 4
mov eax, edi
call fcn.0044f213
add eax, 0x1c
mov ecx, dword [eax]
cmp dword [ecx - 0xc], esi
je 0x456600
push esi
mov esi, eax
lea ecx, [esp + 0x18]
call fcn.00448d20
pop ecx
test al, al
je 0x456673
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
call fcn.0045af2c
mov ebx, dword [ebx]
mov eax, dword [eax + 0x10]
lea ecx, [ebx + 4]
call fcn.0044f213
lea ecx, [esp + 0x14]
mov byte [eax + 0x5c], 1
call fcn.00403833
jmp 0x456644
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push esi
call fcn.0045af2c
push dword [eax + 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call fcn.0044ec42
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x24]
jge 0x45665a
mov ebx, dword [ebp + 8]
jmp 0x45650a
xor esi, esi
lea ecx, [esp + 0x20]
call fcn.00403833
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.0040794e
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [ebx + 4]
mov eax, dword [ebx + 0x40]
test al, 1
je 0x456697
shr eax, 6
test al, 1
lea eax, [ebx + 0x54]
je 0x45669a
lea eax, [ebx + 0x58]
push eax
push 0x5c
lea esi, [esp + 0x1c]
call fcn.00431363
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
push ecx
mov ecx, eax
call fcn.004313ba
push eax
call fcn.00443ac0
pop ecx
pop ecx
lea ecx, [esp + 0x24]
call fcn.00403833
mov ecx, esi
call fcn.00403833
push 5
pop esi
jmp 0x45665c