Function at 0x46a060
Capabilities:
Check if file exists
Copy file
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575d88
mov eax, dword fs:[0]
push eax
mov eax, 0x1164
call fcn.0052c270
mov eax, dword [0x5fc150]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x1168], 0
mov eax, dword [ecx]
lea ecx, [ebp - 0x1158]
mov dword [ebp - 0x1164], ebx
mov dword [ebp - 0x1170], ebx
push dword [eax + 4]
push dword [eax + 0xc]
call fcn.0043b040
mov dword [ebp - 4], 1
lea eax, [ebp - 0x1158]
push 0
push esi
push edi
push eax
call fcn.0043c6a0
add esp, 0x10
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
lea ecx, [ebp - 0x1158]
mov dword [ebp - 0x1168], 1
call fcn.0043b7b0
mov esi, eax
mov dword [ebp - 0x115c], esi
test esi, esi
je 0x46a543
call fcn.0040baa0
add eax, 0x233b0
cmp dword [eax + 0x14], 8
jb 0x46a130
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x58]
call fcn.004029a0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x44], 8
mov eax, dword [ebp - 0x58]
jae 0x46a149
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46a169
cmp dword [ebp - 0x44], 8
mov eax, dword [ebp - 0x58]
jae 0x46a160
lea eax, [ebp - 0x58]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esi + 4]
mov eax, 0x2aaaaaab
sub ecx, dword [esi]
mov edi, 0
imul ecx
mov dword [ebp - 0x1160], edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x116c], eax
je 0x46a516
xor ebx, ebx
jmp 0x46a1a0
mov ecx, dword [ebp - 0x115c]
mov eax, 0x2aaaaaab
mov esi, dword [esi]
mov ecx, dword [ecx + 4]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, edi
jbe 0x46a506
cmp dword [ebx + esi + 0x14], 8
lea eax, [ebx + esi]
jb 0x46a1d2
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46a4e9
xor eax, eax
mov dword [ebp - 0x18], 0
push 0xffffffffffffffff
push eax
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x58]
mov dword [ebp - 0x14], 0
push eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
call fcn.00406ac0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x115c]
mov ecx, dword [eax + 4]
mov esi, dword [eax]
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, edi
jbe 0x46a506
cmp dword [ebx + esi + 0x14], 8
lea eax, [ebx + esi]
jb 0x46a248
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edx, eax
mov dword [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp word [edx], ax
jne 0x46a27c
xor ecx, ecx
jmp 0x46a290
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46a281
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.00406c80
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
push 1
push 0xffffffffffffffff
push 0x58823c
call fcn.0042f8a0
cmp eax, 0xffffffff
jne 0x46a303
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x46a2cd
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00407270
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x46a4d9
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407270
jmp 0x46a4d9
push eax
push 0
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040c490
mov byte [ebp - 4], 5
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00423c40
mov eax, dword [ebp - 0x8c]
add esp, 0xc
cmp eax, 8
jb 0x46a351
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.00407270
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x46a35d
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46a37d
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x46a374
lea eax, [ebp - 0x28]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00423c40
mov eax, dword [ebp - 0x8c]
add esp, 0xc
cmp eax, 8
jb 0x46a3b2
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.00407270
cmp dword [ebp - 0x14], 8
mov esi, dword [ebp - 0x28]
jae 0x46a3be
lea esi, [ebp - 0x28]
mov eax, dword [ebp - 0x115c]
mov ecx, dword [eax + 4]
mov edi, dword [eax]
sub ecx, edi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ebp - 0x1160]
jbe 0x46a506
cmp dword [ebx + edi + 0x14], 8
lea eax, [ebx + edi]
jb 0x46a3f4
mov eax, dword [eax]
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x46a457
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x46a40e
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x70]
call fcn.004029a0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x70]
mov ecx, dword [ebp - 0x1164]
push eax
call fcn.00408a40
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x46a443
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00407270
xor eax, eax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x74]
cmp eax, 8
jb 0x46a476
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.00407270
xor eax, eax
mov dword [ebp - 0x74], 7
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x46a4a6
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00407270
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x46a4d3
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407270
mov edi, dword [ebp - 0x1160]
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x18], eax
inc edi
add ebx, 0x18
mov dword [ebp - 0x1160], edi
cmp edi, dword [ebp - 0x116c]
jae 0x46a510
mov esi, dword [ebp - 0x115c]
jmp 0x46a1a0
push str.invalid_vector_T__subscript
call fcn.00515a37
mov ebx, dword [ebp - 0x1164]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x46a52f
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00407270
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1158]
call fcn.0043b1b0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052c233
mov esp, ebp
pop ebp
ret 0xc