Function at 0x4c5760
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x4c5768
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x4c5d9a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5cee64]
mov edx, dword [0x5cee68]
call fcn.00405864
je 0x4c579c
mov eax, dword [0x5cee18]
call fcn.004700b8
mov eax, 0x4c5db0
call fcn.004058cc
push eax
call sub.kernel32.dll_DeleteFileA
lea edx, [ebp - 0x1c]
mov eax, dword [0x5c8bd0]
mov eax, dword [eax]
call fcn.00474624
mov eax, dword [ebp - 0x1c]
mov edx, 0x4c5db0
call fcn.004c5584
test al, al
jne 0x4c57e5
mov eax, 0x4c5dd0
call fcn.004475e8
mov eax, dword [0x5cee18]
call fcn.004700b8
jmp 0x4c5d50
mov eax, dword [0x5ceed4]
mov edx, 0x4c5de8
call fcn.00405864
jne 0x4c5870
lea eax, [ebp - 0x20]
call fcn.004c2618
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, 0x4c5df4
call fcn.00405864
je 0x4c585c
lea ecx, [ebp - 0x28]
mov edx, 1
mov eax, dword [0x5cee94]
call fcn.0043d934
mov eax, dword [ebp - 0x28]
mov edx, 0x4c5e00
call fcn.00405864
je 0x4c585c
mov eax, 0x5cee94
mov edx, 0x4c5df4
call fcn.00405708
mov eax, 0x5cee94
mov edx, 0x4c5e0c
call fcn.00405708
jmp 0x4c58f8
call fcn.0040cb48
fstp qword [ebp - 0x18]
wait
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov edx, dword [0x5c8b70]
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 0x4c5e1c
push dword [0x5cee94]
push 0x4c5df4
mov eax, 0x5cee94
mov edx, 3
call fcn.004057d0
call fcn.004c18bc
push 0
mov eax, dword [0x5cee94]
call fcn.004058cc
push eax
call fcn.004c1a3c
mov eax, dword [0x5cee18]
mov eax, dword [eax + 0x374]
mov edx, 0x4c5db0
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 0x4c598b
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 0x4c59b3
mov eax, 0x4c5db0
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, 0x4c5de8
call fcn.00405864
jne 0x4c5b7f
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 0x4c5e4c
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.004c18bc
xor edx, edx
push ebp
push 0x4c5b40
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x40
push dword [0x5cee94]
push dword [0x5cee38]
push 0x4c5e4c
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.004c19d7
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 0x4c5b47
push dword [0x5cee94]
push dword [0x5cee38]
push 0x4c5e4c
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, 0x4c5e58
call fcn.00405864
je 0x4c5bf6
mov eax, dword [0x5cee28]
mov edx, 0x4c5e58
call fcn.00405864
je 0x4c5bf6
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 0x4c5c02
mov dl, 2
mov eax, dword [0x5cee18]
call fcn.0046d44c
mov eax, dword [0x5ceeac]
mov edx, 0x4c5de8
call fcn.00405864
jne 0x4c5c1f
mov dl, 3
mov eax, dword [0x5cee18]
call fcn.0046c950
mov eax, dword [0x5ceeb0]
mov edx, 0x4c5de8
call fcn.00405864
jne 0x4c5c5c
xor eax, eax
push ebp
push 0x4c5c52
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 0x4c5c5c
mov eax, dword [0x5ceeb8]
mov edx, 0x4c5de8
call fcn.00405864
jne 0x4c5c8a
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.004c25d0
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 [0x5c8de8]
cmp dword [eax], 0
je 0x4c5d50
xor eax, eax
push ebp
push 0x4c5d46
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 [0x5c8b60]
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 [0x5c8b60]
mov eax, dword [eax]
call fcn.00470ca0
mov edx, dword [0x5c8de8]
mov edx, dword [edx]
mov eax, dword [0x5c8b60]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
call fcn.00456234
mov eax, dword [0x5c8b60]
mov eax, dword [eax]
call fcn.00470260
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c5d50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c5da1
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