Function at 0x4b97e0
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5abcd0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [esi + 0x2fc]
lea ebx, [esi + 0x2fc]
cmp edi, ebx
je 0x4b9a1f
cmp dword [esi + 0x314], edx
ja 0x4b9a1f
xor ecx, ecx
cmp dword [esi + 0x2e8], ecx
je 0x4b9863
mov eax, dword [esi + 0x2e8]
cmp eax, ecx
je 0x4b9848
mov eax, dword [eax + 0x7c]
jmp 0x4b984a
xor eax, eax
sub edx, eax
cmp edx, 0x1f40
jb 0x4b9a1f
push ecx
push 0x5b4
jmp 0x4b9a18
mov eax, dword [edi + 0x10]
cmp dword [eax - 0xc], ecx
mov dword [esp + 0x18], ecx
je 0x4b988d
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x1c]
mov ebx, dword [edi + 0xc]
push eax
mov eax, dword [esi + 0x20]
push eax
push ecx
push edx
push esi
lea edi, [esi + 0x40]
call fcn.004b8070
jmp 0x4b9a11
mov eax, dword [edi + 0x24]
cmp eax, ecx
jbe 0x4b98b8
mov ecx, dword [edi + 0x1c]
mov edx, dword [esi + 0x1c]
mov edi, dword [edi + 0xc]
push eax
mov eax, dword [esi + 0x20]
push ecx
mov ecx, dword [esi + 0x24]
push eax
push ecx
push edx
push esi
add esi, 0x40
mov eax, edi
call fcn.004b80e0
jmp 0x4b9a0e
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x1c]
call fcn.00404530
lea esi, [esp + 0x2c]
mov dword [esp + 0x40], 0
call fcn.004709f0
mov esi, dword [ebp + 8]
mov ecx, dword [edi + 0xc]
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x20]
push edx
lea eax, [edi + 0x14]
push eax
lea eax, [esi + 0x2f0]
push eax
call fcn.004b7170
push 0x5c8874
lea ecx, [esp + 0x18]
push ecx
push esi
mov dword [esp + 0x2c], eax
call fcn.004ae540
cmp dword [esp + 0x20], 0
mov byte [esp + 0x40], 1
je 0x4b99b2
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x34]
call fcn.004b65f0
test al, al
je 0x4b99b2
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push ecx
push edx
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x34]
call fcn.004b65b0
cmp dword [eax + 4], 0
jg 0x4b99b2
jl 0x4b9959
cmp dword [eax], 0
ja 0x4b99b2
mov ecx, dword [esp + 0x14]
mov eax, dword [edi + 0x14]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4b99b2
mov eax, dword [ebx]
mov eax, dword [eax]
mov dword [ebx], eax
mov dword [eax + 4], ebx
mov esi, dword [esp + 0x14]
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
mov edx, dword [ecx]
push 0xc8
push 0
push esi
push eax
mov eax, dword [edx + 0x30]
call eax
mov ecx, dword [edi + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov esi, edi
call fcn.004b93c0
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 8]
push ecx
push edx
call fcn.004ae440
jmp 0x4b99f0
mov ecx, dword [esp + 0x1c]
xor eax, eax
cmp dword [ecx - 0xc], eax
jle 0x4b99bf
mov eax, ecx
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
mov ebx, dword [edi + 0xc]
push eax
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [esi + 0x1c]
push ecx
push edx
push eax
push esi
lea edi, [esi + 0x40]
call fcn.004b7ff0
test eax, eax
mov dword [esp + 0x18], eax
je 0x4b99f0
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x14]
call fcn.00404510
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], 0xffffffff
call fcn.00404510
mov eax, dword [esp + 0x18]
mov esi, dword [ebp + 8]
test eax, eax
je 0x4b9a1f
push 0
push eax
mov edi, esi
call fcn.004b9780
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4