Function at 0x4d04d0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52b8b7
mov eax, dword fs:[0]
push eax
sub esp, 0x2f0
mov eax, dword [0x5644a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2f0], ecx
push 0x53ed24
lea ecx, [ebp - 0x9c]
call fcn.0040ac70
mov dword [ebp - 4], 0
push 0x53f6cc
lea ecx, [ebp - 0x80]
call fcn.0040ac70
mov byte [ebp - 4], 1
push str..
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x64]
push ecx
call fcn.004523b0
add esp, 0xc
mov byte [ebp - 4], 2
mov edx, dword [ebp + 8]
push edx
call fcn.004cff50
add esp, 4
cmp eax, 0xffffffff
jne 0x4d0592
mov dword [ebp - 0x2d4], 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.00402c30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x80]
call fcn.00402c30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.00402c30
mov eax, dword [ebp - 0x2d4]
jmp 0x4d0843
lea eax, [ebp - 0x2cc]
push eax
lea ecx, [ebp - 0x64]
call fcn.0040acf0
push eax
call fcn.00495c74
add esp, 8
mov dword [ebp - 0x2d0], eax
cmp dword [ebp - 0x2d0], 0xffffffff
je 0x4d0809
lea ecx, [ebp - 0x2a4]
test ecx, ecx
jne 0x4d05cc
jmp 0x4d0742
lea edx, [ebp - 0x2a4]
push edx
lea ecx, [ebp - 0x9c]
call fcn.0044d310
test eax, eax
je 0x4d05f5
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0x80]
call fcn.0044d310
test eax, eax
jne 0x4d05fa
jmp 0x4d0742
push 0x53ee9c
lea ecx, [ebp - 0x2c]
call fcn.0040ac70
mov dword [ebp - 0x2f4], eax
mov ecx, dword [ebp - 0x2f4]
mov dword [ebp - 0x2f8], ecx
mov byte [ebp - 4], 3
lea edx, [ebp - 0x2a4]
push edx
mov ecx, dword [ebp - 0x2f8]
call fcn.0044d310
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x2d5], al
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00402c30
movzx eax, byte [ebp - 0x2d5]
test eax, eax
je 0x4d06f4
push str.Thumbs.db
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x48]
push edx
call fcn.004523b0
add esp, 0xc
mov dword [ebp - 0x2fc], eax
mov ecx, dword [ebp - 0x2fc]
call fcn.0040acf0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x2d6], al
lea ecx, [ebp - 0x48]
call fcn.00402c30
movzx eax, byte [ebp - 0x2d6]
test eax, eax
je 0x4d06f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00513560
add esp, 4
mov dword [ebp - 0x2dc], 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.00402c30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x80]
call fcn.00402c30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.00402c30
mov eax, dword [ebp - 0x2dc]
jmp 0x4d0843
jmp 0x4d0742
mov ecx, dword [ebp - 0x2d0]
push ecx
call fcn.00495eee
add esp, 4
mov dword [ebp - 0x2e0], 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.00402c30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x80]
call fcn.00402c30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.00402c30
mov eax, dword [ebp - 0x2e0]
jmp 0x4d0843
lea edx, [ebp - 0x2cc]
push edx
mov eax, dword [ebp - 0x2d0]
push eax
call fcn.00495daf
add esp, 8
test eax, eax
je 0x4d05bd
mov ecx, dword [ebp - 0x2d0]
push ecx
call fcn.00495eee
add esp, 4
mov ecx, dword [ebp + 8]
call fcn.0040acf0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4d07cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005134a0
add esp, 4
mov dword [ebp - 0x2e4], 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.00402c30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x80]
call fcn.00402c30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.00402c30
mov eax, dword [ebp - 0x2e4]
jmp 0x4d0843
mov dword [ebp - 0x2e8], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.00402c30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x80]
call fcn.00402c30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.00402c30
mov eax, dword [ebp - 0x2e8]
jmp 0x4d0843
mov dword [ebp - 0x2ec], 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.00402c30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x80]
call fcn.00402c30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.00402c30
mov eax, dword [ebp - 0x2ec]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00490d41
mov esp, ebp
pop ebp
ret 4