Function at 0x461540
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47cdc3
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x499078]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.004017d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00401d60
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.004111d0
push 1
lea eax, [ebp - 0x28]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x50], esp
push 0x489668
call fcn.00401800
mov dword [ebp - 0xc4], eax
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0xc8], ecx
mov byte [ebp - 4], 3
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x54], esp
lea edx, [ebp + 8]
push edx
call fcn.00401840
mov dword [ebp - 0xcc], eax
mov byte [ebp - 4], 2
call fcn.004610b0
add esp, 0x40
mov dword [ebp - 0x48], 0
jmp 0x4615f5
mov eax, dword [ebp - 0x48]
add eax, 1
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x28]
call fcn.00401df0
cmp dword [ebp - 0x48], eax
jae 0x4616ad
mov ecx, dword [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00411180
push eax
lea ecx, [ebp - 0x44]
call fcn.004018a0
push 0x489670
lea edx, [ebp - 0x44]
push edx
call fcn.00405f10
add esp, 8
movzx eax, al
test eax, eax
je 0x4616a8
push 0x489674
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x5c], esp
lea edx, [ebp - 0x44]
push edx
call fcn.00401840
mov dword [ebp - 0xd0], eax
lea eax, [ebp - 0x78]
push eax
call fcn.00460360
add esp, 0x24
mov dword [ebp - 0xd4], eax
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0xd8], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0xd8]
push edx
call fcn.00405f10
add esp, 8
mov byte [ebp - 0x55], al
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x78]
call fcn.00401880
movzx eax, byte [ebp - 0x55]
test eax, eax
je 0x4616a8
lea ecx, [ebp - 0x44]
call fcn.00401950
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4615ec
cmp dword [ebp + 0x24], 1
jne 0x4617ef
lea ecx, [ebp - 0x28]
call fcn.00401df0
mov dword [ebp - 0x4c], eax
jmp 0x4616cd
mov ecx, dword [ebp - 0x4c]
sub ecx, 1
mov dword [ebp - 0x4c], ecx
cmp dword [ebp - 0x4c], 0
jbe 0x4617ef
mov edx, dword [ebp - 0x4c]
sub edx, 1
push edx
lea ecx, [ebp - 0x28]
call fcn.00411180
push eax
lea ecx, [ebp - 0x44]
call fcn.004018a0
push 0x489678
lea eax, [ebp - 0x44]
push eax
call fcn.00405f10
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x4617ea
push 0x48967c
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x80], esp
lea edx, [ebp - 0x44]
push edx
call fcn.00401840
mov dword [ebp - 0xdc], eax
lea eax, [ebp - 0x9c]
push eax
call fcn.00460360
add esp, 0x24
mov dword [ebp - 0xe0], eax
mov ecx, dword [ebp - 0xe0]
mov dword [ebp - 0xe4], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0xe4]
push edx
call fcn.00405060
add esp, 8
mov byte [ebp - 0x79], al
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x9c]
call fcn.00401880
movzx eax, byte [ebp - 0x79]
test eax, eax
je 0x4617ea
push 1
lea ecx, [ebp - 0x44]
call fcn.00401950
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xa0], esp
push eax
call fcn.00401800
mov dword [ebp - 0xe8], eax
call fcn.00461540
add esp, 0x20
push 0x489680
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0xbc]
push edx
call fcn.00404ef0
add esp, 0xc
mov dword [ebp - 0xec], eax
mov ecx, dword [ebp - 0xec]
call fcn.00401950
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0xbc]
call fcn.00401880
lea ecx, [ebp - 0x44]
call fcn.00401950
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4616c4
mov dword [ebp - 0xc0], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00401dd0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00401880
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401880
mov eax, dword [ebp - 0xc0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041694e
mov esp, ebp
pop ebp
ret