Function at 0x4b9350
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 esi, eax
xor eax, eax
push ebp
push 0x4b9bcd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00561aa0
test al, al
jne 0x4b9b95
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 + 0xa8]
mov edx, dword [edx + 0x1c]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x30], eax
mov edi, dword [esi + 0xc]
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 0x420]
mov edx, 0x4b9be4
call fcn.004b5854
mov ebx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp esi, dword [eax - 0x44c]
jne 0x4b93f4
lea eax, [ebp - 0xc]
mov edx, 0x4b9bf4
call fcn.0040330c
jmp 0x4b9419
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, 0x4b9bfc
call fcn.0065da0c
mov ecx, dword [ebp - 0xc]
mov edx, 0x4b9c0c
mov eax, ebx
call fcn.004b5638
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
lea eax, [ebp - 0x38]
call fcn.004b7350
pop ecx
mov eax, dword [ebp - 0x38]
call fcn.0062afc8
xor edx, edx
mov eax, edi
call fcn.0055e4e0
cmp byte [edi + 0x46], 2
je 0x4b9461
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp esi, dword [eax - 0x44c]
jne 0x4b95aa
mov eax, dword [ebp + 8]
cmp byte [eax - 0x71], 0
je 0x4b94a0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp esi, dword [eax - 0x44c]
jne 0x4b94a0
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, 0x4b9c18
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.004b7350
pop ecx
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x20]
pop ecx
call fcn.00403b24
cmp byte [edi + 0x46], 2
jne 0x4b9505
push 0
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [edi + 0xc]
push eax
call sub.kernel32.dll_CopyFileW
mov eax, dword [edi + 0x3c]
mov edx, dword [eax]
call dword [edx + 0x28]
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 0x3c]
mov edx, dword [eax]
call dword [edx + 0x1c]
mov dword [ebp - 0x28], eax
jmp 0x4b9575
mov dl, 1
mov eax, dword [0x413ffc]
call fcn.00414448
mov dword [ebp - 4], eax
mov al, byte [edi + 0x46]
sub al, 1
jb 0x4b951f
je 0x4b9539
jmp 0x4b954c
lea edx, [ebp - 0x44]
mov eax, esi
call fcn.00561c54
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 4]
mov eax, dword [edi + 0x1c]
call fcn.00628834
jmp 0x4b954c
mov eax, dword [edi + 0x38]
call fcn.006273fc
mov edx, dword [edi + 0x38]
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, 0x4b9c28
call fcn.00403568
mov ecx, dword [ebp - 0x48]
mov edx, 0x4b9c38
mov eax, ebx
call fcn.004b5638
mov ecx, 0x4b9c48
mov edx, 0x4b9c5c
mov eax, ebx
call fcn.004b5638
jmp 0x4b96ec
lea eax, [ebp - 0xc]
mov edx, 0x4b9c70
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.004b7350
pop ecx
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x20]
pop ecx
call fcn.00403b24
mov eax, dword [0x672654]
mov byte [eax], 1
cmp byte [edi + 0x46], 0
jne 0x4b9642
mov dl, 1
mov eax, dword [0x41ef24]
call fcn.006515a0
mov dword [ebp - 8], eax
lea edx, [ebp - 0x44]
mov eax, esi
call fcn.00561c54
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 8]
mov eax, dword [edi + 0x1c]
call fcn.006286fc
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 0x4b96b4
mov eax, dword [edi + 0x38]
call fcn.00651a24
cmp al, 2
jne 0x4b968f
mov dl, 1
mov eax, dword [0x41ef24]
call fcn.006515a0
mov dword [ebp - 8], eax
mov edx, dword [edi + 0x38]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 8]
mov dl, 6
mov eax, dword [ebp - 8]
call fcn.006525b0
mov eax, dword [ebp - 8]
call fcn.006273fc
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 0x4b969e
push 0
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [edi + 0xc]
push eax
call sub.kernel32.dll_CopyFileW
mov eax, dword [edi + 0x38]
mov edx, dword [eax]
call dword [edx + 0x28]
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 0x38]
mov edx, dword [eax]
call dword [edx + 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [0x672654]
mov byte [eax], 0
lea eax, [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov edx, 0x4b9c28
call fcn.00403568
mov ecx, dword [ebp - 0x48]
mov edx, 0x4b9c38
mov eax, ebx
call fcn.004b5638
mov ecx, 0x4b9c80
mov edx, 0x4b9c5c
mov eax, ebx
call fcn.004b5638
mov eax, dword [ebp + 8]
cmp byte [eax - 0x71], 0
jne 0x4b97c9
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 0x4b97af
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
lea eax, [ebp - 0x38]
call fcn.004b7350
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.00625610
test al, al
je 0x4b97a5
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.00656e70
mov byte [ebp - 0x29], 0
jmp 0x4b97af
dec ebx
cmp ebx, 0xffffffff
jne 0x4b9716
cmp byte [ebp - 0x29], 0
je 0x4b97c9
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 0x4b97e3
mov eax, dword [ebp + 8]
push eax
call fcn.004b8e3c
pop ecx
mov eax, dword [ebp + 8]
mov byte [eax - 0x6a], 1
mov eax, dword [ebp + 8]
push eax
mov eax, 0x4b9c94
call fcn.004b894c
pop ecx
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004b894c
pop ecx
mov eax, dword [ebp - 0x34]
cmp byte [eax + 0x3c], 0
je 0x4b9825
mov eax, dword [ebp - 0x30]
cmp byte [eax + 0x3c], 0
je 0x4b9825
mov eax, dword [ebp + 8]
push eax
mov eax, 0x4b9cb0
call fcn.004b894c
pop ecx
jmp 0x4b9b4c
mov eax, dword [ebp + 8]
cmp byte [eax - 0x71], 0
je 0x4b987e
mov eax, dword [ebp - 0x34]
mov edx, dword [eax + 0x38]
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x30]
call fcn.00629410
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.00629410
cmp ebx, eax
jle 0x4b986a
mov eax, dword [ebp + 8]
push eax
mov eax, 0x4b9cdc
call fcn.004b894c
pop ecx
jmp 0x4b9b4c
mov eax, dword [ebp + 8]
push eax
mov eax, 0x4b9cb0
call fcn.004b894c
pop ecx
jmp 0x4b9b4c
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x44]
test eax, eax
jne 0x4b98e6
mov eax, dword [ebp - 0x30]
call fcn.005534f4
test al, al
je 0x4b98b7
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 0x4b98b7
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x50]
mov eax, dword [eax + 0x84]
mov ebx, eax
mov esi, eax
jmp 0x4b98c3
mov eax, dword [ebp - 0x34]
mov ebx, dword [eax + 0x34]
mov eax, dword [ebp - 0x34]
mov esi, dword [eax + 0x38]
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x2c]
mov edx, ebx
call fcn.00629410
mov ebx, eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x30]
mov edx, esi
call fcn.00629410
mov esi, eax
jmp 0x4b9aec
dec eax
jne 0x4b9945
mov eax, dword [ebp + 8]
push eax
mov eax, 0x4b9d08
call fcn.004b894c
pop ecx
lea eax, [ebp - 0x10]
mov edx, 0x4b9d28
call fcn.0040330c
lea eax, [ebp - 0x18]
mov edx, 0x4b9d28
call fcn.0040330c
mov al, byte [esi + 0x60]
dec al
je 0x4b9933
sub al, 2
jne 0x4b9a12
lea eax, [ebp - 0x18]
mov edx, 0x4b9d38
call fcn.0040330c
jmp 0x4b9a12
lea eax, [ebp - 0x10]
mov edx, 0x4b9d38
call fcn.0040330c
jmp 0x4b9a12
mov eax, dword [ebp + 8]
push eax
mov eax, 0x4b9d44
call fcn.004b894c
pop ecx
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x48]
cmp byte [esi + 0x60], 3
sete dl
and edx, 0x7f
add edx, edx
mov ecx, dword [0x672360]
mov edx, dword [ecx + edx*4]
call fcn.00403438
mov eax, dword [ebp - 0x48]
call fcn.004b894c
pop ecx
mov edx, 0x384
mov eax, dword [ebp - 0x34]
call fcn.0055ff38
mov ecx, 0x27b
cdq
idiv ecx
mov ebx, eax
test ebx, ebx
je 0x4b999f
cmp byte [esi + 0x60], 3
je 0x4b99ae
lea eax, [ebp - 0x10]
mov edx, 0x4b9d38
call fcn.0040330c
jmp 0x4b99c8
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
call fcn.004b748c
pop ecx
mov edx, dword [eax + 0xc]
lea ecx, [ebp - 0x10]
mov eax, ebx
call fcn.004b7570
mov edx, 0x386
mov eax, dword [ebp - 0x34]
call fcn.0055ff38
mov ecx, 0x27b
cdq
idiv ecx
mov ebx, eax
test ebx, ebx
je 0x4b99e9
cmp byte [esi + 0x60], 3
jne 0x4b99f8
lea eax, [ebp - 0x18]
mov edx, 0x4b9d38
call fcn.0040330c
jmp 0x4b9a12
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
call fcn.004b748c
pop ecx
mov edx, dword [eax + 0xc]
lea ecx, [ebp - 0x18]
mov eax, ebx
call fcn.004b7570
mov edx, 0x385
mov eax, dword [ebp - 0x34]
call fcn.0055ff38
mov ecx, 0x27b
cdq
idiv ecx
mov ebx, eax
test ebx, ebx
jne 0x4b9a3c
lea eax, [ebp - 0x14]
mov edx, 0x4b9d38
call fcn.0040330c
jmp 0x4b9a56
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
call fcn.004b748c
pop ecx
mov edx, dword [eax + 0xc]
lea ecx, [ebp - 0x14]
mov eax, ebx
call fcn.004b7570
mov edx, 0x387
mov eax, dword [ebp - 0x34]
call fcn.0055ff38
mov ecx, 0x27b
cdq
idiv ecx
mov ebx, eax
test ebx, ebx
jne 0x4b9a80
lea eax, [ebp - 0x1c]
mov edx, 0x4b9d38
call fcn.0040330c
jmp 0x4b9a9a
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
call fcn.004b748c
pop ecx
mov edx, dword [eax + 0xc]
lea ecx, [ebp - 0x1c]
mov eax, ebx
call fcn.004b7570
mov eax, dword [ebp + 8]
push eax
push 0x4b9d5c
push dword [ebp - 0x14]
push 0x4b9d70
push dword [ebp - 0x18]
push 0x4b9d70
push dword [ebp - 0x1c]
push 0x4b9d70
push dword [ebp - 0x10]
lea eax, [ebp - 0x48]
mov edx, 8
call fcn.004035dc
mov eax, dword [ebp - 0x48]
call fcn.004b894c
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 esi, dword [eax + 0x60]
mov eax, dword [ebp - 0x34]
sub esi, dword [eax + 0x58]
push 0x5a0
push ebx
push 0x60
call sub.kernel32.dll_MulDiv
mov ebx, eax
push 0x5a0
push esi
push 0x60
call sub.kernel32.dll_MulDiv
mov esi, eax
cmp ebx, dword [ebp - 0x24]
jne 0x4b9b14
cmp esi, dword [ebp - 0x28]
je 0x4b9b4c
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
mov eax, 0x4b9d74
mov edx, ebx
call fcn.0065da0c
mov eax, dword [ebp - 0x48]
call fcn.004b894c
pop ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
mov eax, 0x4b9d80
mov edx, esi
call fcn.0065da0c
mov eax, dword [ebp - 0x48]
call fcn.004b894c
pop ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
mov eax, 0x4b9d90
mov edx, dword [ebp - 0xc]
call fcn.0065d910
mov eax, dword [ebp - 0x48]
call fcn.004b894c
pop ecx
mov eax, dword [ebp + 8]
cmp byte [eax - 0x6a], 0
je 0x4b9b83
mov eax, dword [ebp + 8]
push eax
call fcn.004b8e3c
pop ecx
mov eax, dword [ebp + 8]
mov byte [eax - 0x6a], 0
call fcn.0053a1b8
test al, al
je 0x4b9b95
mov dl, 1
mov eax, edi
call fcn.0055e4e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b9bd4
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