Function at 0x4d39b4
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 0x4d3c30
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, dword [ebx + 0x50]
call fcn.00406db4
mov eax, ebx
call fcn.004d3224
xor eax, eax
mov dword [ebp - 0x10], eax
cmp byte [ebx + 0xc4], 0
je 0x4d3c00
cmp byte [ebx + 0xc6], 3
jne 0x4d3a34
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004145d0
mov esi, dword [ebp - 0x1c]
mov edx, 0x4d3c4c
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x20]
call fcn.00412e64
test eax, eax
sete al
xor al, 1
jmp 0x4d3a36
xor eax, eax
test al, al
je 0x4d3a3e
mov al, 1
jmp 0x4d3a53
cmp byte [ebx + 0xc6], 2
jne 0x4d3a4d
cmp dword [ebx + 0x28], 0
je 0x4d3a51
xor eax, eax
jmp 0x4d3a53
mov al, 1
test al, al
je 0x4d3c00
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 4]
mov edx, dword [ebx + 0x2c]
call fcn.00406db4
mov eax, dword [ebp - 4]
call fcn.00413d00
test al, al
je 0x4d3b9b
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, 0x2b1f
mov eax, dword [ebx + 0x10]
call fcn.004cf350
movzx eax, byte [0x4d3c58]
or al, byte [ebx + 0x79]
mov byte [ebx + 0x79], al
mov esi, 6
mov eax, dword [ebx + 0x74]
test byte [eax + 4], 1
jne 0x4d3b54
mov eax, dword [eax + 0x38]
mov edx, dword [eax + 0x130]
mov dword [ebp - 0x18], edx
mov edx, dword [eax + 0x134]
mov dword [ebp - 0x14], edx
cmp word [ebp - 0x16], 0
je 0x4d3b26
mov byte [ebx + 0x78], 1
mov eax, dword [ebp - 4]
push eax
movzx eax, byte [ebx + 0x79]
push eax
lea eax, [ebx + 0x78]
push eax
mov eax, dword [ebx + 0x10]
mov edx, dword [eax + 0x38]
mov ecx, dword [ebx + 0x28]
mov eax, dword [ebp - 0x14]
call dword [ebp - 0x18]
cmp byte [ebx + 0x78], 0
jne 0x4d3b12
mov esi, dword [ebx + 0x74]
movzx eax, byte [esi + 4]
or al, byte [0x4d3c5c]
mov byte [esi + 4], al
mov byte [ebx + 0x78], 1
cmp byte [ebx + 0x78], 1
jne 0x4d3b1f
mov esi, 6
jmp 0x4d3b54
mov esi, 7
jmp 0x4d3b54
push 0x102716
movzx eax, word [0x4d3c60]
push eax
lea ecx, [ebp - 0x2c]
mov edx, 0x2b5e
mov esi, dword [ebx + 0x10]
mov eax, esi
call fcn.004cf3c8
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.004cf5ec
mov esi, eax
test esi, esi
jne 0x4d3b67
xor ecx, ecx
mov edx, 0x2afe
mov eax, dword [ebx + 0x10]
call fcn.004cef88
cmp esi, 7
jne 0x4d3b88
push 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0x11
lea ecx, [ebp - 0x28]
mov edx, 0x2b2a
mov eax, dword [ebx + 0x10]
call fcn.004ce900
cmp esi, 6
jne 0x4d3b9b
mov eax, dword [ebp - 4]
call fcn.00406dec
push eax
call sub.kernel32.dll_DeleteFileW
mov eax, dword [ebp - 8]
call fcn.00413d00
test al, al
je 0x4d3c00
mov eax, dword [ebp - 4]
call fcn.00406dec
push eax
mov eax, dword [ebp - 8]
call fcn.00406dec
push eax
call sub.kernel32.dll_MoveFileW
xor eax, eax
mov dword [ebp - 0x10], eax
mov esi, dword [ebx + 0x10]
cmp byte [esi + 0x7c], 1
jb 0x4d3c00
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, 0x4d3c70
call fcn.004151d0
mov edx, dword [ebp - 0x30]
mov eax, esi
call fcn.004ce38c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d3c37
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.00406d58
lea eax, [ebp - 0x1c]
call fcn.00406d50
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406d58
ret