Function at 0x4670f6
Capabilities:
Copy file

Disassembly:
push 0x7c
mov eax, 0x49a4b0
call fcn.00497232
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 1
call fcn.00442cc3
imul ecx, dword [ebp + 8], 0xb0
mov eax, dword [ebx + 0xf0]
push 0x4a0000
mov byte [ebp - 4], 2
add eax, ecx
mov dword [ebp - 0x24], ecx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0045f78e
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push 0x4beffc
push dword [ebp - 0x20]
mov byte [ebp - 4], 3
push eax
call dword [sym.imp.MSVCR120.dll__wfopen_s]
add esp, 0xc
cmp dword [ebp - 0x10], 0
je 0x4673f8
push 0
push dword [ebp - 0x10]
lea ecx, [ebp - 0x88]
call fcn.00442e91
push dword [ebp - 0x10]
mov bl, al
call dword [sym.imp.MSVCR120.dll_fclose]
pop ecx
test bl, bl
je 0x4673f8
push 0x4a00ac
lea ecx, [ebp - 0x88]
call fcn.004425a2
mov esi, eax
test esi, esi
je 0x4673f8
mov edi, str.FileList
mov ecx, esi
push edi
call fcn.004425a2
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
call fcn.004694c6
test eax, eax
jne 0x4671f8
push 0x50
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp + 8], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x4671e7
push edi
mov ecx, eax
call fcn.004427f0
jmp 0x4671e9
xor eax, eax
push eax
mov ecx, esi
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], eax
call fcn.0044233e
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
sub eax, edi
push 0x18
pop ecx
cdq
idiv ecx
and dword [ebp - 0x28], 0
mov dword [ebp - 0x30], ecx
test eax, eax
je 0x4673bc
mov esi, dword [ebp - 0x1c]
xor ebx, ebx
mov ecx, dword [esi + 0xf0]
lea eax, [ebx + edi]
push eax
lea eax, [ebp - 0x34]
push eax
mov esi, dword [ecx + 0x98]
add ecx, 0x98
call fcn.0046b351
cmp dword [eax], esi
jne 0x467399
push 0x50
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp + 8], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x467264
push str.FileItem
mov ecx, eax
call fcn.004427f0
mov esi, eax
jmp 0x467266
xor esi, esi
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
mov dword [ebp + 8], esi
push dword [ebx + eax]
call fcn.004622ef
push eax
push str.name
lea ecx, [ebp + 8]
call fcn.004694c6
mov ecx, eax
call fcn.00442a48
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x40]
push dword [ebx + eax + 8]
call fcn.004622ef
push eax
push 0x4a0074
lea ecx, [ebp + 8]
call fcn.004694c6
mov ecx, eax
call fcn.00442a48
mov eax, dword [ebp + 0xc]
cmp dword [ebx + eax + 0x10], 0
je 0x4672d7
push 0x4a008c
push str.optional
lea ecx, [ebp + 8]
call fcn.004694c6
mov ecx, eax
call fcn.00442a48
push esi
lea ecx, [ebp - 0x14]
call fcn.004694c6
mov ecx, eax
call fcn.0044233e
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp + 0xc]
add eax, ebx
push eax
mov ecx, dword [esi + 0xf0]
add ecx, 0x98
add ecx, dword [ebp - 0x24]
push eax
call fcn.00466a9d
mov ecx, eax
call fcn.0046687b
mov edi, dword [ebp + 0xc]
cmp dword [ebx + edi + 0xc], 0
je 0x46739f
mov eax, dword [esi + 0xf0]
mov edi, dword [ebp - 0x24]
add eax, edi
push 0x49f800
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0045f78e
mov ecx, dword [ebp + 0xc]
add ecx, ebx
mov byte [ebp - 4], 6
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00466f64
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
call fcn.0045e73f
mov eax, dword [ebp + 0xc]
push 1
push dword [ebp - 0x18]
push dword [ebx + eax + 4]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x18]
mov ecx, dword [esi + 0xf0]
add eax, ebx
push edx
add edi, 0x98
push eax
add ecx, edi
call fcn.00466a9d
lea ecx, [eax + 4]
call fcn.0045f6df
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.0045e73f
jmp 0x46739c
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp + 0xc]
push 0x18
pop eax
add ebx, eax
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp + 0x10]
inc ecx
sub eax, edi
mov dword [ebp - 0x28], ecx
cdq
idiv dword [ebp - 0x30]
cmp ecx, eax
jb 0x46721a
push 0x4a0120
push dword [ebp - 0x20]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.MSVCR120.dll__wfopen_s]
add esp, 0xc
cmp dword [ebp - 0x10], 0
je 0x4673f8
push dword [ebp - 0x10]
lea ecx, [ebp - 0x88]
call fcn.00442fd3
test al, al
je 0x4673f8
push dword [ebp - 0x10]
call dword [sym.imp.MSVCR120.dll_fclose]
xor esi, esi
pop ecx
inc esi
jmp 0x4673fa
xor esi, esi
lea ecx, [ebp - 0x20]
call fcn.0045e73f
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 1
call fcn.00442057
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.0045f6ac
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0046a692
mov eax, esi
call fcn.00497200
ret 0x10