Function at 0x4c7f20
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 0x4c87a6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.005641ec
test al, al
jne 0x4c876e
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, 0x4c87bc
call fcn.004c43dc
mov ebx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp edi, dword [eax - 0x44c]
jne 0x4c7fc4
lea eax, [ebp - 0xc]
mov edx, 0x4c87cc
call fcn.0040330c
jmp 0x4c7fe9
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, 0x4c87d4
call fcn.006592b4
mov ecx, dword [ebp - 0xc]
mov edx, 0x4c87e4
mov eax, ebx
call fcn.004c41c0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
lea eax, [ebp - 0x38]
call fcn.004c5f58
pop ecx
mov eax, dword [ebp - 0x38]
call fcn.00624f1c
xor edx, edx
mov eax, esi
call fcn.00560dac
cmp byte [esi + 0x4a], 2
je 0x4c8031
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp edi, dword [eax - 0x44c]
jne 0x4c816c
mov eax, dword [ebp + 8]
cmp byte [eax - 0x71], 0
je 0x4c8070
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp edi, dword [eax - 0x44c]
jne 0x4c8070
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, 0x4c87f0
call fcn.00403524
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 0xc]
call fcn.00403a34
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.004c5f58
pop ecx
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x20]
pop ecx
call fcn.00403b24
cmp byte [esi + 0x4a], 2
jne 0x4c80d5
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 0x4c8137
call fcn.00413cfc
mov dword [ebp - 4], eax
cmp byte [esi + 0x4a], 0
jne 0x4c80fd
lea edx, [ebp - 0x44]
mov eax, edi
call fcn.00564380
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x1c]
call fcn.006223c0
jmp 0x4c810e
mov eax, esi
call fcn.00561020
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, 0x4c8800
call fcn.00403568
mov ecx, dword [ebp - 0x48]
mov edx, 0x4c8810
mov eax, ebx
call fcn.004c41c0
mov ecx, 0x4c8820
mov edx, 0x4c8834
mov eax, ebx
call fcn.004c41c0
jmp 0x4c82c5
lea eax, [ebp - 0xc]
mov edx, 0x4c8848
call fcn.00403524
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 0xc]
call fcn.00403a34
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.004c5f58
pop ecx
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x20]
pop ecx
call fcn.00403b24
mov eax, dword [0x672a3c]
mov byte [eax], 1
mov al, byte [esi + 0x4a]
sub al, 1
jb 0x4c81b7
sub al, 2
jne 0x4c8224
call fcn.0042e378
mov dword [ebp - 8], eax
cmp byte [esi + 0x4a], 0
jne 0x4c81df
lea edx, [ebp - 0x44]
mov eax, edi
call fcn.00564380
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 8]
mov eax, dword [esi + 0x1c]
call fcn.00622290
jmp 0x4c81f1
mov eax, dword [esi + 0x40]
call fcn.0042e9e8
mov edx, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 8]
call fcn.00620ff0
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 0x4c828d
mov eax, dword [esi + 0x38]
call fcn.0064e4ac
cmp al, 2
jne 0x4c8268
call fcn.0042e378
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.0064f1e0
mov eax, dword [ebp - 8]
call fcn.00620ff0
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 0x4c8277
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 [0x672a3c]
mov byte [eax], 0
lea eax, [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov edx, 0x4c8800
call fcn.00403568
mov ecx, dword [ebp - 0x48]
mov edx, 0x4c8810
mov eax, ebx
call fcn.004c41c0
mov ecx, 0x4c8858
mov edx, 0x4c8834
mov eax, ebx
call fcn.004c41c0
mov eax, dword [ebp + 8]
cmp byte [eax - 0x71], 0
jne 0x4c83a2
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 0x4c8388
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
lea eax, [ebp - 0x38]
call fcn.004c5f58
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.00403ac4
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x20]
call fcn.0061f388
test al, al
je 0x4c837e
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.006522a8
mov byte [ebp - 0x29], 0
jmp 0x4c8388
dec ebx
cmp ebx, 0xffffffff
jne 0x4c82ef
cmp byte [ebp - 0x29], 0
je 0x4c83a2
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 0x4c83bc
mov eax, dword [ebp + 8]
push eax
call fcn.004c7a20
pop ecx
mov eax, dword [ebp + 8]
mov byte [eax - 0x6a], 1
mov eax, dword [ebp + 8]
push eax
mov eax, 0x4c886c
call fcn.004c7530
pop ecx
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004c7530
pop ecx
mov eax, dword [ebp - 0x34]
cmp byte [eax + 0x3c], 0
je 0x4c83fe
mov eax, dword [ebp - 0x30]
cmp byte [eax + 0x3c], 0
je 0x4c83fe
mov eax, dword [ebp + 8]
push eax
mov eax, 0x4c8888
call fcn.004c7530
pop ecx
jmp 0x4c8725
mov eax, dword [ebp + 8]
cmp byte [eax - 0x71], 0
je 0x4c8457
mov eax, dword [ebp - 0x34]
mov edx, dword [eax + 0x38]
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x30]
call fcn.00622538
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.00622538
cmp ebx, eax
jle 0x4c8443
mov eax, dword [ebp + 8]
push eax
mov eax, 0x4c88b4
call fcn.004c7530
pop ecx
jmp 0x4c8725
mov eax, dword [ebp + 8]
push eax
mov eax, 0x4c8888
call fcn.004c7530
pop ecx
jmp 0x4c8725
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x44]
test eax, eax
jne 0x4c84bf
mov eax, dword [ebp - 0x30]
call fcn.00555e94
test al, al
je 0x4c8490
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 0x4c8490
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x50]
mov eax, dword [eax + 0x84]
mov ebx, eax
mov edi, eax
jmp 0x4c849c
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.00622538
mov ebx, eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x30]
mov edx, edi
call fcn.00622538
mov edi, eax
jmp 0x4c86c5
dec eax
jne 0x4c851e
mov eax, dword [ebp + 8]
push eax
mov eax, 0x4c88e0
call fcn.004c7530
pop ecx
lea eax, [ebp - 0x10]
mov edx, 0x4c8900
call fcn.0040330c
lea eax, [ebp - 0x18]
mov edx, 0x4c8900
call fcn.0040330c
mov al, byte [edi + 0x60]
dec al
je 0x4c850c
sub al, 2
jne 0x4c85eb
lea eax, [ebp - 0x18]
mov edx, 0x4c8910
call fcn.0040330c
jmp 0x4c85eb
lea eax, [ebp - 0x10]
mov edx, 0x4c8910
call fcn.0040330c
jmp 0x4c85eb
mov eax, dword [ebp + 8]
push eax
mov eax, 0x4c891c
call fcn.004c7530
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 [0x672240]
mov edx, dword [ecx + edx*4]
call fcn.00403438
mov eax, dword [ebp - 0x48]
call fcn.004c7530
pop ecx
mov edx, 0x384
mov eax, dword [ebp - 0x34]
call fcn.00562734
mov ecx, 0x27b
cdq
idiv ecx
mov ebx, eax
test ebx, ebx
je 0x4c8578
cmp byte [edi + 0x60], 3
je 0x4c8587
lea eax, [ebp - 0x10]
mov edx, 0x4c8910
call fcn.0040330c
jmp 0x4c85a1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
call fcn.004c6098
pop ecx
mov edx, dword [eax + 0xc]
lea ecx, [ebp - 0x10]
mov eax, ebx
call fcn.004c6178
mov edx, 0x386
mov eax, dword [ebp - 0x34]
call fcn.00562734
mov ecx, 0x27b
cdq
idiv ecx
mov ebx, eax
test ebx, ebx
je 0x4c85c2
cmp byte [edi + 0x60], 3
jne 0x4c85d1
lea eax, [ebp - 0x18]
mov edx, 0x4c8910
call fcn.0040330c
jmp 0x4c85eb
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
call fcn.004c6098
pop ecx
mov edx, dword [eax + 0xc]
lea ecx, [ebp - 0x18]
mov eax, ebx
call fcn.004c6178
mov edx, 0x385
mov eax, dword [ebp - 0x34]
call fcn.00562734
mov ecx, 0x27b
cdq
idiv ecx
mov ebx, eax
test ebx, ebx
jne 0x4c8615
lea eax, [ebp - 0x14]
mov edx, 0x4c8910
call fcn.0040330c
jmp 0x4c862f
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
call fcn.004c6098
pop ecx
mov edx, dword [eax + 0xc]
lea ecx, [ebp - 0x14]
mov eax, ebx
call fcn.004c6178
mov edx, 0x387
mov eax, dword [ebp - 0x34]
call fcn.00562734
mov ecx, 0x27b
cdq
idiv ecx
mov ebx, eax
test ebx, ebx
jne 0x4c8659
lea eax, [ebp - 0x1c]
mov edx, 0x4c8910
call fcn.0040330c
jmp 0x4c8673
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
call fcn.004c6098
pop ecx
mov edx, dword [eax + 0xc]
lea ecx, [ebp - 0x1c]
mov eax, ebx
call fcn.004c6178
mov eax, dword [ebp + 8]
push eax
push 0x4c8934
push dword [ebp - 0x14]
push 0x4c8948
push dword [ebp - 0x18]
push 0x4c8948
push dword [ebp - 0x1c]
push 0x4c8948
push dword [ebp - 0x10]
lea eax, [ebp - 0x48]
mov edx, 8
call fcn.004035dc
mov eax, dword [ebp - 0x48]
call fcn.004c7530
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 0x4c86ed
cmp edi, dword [ebp - 0x28]
je 0x4c8725
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
mov eax, 0x4c894c
mov edx, ebx
call fcn.006592b4
mov eax, dword [ebp - 0x48]
call fcn.004c7530
pop ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
mov eax, 0x4c8958
mov edx, edi
call fcn.006592b4
mov eax, dword [ebp - 0x48]
call fcn.004c7530
pop ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
mov eax, 0x4c8968
mov edx, dword [ebp - 0xc]
call fcn.0065918c
mov eax, dword [ebp - 0x48]
call fcn.004c7530
pop ecx
mov eax, dword [ebp + 8]
cmp byte [eax - 0x6a], 0
je 0x4c875c
mov eax, dword [ebp + 8]
push eax
call fcn.004c7a20
pop ecx
mov eax, dword [ebp + 8]
mov byte [eax - 0x6a], 0
call fcn.0053d548
test al, al
je 0x4c876e
mov dl, 1
mov eax, esi
call fcn.00560dac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c87ad
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