Function at 0x4c5d1c
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4c65a2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00561234
test al, al
jne 0x4c656a
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x68]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0xb0]
mov edx, dword [edx + 0x1c]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x30], eax
mov esi, dword [edi + 0xc]
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 0x420]
mov edx, 0x4c65b8
call fcn.004c2260
mov ebx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp edi, dword [eax - 0x44c]
jne 0x4c5dc0
lea eax, [ebp - 0xc]
mov edx, 0x4c65c8
call fcn.0040330c
jmp 0x4c5de5
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
inc dword [eax - 0x424]
lea ecx, [ebp - 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov edx, dword [eax - 0x424]
mov eax, 0x4c65d0
call fcn.00655c8c
mov ecx, dword [ebp - 0xc]
mov edx, 0x4c65e0
mov eax, ebx
call fcn.004c2044
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
lea eax, [ebp - 0x38]
call fcn.004c3d54
pop ecx
mov eax, dword [ebp - 0x38]
call fcn.006219e4
xor edx, edx
mov eax, esi
call fcn.0055ddf4
cmp byte [esi + 0x4a], 2
je 0x4c5e2d
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp edi, dword [eax - 0x44c]
jne 0x4c5f68
mov eax, dword [ebp + 8]
cmp byte [eax - 0x71], 0
je 0x4c5e6c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp edi, dword [eax - 0x44c]
jne 0x4c5e6c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
add eax, 0xfffffbb0
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x78]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
mov ecx, dword [ecx - 0x430]
mov ecx, dword [ecx + 0x14]
mov edx, dword [ecx + edx*4]
call fcn.0040330c
lea eax, [ebp - 0xc]
mov edx, 0x4c65ec
call fcn.00403524
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 0xc]
call fcn.00403a24
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
lea eax, [ebp - 0x3c]
call fcn.004c3d54
pop ecx
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x20]
pop ecx
call fcn.00403b14
cmp byte [esi + 0x4a], 2
jne 0x4c5ed1
push 0
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [esi + 0xc]
push eax
call sub.kernel32.dll_CopyFileW
mov eax, dword [esi + 0x3c]
mov edx, dword [eax]
call dword [edx + 0x28]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x3c]
mov edx, dword [eax]
call dword [edx + 0x1c]
mov dword [ebp - 0x28], eax
jmp 0x4c5f33
call fcn.0041349c
mov dword [ebp - 4], eax
cmp byte [esi + 0x4a], 0
jne 0x4c5ef9
lea edx, [ebp - 0x44]
mov eax, edi
call fcn.005613c8
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x1c]
call fcn.0061ee88
jmp 0x4c5f0a
mov eax, esi
call fcn.0055e068
mov edx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x28]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
call fcn.004028c0
lea eax, [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov edx, 0x4c65fc
call fcn.00403568
mov ecx, dword [ebp - 0x48]
mov edx, 0x4c660c
mov eax, ebx
call fcn.004c2044
mov ecx, 0x4c661c
mov edx, 0x4c6630
mov eax, ebx
call fcn.004c2044
jmp 0x4c60c1
lea eax, [ebp - 0xc]
mov edx, 0x4c6644
call fcn.00403524
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 0xc]
call fcn.00403a24
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
lea eax, [ebp - 0x3c]
call fcn.004c3d54
pop ecx
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x20]
pop ecx
call fcn.00403b14
mov eax, dword [0x66f9dc]
mov byte [eax], 1
mov al, byte [esi + 0x4a]
sub al, 1
jb 0x4c5fb3
sub al, 2
jne 0x4c6020
call fcn.0042db2c
mov dword [ebp - 8], eax
cmp byte [esi + 0x4a], 0
jne 0x4c5fdb
lea edx, [ebp - 0x44]
mov eax, edi
call fcn.005613c8
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 8]
mov eax, dword [esi + 0x1c]
call fcn.0061ed58
jmp 0x4c5fed
mov eax, dword [esi + 0x40]
call fcn.0042e19c
mov edx, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 8]
call fcn.0061dab8
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x28]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
call fcn.004028c0
jmp 0x4c6089
mov eax, dword [esi + 0x38]
call fcn.0064ae34
cmp al, 2
jne 0x4c6064
call fcn.0042db2c
mov dword [ebp - 8], eax
mov edx, dword [esi + 0x38]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 8]
call fcn.0064bb68
mov eax, dword [ebp - 8]
call fcn.0061dab8
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 8]
call fcn.004028c0
jmp 0x4c6073
push 0
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [esi + 0xc]
push eax
call sub.kernel32.dll_CopyFileW
mov eax, dword [esi + 0x38]
mov edx, dword [eax]
call dword [edx + 0x28]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x38]
mov edx, dword [eax]
call dword [edx + 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [0x66f9dc]
mov byte [eax], 0
lea eax, [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov edx, 0x4c65fc
call fcn.00403568
mov ecx, dword [ebp - 0x48]
mov edx, 0x4c660c
mov eax, ebx
call fcn.004c2044
mov ecx, 0x4c6654
mov edx, 0x4c6630
mov eax, ebx
call fcn.004c2044
mov eax, dword [ebp + 8]
cmp byte [eax - 0x71], 0
jne 0x4c619e
mov byte [ebp - 0x29], 1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 0x454]
mov ebx, dword [eax + 0x24]
dec ebx
cmp ebx, 0
jl 0x4c6184
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
lea eax, [ebp - 0x38]
call fcn.004c3d54
pop ecx
lea eax, [ebp - 0x38]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov edx, dword [edx - 0x454]
mov edx, dword [edx + 0x18]
mov edx, dword [edx + ebx*4]
call fcn.00403ab4
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x20]
call fcn.0061be50
test al, al
je 0x4c617a
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_DeleteFileW
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
dec dword [eax - 0x424]
lea eax, [ebp - 0xc]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov edx, dword [edx - 0x454]
mov edx, dword [edx + 0x18]
mov edx, dword [edx + ebx*4]
call fcn.004034e4
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 0x420]
mov edx, dword [eax + 0x18]
dec edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 0x420]
call fcn.0064ec4c
mov byte [ebp - 0x29], 0
jmp 0x4c6184
dec ebx
cmp ebx, 0xffffffff
jne 0x4c60eb
cmp byte [ebp - 0x29], 0
je 0x4c619e
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 0x454]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x34]
cmp dword [eax + 0x44], 0
je 0x4c61b8
mov eax, dword [ebp + 8]
push eax
call fcn.004c581c
pop ecx
mov eax, dword [ebp + 8]
mov byte [eax - 0x6a], 1
mov eax, dword [ebp + 8]
push eax
mov eax, 0x4c6668
call fcn.004c532c
pop ecx
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004c532c
pop ecx
mov eax, dword [ebp - 0x34]
cmp byte [eax + 0x3c], 0
je 0x4c61fa
mov eax, dword [ebp - 0x30]
cmp byte [eax + 0x3c], 0
je 0x4c61fa
mov eax, dword [ebp + 8]
push eax
mov eax, 0x4c6684
call fcn.004c532c
pop ecx
jmp 0x4c6521
mov eax, dword [ebp + 8]
cmp byte [eax - 0x71], 0
je 0x4c6253
mov eax, dword [ebp - 0x34]
mov edx, dword [eax + 0x38]
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x30]
call fcn.0061f000
mov ebx, eax
mov eax, dword [ebp - 0x34]
mov edx, dword [eax + 0x34]
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x2c]
call fcn.0061f000
cmp ebx, eax
jle 0x4c623f
mov eax, dword [ebp + 8]
push eax
mov eax, 0x4c66b0
call fcn.004c532c
pop ecx
jmp 0x4c6521
mov eax, dword [ebp + 8]
push eax
mov eax, 0x4c6684
call fcn.004c532c
pop ecx
jmp 0x4c6521
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x44]
test eax, eax
jne 0x4c62bb
mov eax, dword [ebp - 0x30]
call fcn.00552edc
test al, al
je 0x4c628c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x7c]
mov edx, dword [ebp - 0x30]
mov edx, dword [edx + 0x50]
cmp eax, dword [edx + 8]
jge 0x4c628c
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x50]
mov eax, dword [eax + 0x84]
mov ebx, eax
mov edi, eax
jmp 0x4c6298
mov eax, dword [ebp - 0x34]
mov ebx, dword [eax + 0x34]
mov eax, dword [ebp - 0x34]
mov edi, dword [eax + 0x38]
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x2c]
mov edx, ebx
call fcn.0061f000
mov ebx, eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x30]
mov edx, edi
call fcn.0061f000
mov edi, eax
jmp 0x4c64c1
dec eax
jne 0x4c631a
mov eax, dword [ebp + 8]
push eax
mov eax, 0x4c66dc
call fcn.004c532c
pop ecx
lea eax, [ebp - 0x10]
mov edx, 0x4c66fc
call fcn.0040330c
lea eax, [ebp - 0x18]
mov edx, 0x4c66fc
call fcn.0040330c
mov al, byte [edi + 0x60]
dec al
je 0x4c6308
sub al, 2
jne 0x4c63e7
lea eax, [ebp - 0x18]
mov edx, 0x4c670c
call fcn.0040330c
jmp 0x4c63e7
lea eax, [ebp - 0x10]
mov edx, 0x4c670c
call fcn.0040330c
jmp 0x4c63e7
mov eax, dword [ebp + 8]
push eax
mov eax, 0x4c6718
call fcn.004c532c
pop ecx
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x48]
cmp byte [edi + 0x60], 3
sete dl
and edx, 0x7f
add edx, edx
mov ecx, dword [0x66f1d8]
mov edx, dword [ecx + edx*4]
call fcn.00403438
mov eax, dword [ebp - 0x48]
call fcn.004c532c
pop ecx
mov edx, 0x384
mov eax, dword [ebp - 0x34]
call fcn.0055f77c
mov ecx, 0x27b
cdq
idiv ecx
mov ebx, eax
test ebx, ebx
je 0x4c6374
cmp byte [edi + 0x60], 3
je 0x4c6383
lea eax, [ebp - 0x10]
mov edx, 0x4c670c
call fcn.0040330c
jmp 0x4c639d
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
call fcn.004c3e94
pop ecx
mov edx, dword [eax + 0xc]
lea ecx, [ebp - 0x10]
mov eax, ebx
call fcn.004c3f74
mov edx, 0x386
mov eax, dword [ebp - 0x34]
call fcn.0055f77c
mov ecx, 0x27b
cdq
idiv ecx
mov ebx, eax
test ebx, ebx
je 0x4c63be
cmp byte [edi + 0x60], 3
jne 0x4c63cd
lea eax, [ebp - 0x18]
mov edx, 0x4c670c
call fcn.0040330c
jmp 0x4c63e7
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
call fcn.004c3e94
pop ecx
mov edx, dword [eax + 0xc]
lea ecx, [ebp - 0x18]
mov eax, ebx
call fcn.004c3f74
mov edx, 0x385
mov eax, dword [ebp - 0x34]
call fcn.0055f77c
mov ecx, 0x27b
cdq
idiv ecx
mov ebx, eax
test ebx, ebx
jne 0x4c6411
lea eax, [ebp - 0x14]
mov edx, 0x4c670c
call fcn.0040330c
jmp 0x4c642b
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
call fcn.004c3e94
pop ecx
mov edx, dword [eax + 0xc]
lea ecx, [ebp - 0x14]
mov eax, ebx
call fcn.004c3f74
mov edx, 0x387
mov eax, dword [ebp - 0x34]
call fcn.0055f77c
mov ecx, 0x27b
cdq
idiv ecx
mov ebx, eax
test ebx, ebx
jne 0x4c6455
lea eax, [ebp - 0x1c]
mov edx, 0x4c670c
call fcn.0040330c
jmp 0x4c646f
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
call fcn.004c3e94
pop ecx
mov edx, dword [eax + 0xc]
lea ecx, [ebp - 0x1c]
mov eax, ebx
call fcn.004c3f74
mov eax, dword [ebp + 8]
push eax
push 0x4c6730
push dword [ebp - 0x14]
push 0x4c6744
push dword [ebp - 0x18]
push 0x4c6744
push dword [ebp - 0x1c]
push 0x4c6744
push dword [ebp - 0x10]
lea eax, [ebp - 0x48]
mov edx, 8
call fcn.004035dc
mov eax, dword [ebp - 0x48]
call fcn.004c532c
pop ecx
mov eax, dword [ebp - 0x34]
mov ebx, dword [eax + 0x5c]
mov eax, dword [ebp - 0x34]
sub ebx, dword [eax + 0x54]
mov eax, dword [ebp - 0x34]
mov edi, dword [eax + 0x60]
mov eax, dword [ebp - 0x34]
sub edi, dword [eax + 0x58]
push 0x5a0
push ebx
push 0x60
call sub.kernel32.dll_MulDiv
mov ebx, eax
push 0x5a0
push edi
push 0x60
call sub.kernel32.dll_MulDiv
mov edi, eax
cmp ebx, dword [ebp - 0x24]
jne 0x4c64e9
cmp edi, dword [ebp - 0x28]
je 0x4c6521
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
mov eax, 0x4c6748
mov edx, ebx
call fcn.00655c8c
mov eax, dword [ebp - 0x48]
call fcn.004c532c
pop ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
mov eax, 0x4c6754
mov edx, edi
call fcn.00655c8c
mov eax, dword [ebp - 0x48]
call fcn.004c532c
pop ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
mov eax, 0x4c6764
mov edx, dword [ebp - 0xc]
call fcn.00655b64
mov eax, dword [ebp - 0x48]
call fcn.004c532c
pop ecx
mov eax, dword [ebp + 8]
cmp byte [eax - 0x6a], 0
je 0x4c6558
mov eax, dword [ebp + 8]
push eax
call fcn.004c581c
pop ecx
mov eax, dword [ebp + 8]
mov byte [eax - 0x6a], 0
call fcn.0053a6f4
test al, al
je 0x4c656a
mov dl, 1
mov eax, esi
call fcn.0055ddf4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c65a9
lea eax, [ebp - 0x48]
call fcn.00403274
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.00403898
lea eax, [ebp - 0x20]
call fcn.00403880
lea eax, [ebp - 0x1c]
mov edx, 5
call fcn.00403298
ret