Function at 0x4694e9
Capabilities:
Copy file

Disassembly:
push 0x78
mov eax, 0x498664
call fcn.00496159
mov edi, ecx
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 1
call fcn.004435b5
mov ebx, dword [ebp + 8]
mov eax, dword [edi + 0xec]
imul ebx, ebx, 0xd0
add eax, ebx
push 0x49de18
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 2
call fcn.00460179
push 0x4bc86c
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x10], esi
call dword [sym.imp.MSVCR100.dll__wfopen_s]
add esp, 0xc
cmp dword [ebp - 0x10], esi
jne 0x469592
lea ecx, [ebp - 0x14]
call fcn.0045ddba
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 1
call fcn.00442971
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0
call fcn.0045fe4f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00467114
xor eax, eax
call fcn.00496231
ret 0x14
push esi
push dword [ebp - 0x10]
lea ecx, [ebp - 0x84]
call fcn.0044379b
push dword [ebp - 0x10]
mov byte [ebp + 0xb], al
call dword [sym.imp.MSVCR100.dll_fclose]
cmp byte [ebp + 0xb], 0
pop ecx
je 0x469559
push 0x49de0c
lea ecx, [ebp - 0x84]
call fcn.00442ea8
mov ecx, eax
mov dword [ebp + 8], ecx
cmp ecx, esi
je 0x469559
push str.FileList
call fcn.00442ea8
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
call fcn.004627c5
test eax, eax
jne 0x469619
push 0x50
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 4
cmp eax, esi
je 0x469607
push str.FileList
mov ecx, eax
call fcn.004430fc
jmp 0x469609
xor eax, eax
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x1c], eax
call fcn.00442c56
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 0xc]
push 0x18
cdq
pop ecx
idiv ecx
mov dword [ebp - 0x24], esi
test eax, eax
je 0x4697d0
mov eax, dword [edi + 0xec]
mov ecx, dword [eax + 0xa4]
mov dword [ebp + 8], ecx
mov ecx, dword [ebp + 0xc]
add ecx, esi
push ecx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [eax + 0xa0]
call fcn.0046466c
mov ecx, dword [ebp + 8]
cmp dword [eax], ecx
jne 0x4697b3
push 0x50
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp + 8], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x469683
push str.FileItem
mov ecx, eax
call fcn.004430fc
mov dword [ebp - 0x18], eax
jmp 0x469687
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
push dword [eax + esi]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call fcn.004616dc
push eax
push 0x49de40
lea ecx, [ebp + 8]
call fcn.004627c5
mov ecx, eax
call fcn.0044334e
mov eax, dword [ebp + 0xc]
push dword [eax + esi + 8]
lea ecx, [ebp - 0x3c]
call fcn.004616dc
push eax
push 0x49de80
lea ecx, [ebp + 8]
call fcn.004627c5
mov ecx, eax
call fcn.0044334e
mov eax, dword [ebp + 0xc]
cmp dword [esi + eax + 0x10], 0
je 0x4696fb
push 0x49de70
push str.optional
lea ecx, [ebp + 8]
call fcn.004627c5
mov ecx, eax
call fcn.0044334e
push dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
call fcn.004627c5
mov ecx, eax
call fcn.00442c56
mov eax, dword [ebp + 0xc]
lea ecx, [esi + eax]
mov eax, dword [edi + 0xec]
push ecx
push ecx
lea ecx, [eax + ebx + 0xa0]
call fcn.004680f7
mov ecx, eax
call fcn.00464501
mov eax, dword [ebp + 0xc]
cmp dword [esi + eax + 0xc], 0
je 0x4697b3
mov eax, dword [edi + 0xec]
add eax, ebx
push 0x49da74
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00460179
mov ecx, dword [ebp + 0xc]
add ecx, esi
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 6
call fcn.004647c9
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
call fcn.0045ddba
mov eax, dword [ebp + 0xc]
mov eax, dword [esi + eax + 4]
push 1
push dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, dword [ebp + 0xc]
lea ecx, [esi + eax]
mov eax, dword [edi + 0xec]
lea edx, [ebp - 0x20]
push edx
push ecx
lea ecx, [eax + ebx + 0xa0]
call fcn.004680f7
lea ecx, [eax + 4]
call fcn.0045f9b8
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.0045ddba
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 0xc]
push 0x18
cdq
pop ecx
idiv ecx
inc dword [ebp - 0x24]
add esi, 0x18
cmp dword [ebp - 0x24], eax
jb 0x469630
xor esi, esi
push 0x49dde8
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.MSVCR100.dll__wfopen_s]
add esp, 0xc
cmp dword [ebp - 0x10], esi
je 0x469559
push dword [ebp - 0x10]
lea ecx, [ebp - 0x84]
call fcn.004438d4
test al, al
jne 0x469836
lea ecx, [ebp - 0x14]
call fcn.0045ddba
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 1
call fcn.00442971
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0
call fcn.0045fe4f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00467114
mov eax, esi
jmp 0x46958a
push dword [ebp - 0x10]
call dword [sym.imp.MSVCR100.dll_fclose]
xor esi, esi
pop ecx
inc esi
jmp 0x469800