Function at 0x4c8510
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x656551
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x6af168]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
mov edx, dword [edi + 0x1ac]
mov eax, dword [eax + 0x20]
push edx
mov dword [ebp - 0x88], edi
call eax
mov ecx, dword [edi + 0x188]
mov edx, dword [ecx]
mov eax, dword [edx + 0x12c]
push 0x1e
call eax
test eax, eax
mov dword [ebp - 0x84], eax
je 0x4c8799
lea ebx, [ebp - 0x48]
mov eax, edi
call fcn.004c8190
mov eax, dword [ebp - 0x84]
xor ebx, ebx
lea esi, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.004af4c0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x34], ebx
je 0x4c8764
cmp dword [ebp - 0x18], ebx
je 0x4c8764
mov ecx, dword [ebp - 0x28]
mov eax, 0x10
cmp dword [ebp - 0x14], eax
jae 0x4c85ba
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x44]
jae 0x4c85c5
lea eax, [ebp - 0x44]
push ecx
push eax
call fcn.0062517b
add esp, 8
test eax, eax
lea ecx, [ebp - 0x2c]
je 0x4c8755
push ebx
call fcn.00440e00
push ebx
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.00440e00
movsx ecx, byte [esi]
push ecx
mov ebx, eax
call fcn.00625ce4
add esp, 4
push edi
lea ecx, [ebp - 0x80]
mov byte [ebx], al
call fcn.004c82c0
lea edx, [ebp - 0x2c]
push edx
lea edi, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.004c8080
add esp, 4
mov esi, dword [ebp - 0x88]
mov ebx, 3
mov byte [ebp - 4], bl
mov ecx, dword [esi + 0x188]
mov eax, edi
call fcn.00546e10
test al, al
je 0x4c86ef
push 0x66f6e0
lea ecx, [ebp - 0xdc]
call fcn.00402130
push str.There_is_already_another_replay_with_that_name.
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 4
call fcn.00402130
push str.Rename_Error
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 5
call fcn.00402130
lea eax, [ebp - 0xa4]
push eax
mov byte [ebp - 4], 6
mov ecx, dword [esi + 0x188]
push 0x1f
push ecx
mov eax, ebx
lea ecx, [ebp - 0xdc]
lea edx, [ebp - 0xc0]
call fcn.0042ed20
lea ecx, [ebp - 0xa4]
mov edi, eax
call fcn.00401c70
lea ecx, [ebp - 0xc0]
call fcn.00401c70
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], bl
call fcn.00401c70
mov eax, edi
mov ecx, esi
call fcn.004c9270
lea ecx, [ebp - 0x64]
call fcn.00401c70
lea ecx, [ebp - 0x80]
call fcn.00401c70
lea ecx, [ebp - 0x2c]
call fcn.00401c70
lea ecx, [ebp - 0x48]
call fcn.00401c70
xor al, al
jmp 0x4c879b
mov edx, dword [esi + 0x188]
cmp byte [edx + 0x511], 0
jne 0x4c8725
mov ecx, dword [ebp - 0x60]
mov eax, 0x10
cmp dword [ebp - 0x4c], eax
jae 0x4c870e
lea ecx, [ebp - 0x60]
cmp dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x7c]
jae 0x4c8719
lea eax, [ebp - 0x7c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x4c8742
mov ecx, dword [esi + 0x1a8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x124]
push 1
lea edx, [ebp - 0x2c]
push edx
call eax
mov eax, esi
call fcn.004c7790
lea ecx, [ebp - 0x64]
call fcn.00401c70
lea ecx, [ebp - 0x80]
call fcn.00401c70
lea ecx, [ebp - 0x2c]
call fcn.00401c70
lea ecx, [ebp - 0x48]
call fcn.00401c70
jmp 0x4c8799
mov esi, 0x10
cmp dword [ebp - 0x14], esi
jb 0x4c877a
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0062493b
add esp, 4
cmp dword [ebp - 0x30], esi
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], 0
jb 0x4c8799
mov edx, dword [ebp - 0x44]
push edx
call fcn.0062493b
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00624940
mov esp, ebp
pop ebp
ret