Function at 0x538050
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5382dd
push dword fs:[eax]
mov dword fs:[eax], esp
or word [0x673030], 1
call fcn.00537e28
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
test eax, eax
je 0x5380fe
cmp dword [eax + 0x24], 0
jle 0x5380fe
mov eax, 0x816
call fcn.004ab0f8
call fcn.004aaa90
call fcn.00506ba4
lea ecx, [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x24]
mov eax, dword [0x66f8c4]
mov eax, dword [eax]
call fcn.00655c8c
mov eax, dword [ebp - 0xc]
mov cl, 4
mov dl, 3
call fcn.006200d0
movzx ebx, ax
call fcn.004aaa88
cmp ebx, 6
jne 0x5380d7
push ebp
call fcn.00537e6c
pop ecx
jmp 0x5380fe
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov ebx, dword [eax + 0x24]
dec ebx
cmp ebx, 0
jl 0x5380fe
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + ebx*4]
push eax
call sub.kernel32.dll_DeleteFileW
dec ebx
cmp ebx, 0xffffffff
jne 0x5380e6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.004028c0
mov eax, dword [0x66ee54]
mov al, byte [eax]
sub al, 2
jae 0x53811b
push ebp
call fcn.00537ec8
pop ecx
mov eax, dword [0x66ee54]
mov al, byte [eax]
dec eax
sub al, 2
jae 0x5381f4
mov eax, dword [0x66f468]
mov eax, dword [eax]
mov esi, dword [eax + 0x24]
dec esi
test esi, esi
jl 0x5381ac
inc esi
xor ebx, ebx
lea eax, [ebp - 8]
mov edx, dword [0x66f468]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
mov edx, dword [edx + ebx*4]
call fcn.004038bc
mov eax, dword [ebp - 8]
call fcn.0062113c
test al, al
je 0x538175
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00621158
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
call fcn.004038bc
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00655354
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
call fcn.004038bc
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0053768c
test al, al
je 0x5381ac
mov eax, dword [ebp - 4]
add eax, 0x10
mov edx, dword [ebp - 8]
call fcn.004038bc
inc ebx
dec esi
jne 0x53813d
mov eax, dword [0x66ee54]
cmp byte [eax], 2
jne 0x5381f4
mov eax, dword [0x673034]
mov esi, dword [eax + 0x18]
dec esi
test esi, esi
jl 0x5381e4
inc esi
xor ebx, ebx
mov eax, dword [0x673034]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + ebx*4]
call fcn.0059901c
mov eax, 0x118
call fcn.004e30ec
inc ebx
dec esi
jne 0x5381c6
mov eax, dword [0x66f364]
mov byte [eax + 0x1f], 1
push 0
call sub.user32.dll_PostQuitMessage
mov eax, dword [0x66fc80]
mov eax, dword [eax]
mov edx, 6
call fcn.00650378
mov ebx, 5
mov eax, dword [0x66fc80]
mov eax, dword [eax]
mov eax, dword [eax + 0x20]
lea esi, [eax + ebx*4]
lea edx, [ebp - 0x10]
mov eax, dword [esi]
call fcn.00626c00
mov edx, dword [ebp - 0x10]
mov eax, esi
call fcn.004038bc
mov eax, dword [esi]
call fcn.0062195c
test al, al
jne 0x53824c
mov eax, ebx
lea edx, [ebp - 0x10]
call fcn.0048c9e4
mov edx, dword [ebp - 0x10]
mov eax, esi
call fcn.004038bc
jmp 0x538253
mov eax, esi
call fcn.00621b3c
dec ebx
cmp ebx, 0xffffffff
jne 0x53820a
mov eax, dword [0x673034]
cmp dword [eax + 0x18], 0
jne 0x53828a
mov eax, dword [0x66ee54]
mov al, byte [eax]
sub al, 2
jae 0x53828a
mov eax, dword [0x66e8a8]
test byte [eax + 7], 1
je 0x53828a
mov al, 3
call fcn.0061c864
test al, al
jne 0x53828a
call fcn.005375b4
mov eax, dword [0x673034]
cmp dword [eax + 0x18], 0
jne 0x53829c
xor eax, eax
call fcn.00506a5c
and word [0x673030], 0xfffe
mov eax, dword [0x66fc50]
test byte [eax], 0x10
je 0x5382b7
mov eax, dword [0x66f364]
mov byte [eax + 0xe], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5382e4
lea eax, [ebp - 0x10]
call fcn.00403880
lea eax, [ebp - 0xc]
call fcn.00403274
lea eax, [ebp - 8]
call fcn.00403880
ret