Function at 0x58bef0
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5abad6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], ebx
call sub.MFC42.DLL_CFileFind::CFileFind
lea eax, [esp + 0x44]
lea ecx, [esp + 0xc]
push eax
mov byte [esp + 0x40], 1
call sub.MFC42.DLL_CString::CString_2
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
mov byte [esp + 0x44], 2
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.0058d910
cmp eax, 1
jne 0x58c006
push ecx
lea eax, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.0058da30
cmp al, bl
jne 0x58bfb5
mov byte [esi + 0xa], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c], 1
call fcn.0058df86
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], bl
call fcn.0058e9fa
lea ecx, [esp + 0x44]
mov dword [esp + 0x3c], 0xffffffff
call fcn.0058df86
mov ecx, dword [esp + 0x34]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x34
ret 4
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x58bf75
push 8
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
cmp esi, ebx
mov byte [esp + 0x3c], 3
je 0x58bfed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.0058b930
jmp 0x58bfef
xor eax, eax
mov byte [esp + 0x3c], 2
mov dword [esp + 0x10], eax
push 0x5dc018
lea edx, [esp + 0x14]
jmp 0x58c120
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.0058d9e0
push 0x5fdfe4
lea ecx, [esp + 0x10]
call fcn.0058e586
mov ecx, dword [esp + 0xc]
push ebx
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFileFind::FindFile
cmp eax, ebx
je 0x58c0be
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x18]
mov edi, eax
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x58c0b6
mov edx, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
call dword [edx + 0x40]
cmp eax, ebx
je 0x58c09e
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
call sub.MFC42.DLL_CFileFind::GetFilePath
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 4
call fcn.0058dfec
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 2
call fcn.0058df86
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call sub.MFC42.DLL_CString::CString_2
jmp 0x58c0af
push ecx
lea ecx, [esp + 0x1c]
mov eax, esp
mov dword [esp + 0x18], esp
push eax
call sub.MFC42.DLL_CFileFind::GetFilePath
mov ecx, esi
call fcn.0058bef0
cmp edi, ebx
jne 0x58c037
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFileFind::Close
mov ecx, dword [esp + 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x58bf75
cmp byte [esi + 0xa], bl
jne 0x58bf75
push 8
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
cmp esi, ebx
mov byte [esp + 0x3c], 5
je 0x58c10c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.0058b930
jmp 0x58c10e
xor eax, eax
mov byte [esp + 0x3c], 2
mov dword [esp + 0x10], eax
push 0x5dc018
lea edx, [esp + 0x14]
push edx
call sub.MSVCRT.dll__CxxThrowException
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop