Function at 0x4d2554
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd70
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x290], ebx
mov dword [ebp - 0x28c], ebx
mov dword [ebp - 0x288], ebx
mov dword [ebp - 0x284], ebx
mov dword [ebp - 0x280], ebx
mov dword [ebp - 0x27c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov ebx, ecx
mov esi, edx
mov edi, eax
lea eax, [ebp - 0x278]
mov edx, dword [0x40cf10]
call fcn.004075b0
xor eax, eax
push ebp
push 0x4d2818
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x27c]
mov edx, esi
call fcn.00406a9c
mov eax, dword [ebp - 0x27c]
call fcn.0041326c
test al, al
je 0x4d27dc
xor eax, eax
push ebp
push 0x4d27d2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov ecx, 0x4d2834
mov edx, esi
call fcn.00406df4
lea ecx, [ebp - 0x278]
mov edx, 0x1ff
mov eax, dword [ebp - 4]
call fcn.00413314
test eax, eax
jne 0x4d27b6
mov eax, 0x4d284c
mov edx, dword [ebp - 0x264]
call fcn.00406ff8
je 0x4d2798
mov eax, 0x4d285c
mov edx, dword [ebp - 0x264]
call fcn.00406ff8
je 0x4d2798
mov eax, dword [ebp - 0x268]
and eax, 0x10
cmp eax, 0x10
jne 0x4d266e
push esi
push 0x4d2870
push dword [ebp - 0x264]
lea eax, [ebp - 0x280]
mov edx, 3
call fcn.00406ed8
mov edx, dword [ebp - 0x280]
mov ecx, ebx
mov eax, edi
call fcn.004d2554
push esi
push 0x4d2870
push dword [ebp - 0x264]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00406ed8
mov eax, dword [ebp - 8]
call fcn.00413224
test al, al
je 0x4d2798
test bl, bl
je 0x4d26ce
mov eax, dword [ebp - 8]
call fcn.004069ac
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4d2798
push 4
push 0
mov eax, dword [ebp - 8]
call fcn.004069ac
push eax
call sub.kernel32.dll_MoveFileExW
jmp 0x4d2798
lea edx, [ebp - 0x284]
mov eax, dword [ebp - 0x264]
call fcn.00411e10
mov eax, dword [ebp - 0x284]
mov edx, 0x4d2880
call fcn.00406ff8
je 0x4d275a
lea edx, [ebp - 0x288]
mov eax, dword [ebp - 0x264]
call fcn.00411e10
mov eax, dword [ebp - 0x288]
mov edx, 0x4d28ac
call fcn.00406ff8
je 0x4d275a
lea edx, [ebp - 0x28c]
mov eax, dword [ebp - 0x264]
call fcn.00411e10
mov eax, dword [ebp - 0x28c]
mov edx, 0x4d28d8
call fcn.00406ff8
je 0x4d275a
lea edx, [ebp - 0x290]
mov eax, dword [ebp - 0x264]
call fcn.00411e10
mov eax, dword [ebp - 0x290]
mov edx, 0x4d2904
call fcn.00406ff8
jne 0x4d276e
push 4
push 0
mov eax, dword [ebp - 8]
call fcn.004069ac
push eax
call sub.kernel32.dll_MoveFileExW
jmp 0x4d2798
mov eax, dword [ebp - 8]
call fcn.004069ac
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4d2798
push 4
push 0
mov eax, dword [ebp - 8]
call fcn.004069ac
push eax
call sub.kernel32.dll_MoveFileExW
lea eax, [ebp - 0x278]
call fcn.00413364
test eax, eax
je 0x4d2609
lea eax, [ebp - 0x278]
call fcn.00413388
mov eax, esi
call fcn.0041326c
test al, al
je 0x4d27c8
mov eax, esi
call fcn.00413850
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d27dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d281f
lea eax, [ebp - 0x290]
mov edx, 6
call fcn.00406918
lea eax, [ebp - 0x278]
mov edx, dword [0x40cf10]
call fcn.00407688
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406918
ret