Function at 0x461dc0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
mov bl, 1
mov byte [ebp - 0x10], 0
push edi
mov byte [ebp - 1], bl
mov eax, 0x5ffcb4
mov byte [ebp - 5], 0xb
nop dword [eax + eax]
inc eax
cmp byte [eax], 0
jne 0x461de0
push eax
push 0x5ffcb4
lea ecx, [ebp - 0x10]
call fcn.004409b0
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x40]
push 0
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x40], xmm0
push 0x10
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x58]
movups xmmword [ebp - 0x58], xmm0
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x38], 0
push edi
push eax
mov byte [ebp - 0x34], 0
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
call fcn.00460f80
mov esi, dword [ebp - 0x50]
add esp, 0x20
test esi, esi
je 0x461e95
nop dword [eax]
push dword [esi]
lea ecx, [ebp - 0x58]
call fcn.0044af50
cmp byte [esi + 0x1b], 0
mov edi, dword [esi + 4]
jge 0x461e83
mov eax, dword [esi + 0x10]
test eax, eax
je 0x461e83
push eax
call fcn.0044d750
add esp, 4
push esi
call fcn.0044d750
add esp, 4
mov esi, edi
test edi, edi
jne 0x461e60
mov edi, dword [ebp + 8]
test byte [ebp - 5], 0x80
je 0x461eab
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x461eab
push eax
call fcn.0044d750
add esp, 4
mov byte [ebp - 0x10], 0
mov eax, 0x5ffcb4
mov byte [ebp - 5], 0xb
inc eax
cmp byte [eax], 0
jne 0x461eb8
push eax
push 0x5ffcb4
lea ecx, [ebp - 0x10]
call fcn.004409b0
push 0
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x58]
movups xmmword [ebp - 0x58], xmm0
push 0x10
push eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 0x1c], 0
push edi
push eax
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
call fcn.00460f80
mov esi, dword [ebp - 0x50]
add esp, 0x20
test esi, esi
je 0x461f62
nop
push dword [esi]
lea ecx, [ebp - 0x58]
call fcn.0044af50
cmp byte [esi + 0x1b], 0
mov edi, dword [esi + 4]
jge 0x461f53
mov eax, dword [esi + 0x10]
test eax, eax
je 0x461f53
push eax
call fcn.0044d750
add esp, 4
push esi
call fcn.0044d750
add esp, 4
mov esi, edi
test edi, edi
jne 0x461f30
test byte [ebp - 5], 0x80
je 0x461f78
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x461f78
push eax
call fcn.0044d750
add esp, 4
mov esi, dword [ebp - 0x3c]
lea eax, [ebp - 0x40]
cmp esi, eax
je 0x462006
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [eax]
lea edi, [esi + 0x10]
mov ecx, edi
call fcn.0045e410
cmp byte [eax + 0xb], 0
jge 0x461fa2
mov eax, dword [eax]
push eax
call ebx
test eax, eax
je 0x461fb8
cmp byte [edi + 0xb], 0
jge 0x461fb1
mov edi, dword [edi]
mov eax, str.File__s_removed
jmp 0x461fea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [edi + 0xb], 0
jge 0x461fc8
mov ecx, dword [edi]
jmp 0x461fca
mov ecx, edi
push eax
push ecx
push str.Couldnt_delete_file__s__error__d
call fcn.004631b0
add esp, 0xc
cmp byte [edi + 0xb], 0
jge 0x461fe1
mov edi, dword [edi]
mov byte [ebp - 1], 0
mov eax, str.Couldnt_remove_file__s
push edi
push eax
call fcn.004631b0
push esi
call fcn.0049fd70
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x40]
cmp esi, eax
jne 0x461f90
mov bl, byte [ebp - 1]
mov edi, dword [ebp - 0x24]
lea esi, [ebp - 0x28]
mov eax, esi
cmp eax, edi
je 0x4620ab
push esi
call fcn.0049fa40
add esp, 4
lea ebx, [eax + 0x10]
mov ecx, ebx
call fcn.0045e410
cmp byte [eax + 0xb], 0
jge 0x462031
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x462075
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebx + 0xb], 0
jge 0x46204a
mov ebx, dword [ebx]
push eax
push ebx
push str.Couldnt_delete_folder__s__error__d
call fcn.004631b0
push esi
call fcn.0049fa40
add eax, 0x10
add esp, 0x10
cmp byte [eax + 0xb], 0
jge 0x46206a
mov eax, dword [eax]
mov byte [ebp - 1], 0
mov ecx, str.Couldnt_remove_folder__s
jmp 0x46208e
push esi
call fcn.0049fa40
add eax, 0x10
add esp, 4
cmp byte [eax + 0xb], 0
jge 0x462089
mov eax, dword [eax]
mov ecx, str.Folder__s_removed
push eax
push ecx
call fcn.004631b0
push esi
call fcn.0049fa40
mov esi, eax
add esp, 0xc
cmp esi, edi
jne 0x462016
mov bl, byte [ebp - 1]
cmp byte [ebp + 0xc], 0
jne 0x462107
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.0045e410
cmp byte [eax + 0xb], 0
jge 0x4620c3
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x462107
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 0xb], 0
jge 0x4620de
mov ecx, dword [esi]
jmp 0x4620e0
mov ecx, esi
push eax
push ecx
push str.Couldnt_delete_folder__s__error__d
call fcn.004631b0
add esp, 0xc
cmp byte [esi + 0xb], 0
jge 0x4620f7
mov esi, dword [esi]
push esi
push str.Couldnt_remove_folder__s
call fcn.004631b0
add esp, 8
xor bl, bl
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x46216e
nop
push dword [esi]
lea ecx, [ebp - 0x28]
call fcn.00440930
cmp byte [esi + 0x33], 0
mov edi, dword [esi + 4]
jge 0x462133
mov eax, dword [esi + 0x28]
test eax, eax
je 0x462133
push eax
call fcn.0044d750
add esp, 4
cmp byte [esi + 0x27], 0
jge 0x462149
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x462149
push eax
call fcn.0044d750
add esp, 4
cmp byte [esi + 0x1b], 0
jge 0x46215f
mov eax, dword [esi + 0x10]
test eax, eax
je 0x46215f
push eax
call fcn.0044d750
add esp, 4
push esi
call fcn.0044d750
add esp, 4
mov esi, edi
test edi, edi
jne 0x462110
mov esi, dword [ebp - 0x38]
test esi, esi
je 0x4621d3
push dword [esi]
lea ecx, [ebp - 0x40]
call fcn.00440930
cmp byte [esi + 0x33], 0
mov edi, dword [esi + 4]
jge 0x462198
mov eax, dword [esi + 0x28]
test eax, eax
je 0x462198
push eax
call fcn.0044d750
add esp, 4
cmp byte [esi + 0x27], 0
jge 0x4621ae
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4621ae
push eax
call fcn.0044d750
add esp, 4
cmp byte [esi + 0x1b], 0
jge 0x4621c4
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4621c4
push eax
call fcn.0044d750
add esp, 4
push esi
call fcn.0044d750
add esp, 4
mov esi, edi
test edi, edi
jne 0x462175
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret