Function at 0x84f494
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x84f70d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x84deb4]
call fcn.0084ec00
mov dword [ebp - 0x10], eax
lea edx, [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0084f10c
mov eax, dword [ebp - 4]
call fcn.004095e4
push eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.0084f290
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x84f6dc
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 0x14]
call fcn.00857184
mov eax, dword [eax + 0x44]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x84f6d0
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 0x14]
call fcn.00857184
mov eax, dword [eax + 0x44]
mov edx, dword [ebp - 0x18]
call fcn.0085c758
cmp byte [eax + 0x44], 1
jne 0x84f6c4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 0x14]
call fcn.00857184
mov eax, dword [eax + 0x44]
mov edx, dword [ebp - 0x18]
call fcn.0085c758
mov esi, eax
mov eax, dword [esi + 0x8c]
mov edi, dword [eax + 8]
dec edi
test edi, edi
jl 0x84f6c4
inc edi
xor ebx, ebx
mov edx, ebx
mov eax, dword [esi + 0x8c]
call fcn.00853074
call fcn.00852fe4
test al, al
jne 0x84f6bc
mov edx, ebx
mov eax, dword [esi + 0x8c]
call fcn.00853074
lea edx, [ebp - 0x24]
call fcn.00852fec
mov eax, dword [ebp - 0x24]
call fcn.004163a4
test al, al
je 0x84f637
lea edx, [ebp - 8]
mov eax, dword [0x8e0a00]
mov eax, dword [eax]
call fcn.0063b8e8
push 0
mov eax, dword [ebp - 8]
call fcn.00407c38
push eax
mov edx, ebx
mov eax, dword [esi + 0x8c]
call fcn.00853074
lea edx, [ebp - 0x28]
call fcn.00852fec
mov eax, dword [ebp - 0x28]
call fcn.00407c38
push eax
call sub.kernel32.dll_CopyFileW
test eax, eax
je 0x84f637
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 0x14]
call fcn.00857184
mov eax, dword [eax + 0x44]
mov edx, dword [ebp - 0x18]
call fcn.0085c758
mov eax, dword [eax + 0x8c]
mov edx, ebx
call fcn.00853074
add eax, 0x14
mov edx, dword [ebp - 8]
call fcn.00407bac
mov edx, ebx
mov eax, dword [esi + 0x8c]
call fcn.00853074
lea edx, [ebp - 0x2c]
call fcn.00852fec
lea eax, [ebp - 0x2c]
mov edx, 0x84f72c
call fcn.00407fd0
mov eax, dword [ebp - 0x2c]
call fcn.004163a4
test al, al
je 0x84f6bc
lea edx, [ebp - 8]
mov eax, dword [0x8e0a00]
mov eax, dword [eax]
call fcn.0063b8e8
lea eax, [ebp - 8]
mov edx, 0x84f72c
call fcn.00407fd0
push 0
mov eax, dword [ebp - 8]
call fcn.00407c38
push eax
mov edx, ebx
mov eax, dword [esi + 0x8c]
call fcn.00853074
lea edx, [ebp - 0x30]
call fcn.00852fec
lea eax, [ebp - 0x30]
mov edx, 0x84f72c
call fcn.00407fd0
mov eax, dword [ebp - 0x30]
call fcn.00407c38
push eax
call sub.kernel32.dll_CopyFileW
inc ebx
dec edi
jne 0x84f58a
inc dword [ebp - 0x18]
dec dword [ebp - 0x20]
jne 0x84f537
inc dword [ebp - 0x14]
dec dword [ebp - 0x1c]
jne 0x84f50f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x84f714
lea eax, [ebp - 0x30]
mov edx, 4
call fcn.00407ba4
lea eax, [ebp - 8]
call fcn.00407b9c
lea eax, [ebp - 4]
mov edx, dword [0x40badc]
call fcn.004098cc
ret