Function at 0x45fb40
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd58
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2a8], ebx
mov dword [ebp - 0x2a4], ebx
mov dword [ebp - 0x2a0], ebx
mov dword [ebp - 0x29c], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
test dl, dl
je 0x45fb7b
add esp, 0xfffffff0
call fcn.004052e4
mov dword [ebp - 0x28c], ecx
mov byte [ebp - 0x285], dl
mov dword [ebp - 0x284], eax
lea eax, [ebp - 0x280]
mov edx, dword [0x41a5dc]
call fcn.00407984
xor eax, eax
push ebp
push 0x45ff32
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, dword [ebp - 0x284]
call fcn.00404fbc
mov dl, 1
mov eax, dword [0x444328]
call fcn.004443c0
mov ebx, eax
mov eax, dword [ebp - 0x284]
mov dword [eax + 0xc], ebx
mov eax, ebx
mov edx, 0x7d0
call fcn.00444570
mov eax, dword [ebp - 0x284]
push eax
push 0x460460
mov eax, dword [ebp - 0x284]
mov eax, dword [eax + 0xc]
call fcn.00444580
push 0x45fa30
mov ecx, 0x45fa50
mov dl, 1
mov eax, dword [0x427d58]
call fcn.0042d210
mov edx, dword [ebp - 0x284]
mov dword [edx + 4], eax
push 0x45fa40
mov ecx, 0x45fa90
mov dl, 1
mov eax, dword [0x427d58]
call fcn.0042d210
mov edx, dword [ebp - 0x284]
mov dword [edx + 8], eax
mov edx, dword [ebp - 0x28c]
mov eax, dword [ebp - 0x284]
call fcn.0045fae0
lea edx, [ebp - 0x29c]
mov eax, dword [ebp - 0x284]
call fcn.004600f0
mov eax, dword [ebp - 0x29c]
mov edx, 1
call fcn.0042b7e0
mov dword [ebp - 0x298], eax
cmp dword [ebp - 0x298], 0
je 0x45fdeb
xor edx, edx
push ebp
push 0x45fde4
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x45fda2
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x298]
mov edx, dword [eax]
call dword [edx]
mov edx, eax
mov eax, dword [ebp - 0x298]
call fcn.0045dc30
mov dword [ebp - 0x290], eax
xor edx, edx
push ebp
push 0x45fd91
push dword fs:[edx]
mov dword fs:[edx], esp
xor ecx, ecx
mov edx, 0x45ff70
mov eax, dword [ebp - 0x290]
call fcn.0045d8c0
mov edx, 0x45ff84
mov eax, dword [ebp - 0x290]
call fcn.0045d9c0
mov edi, eax
test edi, edi
je 0x45fd54
mov eax, edi
call fcn.0045d860
mov esi, eax
dec esi
test esi, esi
jl 0x45fd54
inc esi
mov dword [ebp - 0x294], 0
mov ecx, dword [ebp - 0x284]
mov dl, 1
mov eax, dword [0x45f8c8]
call fcn.00460540
mov ebx, eax
mov edx, dword [ebp - 0x294]
mov eax, edi
call fcn.0045d800
mov edx, eax
mov eax, ebx
call fcn.00460740
mov eax, dword [ebp - 0x284]
mov eax, dword [eax + 4]
mov edx, ebx
call fcn.004292e0
mov eax, dword [ebp - 0x284]
mov eax, dword [eax + 8]
mov edx, ebx
call fcn.004292e0
inc dword [ebp - 0x294]
dec esi
jne 0x45fd01
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45fd98
mov eax, dword [ebp - 0x284]
mov eax, dword [eax + 4]
call fcn.0042d390
mov eax, dword [ebp - 0x284]
mov eax, dword [eax + 8]
call fcn.0042d390
mov eax, dword [ebp - 0x290]
xor edx, edx
mov dword [ebp - 0x290], edx
call fcn.00404fec
ret
lea edx, [ebp - 8]
mov eax, dword [ebp - 0x28c]
call fcn.004243fc
lea eax, [ebp - 0x2a0]
mov ecx, 0x45ffbc
mov edx, dword [ebp - 8]
call fcn.004074b8
mov eax, dword [ebp - 0x2a0]
lea ecx, [ebp - 0x280]
mov edx, 0x1ff
call fcn.0041df58
mov edi, eax
test edi, edi
jne 0x45fef6
test byte [ebp - 0x270], 0x10
jne 0x45fed6
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x26c]
call fcn.00406a04
mov esi, dword [ebp - 0xc]
test esi, esi
je 0x45fe53
sub esi, 4
mov esi, dword [esi]
cmp esi, 8
jne 0x45fed6
lea eax, [ebp - 0x2a4]
mov ecx, dword [ebp - 0xc]
mov edx, 0x45ffd0
call fcn.004074b8
mov eax, dword [ebp - 0x2a4]
lea edx, [ebp - 4]
call fcn.0041d82c
test al, al
je 0x45fed6
lea ecx, [ebp - 0x294]
lea edx, [ebp - 4]
mov eax, dword [ebp - 0x284]
mov eax, dword [eax + 8]
call fcn.0042d260
test al, al
jne 0x45fed6
lea edx, [ebp - 0x2a8]
mov eax, dword [ebp - 8]
call fcn.004243ac
mov edx, dword [ebp - 0x2a8]
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
call fcn.004074b8
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00406a04
mov eax, dword [ebp - 0x10]
call fcn.004072c8
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
lea eax, [ebp - 0x280]
call fcn.0041dfa8
mov edi, eax
test edi, edi
je 0x45fe2c
lea eax, [ebp - 0x280]
call fcn.0041dfcc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ff39
lea eax, [ebp - 0x2a8]
mov edx, 4
call fcn.00406658
lea eax, [ebp - 0x280]
mov edx, dword [0x41a5dc]
call fcn.00407a5c
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00406658
ret