Function at 0x524870
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x591733
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x61e69c]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61e69c]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov bl, byte [esp + 0xd0]
mov ebp, dword [esp + 0xc8]
test bl, 1
je 0x5248ee
lea eax, [esp + 0x14]
push eax
push ebp
call fcn.005240e0
add esp, 8
test al, al
je 0x5248ee
mov ecx, dword [esp + 0x14]
push 0
push ecx
call fcn.00527d20
add esp, 8
test al, 1
je 0x5248ee
push 0x20
push ebp
call fcn.00524080
add esp, 8
test bl, 2
jne 0x524940
push 0
lea edx, [esp + 0x48]
push ebp
push edx
call fcn.00528ad0
mov ebx, 8
add esp, 0xc
cmp dword [eax + 0x18], ebx
jb 0x524912
mov eax, dword [eax + 4]
jmp 0x524915
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
cmp dword [esp + 0x5c], ebx
jb 0x524931
mov eax, dword [esp + 0x48]
push eax
call fcn.004f6734
add esp, 4
test esi, esi
je 0x524bc1
mov al, 1
jmp 0x524a5a
push ebp
lea ecx, [esp + 0x80]
call fcn.0051d640
mov eax, dword [esp + 0x90]
cmp eax, 0x104
mov dword [esp + 0xc0], 0
mov ebx, 8
jl 0x524ae2
push 0
lea ecx, [esp + 0x9c]
push ebp
push ecx
call fcn.00528ad0
add esp, 0xc
mov eax, dword [esp + 0x9c]
mov byte [esp + 0xc0], 1
cmp dword [esp + 0xb0], ebx
jae 0x5249a1
lea eax, [esp + 0x9c]
mov esi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push 0
push 0
push eax
call esi
test eax, eax
je 0x524a2e
mov edi, dword [esp + 0x9c]
cmp dword [esp + 0xb0], ebx
jae 0x5249c9
lea edi, [esp + 0x9c]
push eax
push eax
lea ecx, [esp + 0x84]
call fcn.005242d0
push eax
push edi
call esi
mov esi, eax
mov eax, dword [esp + 0x80]
cmp dword [esp + 0x94], ebx
jae 0x5249f4
lea eax, [esp + 0x80]
push eax
call fcn.00524740
mov ecx, dword [esp + 0x94]
add esp, 4
cmp eax, ecx
ja 0x524a19
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x84]
call fcn.0042e480
jmp 0x524a2a
sub eax, ecx
push 0
push eax
lea ecx, [esp + 0x84]
call fcn.004db35a
test esi, esi
jne 0x524a82
cmp byte [esp + 0xcc], 0
je 0x524a43
push ebp
push 0xd9
call fcn.0051e510
lea ecx, [esp + 0x98]
call fcn.00407f70
lea ecx, [esp + 0x7c]
call fcn.00407f70
xor al, al
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.004f673f
add esp, 0xb0
ret
lea edx, [esp + 0x7c]
push edx
call fcn.00528610
add esp, 4
test eax, eax
jle 0x524ac7
push eax
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x84]
call fcn.0051de60
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x88]
mov byte [esp + 0xcc], 2
call fcn.0042d910
lea ecx, [esp + 0x60]
call fcn.00407f70
lea ecx, [esp + 0x98]
mov byte [esp + 0xc0], 0
call fcn.00407f70
mov eax, dword [esp + 0x90]
lea ecx, [eax + eax + 4]
push 1
push ecx
lea ecx, [esp + 0x20]
mov esi, eax
call fcn.00521dc0
mov eax, dword [esp + 0x80]
cmp dword [esp + 0x94], ebx
jae 0x524b0b
lea eax, [esp + 0x80]
lea edx, [esi + esi]
push edx
push eax
mov eax, dword [esp + 0x24]
push eax
call fcn.00500790
mov edx, dword [esp + 0x28]
add esp, 0xc
lea eax, [esp + 0x24]
mov ecx, 0x454
push eax
mov dword [esp + 0x2c], 3
mov word [esp + 0x38], cx
mov dword [esp + 0x30], edx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x524b6c
cmp dword [esp + 0x36], eax
jne 0x524b6c
lea ecx, [esp + 0x18]
mov byte [esp + 0xc0], al
call fcn.00521df0
lea ecx, [esp + 0x7c]
call fcn.00407f70
mov al, 1
jmp 0x524a5a
lea ecx, [esp + 0x18]
mov byte [esp + 0xc0], 0
call fcn.00521df0
mov dword [esp + 0xc0], 0xffffffff
cmp dword [esp + 0x94], ebx
jb 0x524ba1
mov ecx, dword [esp + 0x80]
push ecx
call fcn.004f6734
add esp, 4
xor edx, edx
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], 0
mov word [esp + 0x80], dx
cmp byte [esp + 0xcc], 0
je 0x524a58
push ebp
push 0xd9
call fcn.0051e510
int3