Function at 0x52df0c
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x52e184
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, dword [ebx + 0x84]
call fcn.00407848
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x24]
xor eax, eax
mov dword [ebp - 0x10], eax
cmp byte [ebx + 0xb4], 0
je 0x52e154
cmp byte [ebx + 0xb6], 3
jne 0x52df8f
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.00416744
mov esi, dword [ebp - 0x1c]
mov edx, 0x52e1a0
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x20]
call fcn.00414cf8
test eax, eax
sete al
xor al, 1
jmp 0x52df91
xor eax, eax
test al, al
je 0x52df99
mov al, 1
jmp 0x52dfae
cmp byte [ebx + 0xb6], 2
jne 0x52dfa8
cmp dword [ebx + 0x68], 0
je 0x52dfac
xor eax, eax
jmp 0x52dfae
mov al, 1
test al, al
je 0x52e154
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 4]
mov edx, dword [ebx + 0x48]
call fcn.00407848
mov eax, dword [ebp - 4]
call fcn.00415df4
test al, al
je 0x52e0ed
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0x11
lea ecx, [ebp - 0x28]
mov edx, 0x3e
mov eax, ebx
call fcn.0055a0f8
movzx eax, byte [0x52e1ac]
or al, byte [ebx + 0xa1]
mov byte [ebx + 0xa1], al
mov esi, 6
test byte [ebx + 0x14], 1
jne 0x52e0ba
mov eax, dword [ebx + 0x10]
mov edx, dword [eax + 0x1c8]
mov dword [ebp - 0x18], edx
mov edx, dword [eax + 0x1cc]
mov dword [ebp - 0x14], edx
cmp word [ebp - 0x16], 0
je 0x52e08f
mov byte [ebx + 0xa0], 1
mov eax, dword [ebp - 4]
push eax
movzx eax, byte [ebx + 0xa1]
push eax
lea eax, [ebx + 0xa0]
push eax
mov ecx, dword [ebx + 0x68]
mov edx, dword [ebx + 0x10]
mov eax, dword [ebp - 0x14]
call dword [ebp - 0x18]
cmp byte [ebx + 0xa0], 0
jne 0x52e078
movzx eax, byte [0x52e1b0]
or al, byte [ebx + 0x14]
mov byte [ebx + 0x14], al
mov byte [ebx + 0xa0], 1
cmp byte [ebx + 0xa0], 1
jne 0x52e088
mov esi, 6
jmp 0x52e0ba
mov esi, 7
jmp 0x52e0ba
push 0x102716
movzx eax, word [0x52e1b4]
push eax
lea ecx, [ebp - 0x2c]
mov edx, 0x44
mov eax, ebx
call fcn.00527988
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.005279a4
mov esi, eax
cmp esi, 7
jne 0x52e0da
push 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0x11
lea ecx, [ebp - 0x28]
mov edx, 0xf8a140f
mov eax, ebx
call fcn.00559f54
cmp esi, 6
jne 0x52e0ed
mov eax, dword [ebp - 4]
call fcn.00407880
push eax
call sub.kernel32.dll_DeleteFileW
mov eax, dword [ebp - 8]
call fcn.00415df4
test al, al
je 0x52e154
mov eax, dword [ebp - 4]
call fcn.00407880
push eax
mov eax, dword [ebp - 8]
call fcn.00407880
push eax
call sub.kernel32.dll_MoveFileW
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, ebx
call fcn.00559eec
cmp al, 1
jb 0x52e154
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0x11
mov eax, dword [ebp - 4]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0x11
lea edx, [ebp - 0x40]
mov ecx, 1
mov eax, 0x52e1c4
call fcn.00417358
mov edx, dword [ebp - 0x30]
mov eax, ebx
call fcn.00527084
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52e18b
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.004077ec
lea eax, [ebp - 0x1c]
call fcn.004077e4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004077ec
ret