Function at 0x4b7ef0
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 0x4b8776
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.0055b7e0
test al, al
jne 0x4b873e
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, 0x4b878c
call fcn.004b4384
mov ebx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp edi, dword [eax - 0x44c]
jne 0x4b7f94
lea eax, [ebp - 0xc]
mov edx, 0x4b879c
call fcn.0040330c
jmp 0x4b7fb9
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, 0x4b87a4
call fcn.00655344
mov ecx, dword [ebp - 0xc]
mov edx, 0x4b87b4
mov eax, ebx
call fcn.004b4168
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
lea eax, [ebp - 0x38]
call fcn.004b5f28
pop ecx
mov eax, dword [ebp - 0x38]
call fcn.006216bc
xor edx, edx
mov eax, esi
call fcn.00558398
cmp byte [esi + 0x4a], 2
je 0x4b8001
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp edi, dword [eax - 0x44c]
jne 0x4b813c
mov eax, dword [ebp + 8]
cmp byte [eax - 0x71], 0
je 0x4b8040
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp edi, dword [eax - 0x44c]
jne 0x4b8040
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, 0x4b87c0
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.004b5f28
pop ecx
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x20]
pop ecx
call fcn.00403b24
cmp byte [esi + 0x4a], 2
jne 0x4b80a5
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 0x4b8107
call fcn.00413cfc
mov dword [ebp - 4], eax
cmp byte [esi + 0x4a], 0
jne 0x4b80cd
lea edx, [ebp - 0x44]
mov eax, edi
call fcn.0055b974
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x1c]
call fcn.0061ea90
jmp 0x4b80de
mov eax, esi
call fcn.0055860c
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, 0x4b87d0
call fcn.00403568
mov ecx, dword [ebp - 0x48]
mov edx, 0x4b87e0
mov eax, ebx
call fcn.004b4168
mov ecx, 0x4b87f0
mov edx, 0x4b8804
mov eax, ebx
call fcn.004b4168
jmp 0x4b8295
lea eax, [ebp - 0xc]
mov edx, 0x4b8818
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.004b5f28
pop ecx
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x20]
pop ecx
call fcn.00403b24
mov eax, dword [0x6697d8]
mov byte [eax], 1
mov al, byte [esi + 0x4a]
sub al, 1
jb 0x4b8187
sub al, 2
jne 0x4b81f4
call fcn.0041e8b0
mov dword [ebp - 8], eax
cmp byte [esi + 0x4a], 0
jne 0x4b81af
lea edx, [ebp - 0x44]
mov eax, edi
call fcn.0055b974
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 8]
mov eax, dword [esi + 0x1c]
call fcn.0061e960
jmp 0x4b81c1
mov eax, dword [esi + 0x40]
call fcn.0041ef20
mov edx, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 8]
call fcn.0061d6c0
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 0x4b825d
mov eax, dword [esi + 0x38]
call fcn.0064af50
cmp al, 2
jne 0x4b8238
call fcn.0041e8b0
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.0064bc84
mov eax, dword [ebp - 8]
call fcn.0061d6c0
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 0x4b8247
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 [0x6697d8]
mov byte [eax], 0
lea eax, [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov edx, 0x4b87d0
call fcn.00403568
mov ecx, dword [ebp - 0x48]
mov edx, 0x4b87e0
mov eax, ebx
call fcn.004b4168
mov ecx, 0x4b8828
mov edx, 0x4b8804
mov eax, ebx
call fcn.004b4168
mov eax, dword [ebp + 8]
cmp byte [eax - 0x71], 0
jne 0x4b8372
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 0x4b8358
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
lea eax, [ebp - 0x38]
call fcn.004b5f28
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.0061b9bc
test al, al
je 0x4b834e
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.0064e460
mov byte [ebp - 0x29], 0
jmp 0x4b8358
dec ebx
cmp ebx, 0xffffffff
jne 0x4b82bf
cmp byte [ebp - 0x29], 0
je 0x4b8372
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 0x4b838c
mov eax, dword [ebp + 8]
push eax
call fcn.004b79f0
pop ecx
mov eax, dword [ebp + 8]
mov byte [eax - 0x6a], 1
mov eax, dword [ebp + 8]
push eax
mov eax, 0x4b883c
call fcn.004b7500
pop ecx
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004b7500
pop ecx
mov eax, dword [ebp - 0x34]
cmp byte [eax + 0x3c], 0
je 0x4b83ce
mov eax, dword [ebp - 0x30]
cmp byte [eax + 0x3c], 0
je 0x4b83ce
mov eax, dword [ebp + 8]
push eax
mov eax, 0x4b8858
call fcn.004b7500
pop ecx
jmp 0x4b86f5
mov eax, dword [ebp + 8]
cmp byte [eax - 0x71], 0
je 0x4b8427
mov eax, dword [ebp - 0x34]
mov edx, dword [eax + 0x38]
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x30]
call fcn.0061ec08
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.0061ec08
cmp ebx, eax
jle 0x4b8413
mov eax, dword [ebp + 8]
push eax
mov eax, 0x4b8884
call fcn.004b7500
pop ecx
jmp 0x4b86f5
mov eax, dword [ebp + 8]
push eax
mov eax, 0x4b8858
call fcn.004b7500
pop ecx
jmp 0x4b86f5
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x44]
test eax, eax
jne 0x4b848f
mov eax, dword [ebp - 0x30]
call fcn.0054d440
test al, al
je 0x4b8460
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 0x4b8460
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x50]
mov eax, dword [eax + 0x84]
mov ebx, eax
mov edi, eax
jmp 0x4b846c
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.0061ec08
mov ebx, eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x30]
mov edx, edi
call fcn.0061ec08
mov edi, eax
jmp 0x4b8695
dec eax
jne 0x4b84ee
mov eax, dword [ebp + 8]
push eax
mov eax, 0x4b88b0
call fcn.004b7500
pop ecx
lea eax, [ebp - 0x10]
mov edx, 0x4b88d0
call fcn.0040330c
lea eax, [ebp - 0x18]
mov edx, 0x4b88d0
call fcn.0040330c
mov al, byte [edi + 0x60]
dec al
je 0x4b84dc
sub al, 2
jne 0x4b85bb
lea eax, [ebp - 0x18]
mov edx, 0x4b88e0
call fcn.0040330c
jmp 0x4b85bb
lea eax, [ebp - 0x10]
mov edx, 0x4b88e0
call fcn.0040330c
jmp 0x4b85bb
mov eax, dword [ebp + 8]
push eax
mov eax, 0x4b88ec
call fcn.004b7500
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 [0x669464]
mov edx, dword [ecx + edx*4]
call fcn.00403438
mov eax, dword [ebp - 0x48]
call fcn.004b7500
pop ecx
mov edx, 0x384
mov eax, dword [ebp - 0x34]
call fcn.00559d28
mov ecx, 0x27b
cdq
idiv ecx
mov ebx, eax
test ebx, ebx
je 0x4b8548
cmp byte [edi + 0x60], 3
je 0x4b8557
lea eax, [ebp - 0x10]
mov edx, 0x4b88e0
call fcn.0040330c
jmp 0x4b8571
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
call fcn.004b6068
pop ecx
mov edx, dword [eax + 0xc]
lea ecx, [ebp - 0x10]
mov eax, ebx
call fcn.004b6148
mov edx, 0x386
mov eax, dword [ebp - 0x34]
call fcn.00559d28
mov ecx, 0x27b
cdq
idiv ecx
mov ebx, eax
test ebx, ebx
je 0x4b8592
cmp byte [edi + 0x60], 3
jne 0x4b85a1
lea eax, [ebp - 0x18]
mov edx, 0x4b88e0
call fcn.0040330c
jmp 0x4b85bb
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
call fcn.004b6068
pop ecx
mov edx, dword [eax + 0xc]
lea ecx, [ebp - 0x18]
mov eax, ebx
call fcn.004b6148
mov edx, 0x385
mov eax, dword [ebp - 0x34]
call fcn.00559d28
mov ecx, 0x27b
cdq
idiv ecx
mov ebx, eax
test ebx, ebx
jne 0x4b85e5
lea eax, [ebp - 0x14]
mov edx, 0x4b88e0
call fcn.0040330c
jmp 0x4b85ff
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
call fcn.004b6068
pop ecx
mov edx, dword [eax + 0xc]
lea ecx, [ebp - 0x14]
mov eax, ebx
call fcn.004b6148
mov edx, 0x387
mov eax, dword [ebp - 0x34]
call fcn.00559d28
mov ecx, 0x27b
cdq
idiv ecx
mov ebx, eax
test ebx, ebx
jne 0x4b8629
lea eax, [ebp - 0x1c]
mov edx, 0x4b88e0
call fcn.0040330c
jmp 0x4b8643
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
call fcn.004b6068
pop ecx
mov edx, dword [eax + 0xc]
lea ecx, [ebp - 0x1c]
mov eax, ebx
call fcn.004b6148
mov eax, dword [ebp + 8]
push eax
push 0x4b8904
push dword [ebp - 0x14]
push 0x4b8918
push dword [ebp - 0x18]
push 0x4b8918
push dword [ebp - 0x1c]
push 0x4b8918
push dword [ebp - 0x10]
lea eax, [ebp - 0x48]
mov edx, 8
call fcn.004035dc
mov eax, dword [ebp - 0x48]
call fcn.004b7500
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 0x4b86bd
cmp edi, dword [ebp - 0x28]
je 0x4b86f5
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
mov eax, 0x4b891c
mov edx, ebx
call fcn.00655344
mov eax, dword [ebp - 0x48]
call fcn.004b7500
pop ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
mov eax, 0x4b8928
mov edx, edi
call fcn.00655344
mov eax, dword [ebp - 0x48]
call fcn.004b7500
pop ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
mov eax, 0x4b8938
mov edx, dword [ebp - 0xc]
call fcn.0065521c
mov eax, dword [ebp - 0x48]
call fcn.004b7500
pop ecx
mov eax, dword [ebp + 8]
cmp byte [eax - 0x6a], 0
je 0x4b872c
mov eax, dword [ebp + 8]
push eax
call fcn.004b79f0
pop ecx
mov eax, dword [ebp + 8]
mov byte [eax - 0x6a], 0
call fcn.00534a14
test al, al
je 0x4b873e
mov dl, 1
mov eax, esi
call fcn.00558398
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b877d
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