Function at 0x450710
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x622237
mov eax, dword fs:[0]
push eax
mov eax, 0x10a8
call fcn.0061ee50
mov eax, dword [0x6c6060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x770]
call fcn.005a0d00
cmp eax, 2
je 0x450ad6
push 1
push 1
mov ecx, esi
call fcn.0059e420
push 2
xor eax, eax
mov dword [ebp - 0x1058], 0
mov dword [ebp - 0x1054], 0
lea ecx, [ebp - 0x1068]
push 0x6b440c
mov dword [ebp - 0x1054], 7
mov dword [ebp - 0x1058], 0
mov word [ebp - 0x1068], ax
call fcn.004478f0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1068]
cmp dword [ebp - 0x1054], 8
mov edx, dword [esi + 4]
cmovae eax, dword [ebp - 0x1068]
sub esp, 0x10
push eax
push 0x6b42d8
push ecx
push 0x6b4414
lea ecx, [ebp - 0x109c]
call fcn.004520c0
add esp, 0x20
mov ecx, eax
mov byte [ebp - 4], 1
cmp dword [ecx + 0x14], 8
jb 0x4507ef
mov edx, dword [ecx]
jmp 0x4507f1
mov edx, ecx
push dword [ecx + 0x10]
cmp dword [ebp - 0x1054], 8
lea eax, [ebp - 0x1068]
push edx
cmovae eax, dword [ebp - 0x1068]
push dword [ebp - 0x1058]
push eax
call fcn.00451370
add esp, 0x10
mov esi, eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1088]
cmp ecx, 8
jb 0x45083c
inc ecx
push ecx
push dword [ebp - 0x109c]
lea ecx, [ebp - 0x109c]
call fcn.004479f0
xor eax, eax
mov dword [ebp - 0x1088], 7
mov dword [ebp - 0x108c], 0
mov word [ebp - 0x109c], ax
test esi, esi
jne 0x4508a6
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1054]
cmp eax, 8
jb 0x450882
inc eax
lea ecx, [ebp - 0x1068]
push eax
push dword [ebp - 0x1068]
call fcn.004479f0
xor eax, eax
mov dword [ebp - 0x1054], 7
mov word [ebp - 0x1068], ax
xor al, al
mov dword [ebp - 0x1058], 0
jmp 0x450ad8
push 0x820
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.005fd390
push 0x820
lea eax, [ebp - 0x1050]
push 0
push eax
call fcn.005fd390
add esp, 0x18
lea eax, [ebp - 0x830]
push 0x410
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x19
lea eax, [ebp - 0x1050]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x830]
push eax
lea ecx, [ebp - 0x1080]
call fcn.004477b0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1084]
push 1
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x1080]
mov dword [ebp - 0x1084], 0x5c
call fcn.0044e060
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x10b4]
push eax
lea ecx, [ebp - 0x1080]
call fcn.0044de70
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x1050]
push eax
lea eax, [ebp - 0x109c]
push eax
call fcn.004511e0
add esp, 0xc
mov esi, eax
mov byte [ebp - 4], 4
lea eax, [ebp - 0x1080]
cmp eax, esi
je 0x4509b3
mov eax, dword [ebp - 0x106c]
cmp eax, 8
jb 0x45098a
inc eax
lea ecx, [ebp - 0x1080]
push eax
push dword [ebp - 0x1080]
call fcn.004479f0
xor eax, eax
mov dword [ebp - 0x106c], 7
push esi
lea ecx, [ebp - 0x1080]
mov dword [ebp - 0x1070], 0
mov word [ebp - 0x1080], ax
call fcn.0044abb0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1088]
cmp eax, 8
jb 0x4509d5
inc eax
lea ecx, [ebp - 0x109c]
push eax
push dword [ebp - 0x109c]
call fcn.004479f0
xor eax, eax
mov dword [ebp - 0x1088], 7
mov dword [ebp - 0x108c], 0
mov word [ebp - 0x109c], ax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10a0]
cmp eax, 8
jb 0x450a14
inc eax
lea ecx, [ebp - 0x10b4]
push eax
push dword [ebp - 0x10b4]
call fcn.004479f0
xor eax, eax
mov dword [ebp - 0x10a0], 7
cmp dword [ebp - 0x106c], 8
mov word [ebp - 0x10b4], ax
lea eax, [ebp - 0x1080]
cmovae eax, dword [ebp - 0x1080]
push 0
push eax
lea eax, [ebp - 0x830]
mov dword [ebp - 0x10a4], 0
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x106c]
cmp eax, 8
jb 0x450a77
inc eax
lea ecx, [ebp - 0x1080]
push eax
push dword [ebp - 0x1080]
call fcn.004479f0
xor eax, eax
mov dword [ebp - 0x106c], 7
mov dword [ebp - 0x1070], 0
mov word [ebp - 0x1080], ax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1054]
cmp eax, 8
jb 0x450ab9
inc eax
lea ecx, [ebp - 0x1068]
push eax
push dword [ebp - 0x1068]
call fcn.004479f0
xor eax, eax
mov dword [ebp - 0x1054], 7
mov dword [ebp - 0x1058], 0
mov word [ebp - 0x1068], ax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045b08a
mov esp, ebp
pop ebp
ret