Function at 0x5d4ea0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x73df75
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
sub esp, 0x6c
push esi
push edi
cmp eax, 1
jne 0x5d4ef0
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x5d50e4
mov dword [esi], 0
call fcn.005d0210
mov dword [esi + 4], eax
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
cmp eax, 3
je 0x5d4fea
cmp eax, 0xb
je 0x5d4fea
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x2c]
push 0x20
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.0047e6a0
movups xmm0, xmmword [str.boost::filesystem::remove]
mov dword [ebp - 0x1c], 0x19
mov dword [ebp - 0x18], 0x1f
movups xmmword [eax], xmm0
movq xmm0, qword [0x793f90]
movq qword [eax + 0x10], xmm0
mov cl, byte [0x793f98]
mov byte [eax + 0x18], cl
mov byte [eax + 0x19], 0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov ecx, eax
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x5d4f6e
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
sete byte [ebp + 0xf]
test eax, eax
je 0x5d4f96
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x5d4fb3
mov dword [esi], 0
call fcn.005d0210
mov dword [esi + 4], eax
jmp 0x5d4fb3
mov edi, dword [ebp + 0x10]
call fcn.005d0210
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
je 0x5d5108
mov dword [edi], eax
mov dword [edi + 4], esi
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x5d50de
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5d50d4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5d5134
jmp 0x5d50d4
mov dword [ebp - 0x44], 0
lea ecx, [ebp - 0x44]
push 0x20
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
call fcn.0047e6a0
movups xmm0, xmmword [str.boost::filesystem::remove]
mov dword [ebp - 0x34], 0x19
mov dword [ebp - 0x30], 0x1f
movups xmmword [eax], xmm0
movq xmm0, qword [0x793f90]
movq qword [eax + 0x10], xmm0
mov cl, byte [0x793f98]
mov byte [eax + 0x18], cl
mov byte [eax + 0x19], 0
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 8]
mov ecx, eax
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x5d5056
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
sete byte [ebp + 0xf]
test eax, eax
je 0x5d507e
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x5d50ae
mov dword [esi], 0
call fcn.005d0210
mov dword [esi + 4], eax
jmp 0x5d50ae
mov edi, dword [ebp + 0x10]
call fcn.005d0210
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x5d50a9
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.00501610
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x44]
push dword [ebp + 8]
jmp 0x5d511d
mov dword [edi], eax
mov dword [edi + 4], esi
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x5d50de
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5d50d4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5d5139
push edx
push ecx
call fcn.00503df0
add esp, 8
cmp byte [ebp + 0xf], 0
je 0x5d50f6
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov al, 1
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.00501610
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x2c]
push dword [ebp + 8]
push eax
lea ecx, [ebp - 0x78]
call fcn.005d2cc0
push 0x82aacc
lea eax, [ebp - 0x78]
push eax
call fcn.006f41a3
call fcn.006fee64
call fcn.006fee64
int3