Function at 0x4c5320
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x4c5328
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x4c595a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5cee64]
mov edx, dword [0x5cee68]
call fcn.00405864
je 0x4c535c
mov eax, dword [0x5cee18]
call fcn.004700b8
mov eax, 0x4c5970
call fcn.004058cc
push eax
call sub.kernel32.dll_DeleteFileA
lea edx, [ebp - 0x1c]
mov eax, dword [0x5c8bcc]
mov eax, dword [eax]
call fcn.00474624
mov eax, dword [ebp - 0x1c]
mov edx, 0x4c5970
call fcn.004c5144
test al, al
jne 0x4c53a5
mov eax, 0x4c5990
call fcn.004475e8
mov eax, dword [0x5cee18]
call fcn.004700b8
jmp 0x4c5910
mov eax, dword [0x5ceed4]
mov edx, 0x4c59a8
call fcn.00405864
jne 0x4c5430
lea eax, [ebp - 0x20]
call fcn.004c2560
mov edx, dword [ebp - 0x20]
mov eax, 0x5cee94
call fcn.00405490
lea ecx, [ebp - 0x24]
mov edx, 1
mov eax, dword [0x5cee94]
call fcn.0043d934
mov eax, dword [ebp - 0x24]
mov edx, 0x4c59b4
call fcn.00405864
je 0x4c541c
lea ecx, [ebp - 0x28]
mov edx, 1
mov eax, dword [0x5cee94]
call fcn.0043d934
mov eax, dword [ebp - 0x28]
mov edx, 0x4c59c0
call fcn.00405864
je 0x4c541c
mov eax, 0x5cee94
mov edx, 0x4c59b4
call fcn.00405708
mov eax, 0x5cee94
mov edx, 0x4c59cc
call fcn.00405708
jmp 0x4c54b8
call fcn.0040cb48
fstp qword [ebp - 0x18]
wait
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov edx, dword [0x5c8b6c]
mov edx, dword [edx]
lea eax, [ebp - 8]
call fcn.0040d77c
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 8]
call fcn.004bb0b4
lea eax, [ebp - 0x40]
lea edx, [ebp - 0x30]
call fcn.004bb12c
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
mov edx, 5
call fcn.0043d918
mov edx, dword [ebp - 0x2c]
mov eax, 0x5cee94
call fcn.00405490
push 0x4c59dc
push dword [0x5cee94]
push 0x4c59b4
mov eax, 0x5cee94
mov edx, 3
call fcn.004057d0
call fcn.004c1804
push 0
mov eax, dword [0x5cee94]
call fcn.004058cc
push eax
call fcn.004c1984
mov eax, dword [0x5cee18]
mov eax, dword [eax + 0x374]
mov edx, 0x4c5970
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [0x5cee18]
mov eax, dword [eax + 0x374]
mov edx, dword [0x5cee94]
call fcn.0048fb14
mov eax, dword [0x5cee18]
mov eax, dword [eax + 0x374]
mov byte [eax + 0x39], 1
mov byte [eax + 0x50], 1
mov byte [eax + 0x3a], 1
mov byte [eax + 0x40], 1
lea edx, [ebp - 0x44]
mov eax, dword [0x5c8ae0]
mov eax, dword [eax]
call fcn.0040a198
mov edx, dword [ebp - 0x44]
mov eax, dword [0x5cee18]
mov eax, dword [eax + 0x374]
add eax, 0x44
call fcn.00405490
xor eax, eax
push ebp
push 0x4c554b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5cee18]
mov eax, dword [eax + 0x374]
call fcn.00490404
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c5573
mov eax, 0x4c5970
call fcn.004058cc
push eax
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 4]
mov ecx, dword [0x5cee38]
mov edx, dword [0x5cee94]
call fcn.00405754
mov eax, dword [0x5ceed4]
mov edx, 0x4c59a8
call fcn.00405864
jne 0x4c573f
lea eax, [ebp - 0x48]
mov ecx, dword [0x5cee38]
mov edx, dword [0x5cee94]
call fcn.00405754
mov ebx, dword [ebp - 0x48]
push dword [0x5cee94]
push dword [0x5cee38]
push 0x4c5a0c
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.004057d0
mov esi, dword [ebp - 0x4c]
mov dword [ebp - 0x50], esi
mov eax, dword [ebp - 0x50]
call fcn.004058cc
push eax
mov dword [ebp - 0x54], ebx
mov eax, dword [ebp - 0x54]
call fcn.004058cc
push eax
call sub.kernel32.dll_MoveFileA
cmp eax, 1
sbb eax, eax
inc eax
call fcn.004c1804
xor edx, edx
push ebp
push 0x4c5700
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x40
push dword [0x5cee94]
push dword [0x5cee38]
push 0x4c5a0c
lea eax, [ebp - 0x5c]
mov edx, 3
call fcn.004057d0
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x58]
call fcn.00409d3c
mov ecx, dword [ebp - 0x58]
mov dl, 1
mov eax, dword [0x4196f4]
call fcn.0041e48c
mov dword [ebp - 0xc], eax
push 0
push 0
push 1
push 0
push 1
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.004058cc
push eax
call fcn.004c191f
mov ebx, eax
mov ecx, ebx
mov dl, 1
mov eax, dword [0x41967c]
call fcn.0041e3c8
mov esi, eax
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0x14]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.0041e274
mov eax, esi
call fcn.0040455c
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c5707
push dword [0x5cee94]
push dword [0x5cee38]
push 0x4c5a0c
lea eax, [ebp - 0x60]
mov edx, 3
call fcn.004057d0
mov ebx, dword [ebp - 0x60]
mov dword [ebp - 0x50], ebx
mov eax, dword [ebp - 0x50]
call fcn.004058cc
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov eax, dword [ebp - 0xc]
call fcn.0040455c
ret
mov ax, 0x133f
call fcn.00403570
lea eax, [ebp - 0x68]
mov edx, dword [ebp - 4]
call fcn.00405d94
mov edx, dword [ebp - 0x68]
mov eax, dword [0x5cee18]
mov eax, dword [eax + 0x36c]
call fcn.0047dd38
mov eax, dword [0x5cee24]
mov edx, 0x4c5a18
call fcn.00405864
je 0x4c57b6
mov eax, dword [0x5cee28]
mov edx, 0x4c5a18
call fcn.00405864
je 0x4c57b6
mov eax, dword [0x5cee24]
call fcn.0040a2d4
mov edx, eax
mov eax, dword [0x5cee18]
call fcn.00455920
mov eax, dword [0x5cee28]
call fcn.0040a2d4
mov edx, eax
mov eax, dword [0x5cee18]
call fcn.004558ec
jmp 0x4c57c2
mov dl, 2
mov eax, dword [0x5cee18]
call fcn.0046d44c
mov eax, dword [0x5ceeac]
mov edx, 0x4c59a8
call fcn.00405864
jne 0x4c57df
mov dl, 3
mov eax, dword [0x5cee18]
call fcn.0046c950
mov eax, dword [0x5ceeb0]
mov edx, 0x4c59a8
call fcn.00405864
jne 0x4c581c
xor eax, eax
push ebp
push 0x4c5812
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0044833c
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c581c
mov eax, dword [0x5ceeb8]
mov edx, 0x4c59a8
call fcn.00405864
jne 0x4c584a
mov eax, dword [0x5cef2c]
push eax
mov eax, dword [0x5cee18]
mov eax, dword [eax + 0x378]
push eax
mov eax, dword [0x5cee18]
push eax
call fcn.004c2518
mov eax, dword [0x5cee18]
mov eax, dword [eax + 0x364]
mov dl, 1
call fcn.0044162c
mov eax, dword [0x5cee18]
mov eax, dword [eax + 0x360]
mov dl, 1
call fcn.0044162c
mov eax, dword [0x5c8ddc]
cmp dword [eax], 0
je 0x4c5910
xor eax, eax
push ebp
push 0x4c5906
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5cee18]
call fcn.0046b634
mov ebx, eax
mov eax, dword [0x5ceec0]
call fcn.0040a2d4
add ebx, eax
mov edx, ebx
mov eax, dword [0x5c8b5c]
mov eax, dword [eax]
call fcn.00470c64
mov eax, dword [0x5cee18]
call fcn.0046b654
mov ebx, eax
mov eax, dword [0x5ceec4]
call fcn.0040a2d4
add ebx, eax
mov edx, ebx
mov eax, dword [0x5c8b5c]
mov eax, dword [eax]
call fcn.00470ca0
mov edx, dword [0x5c8ddc]
mov edx, dword [edx]
mov eax, dword [0x5c8b5c]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
call fcn.00456234
mov eax, dword [0x5c8b5c]
mov eax, dword [eax]
call fcn.00470260
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c5910
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c5961
lea eax, [ebp - 0x68]
call fcn.00405c44
lea eax, [ebp - 0x64]
mov edx, 4
call fcn.00405460
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.00405460
lea eax, [ebp - 0x30]
mov edx, 6
call fcn.00405460
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405460
ret