Function at 0x401610
Capabilities:
Copy file
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5186a7
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x55f550]
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 eax, dword [0x566bdc]
push 0x5c
push eax
call fcn.004f5f76
add esp, 8
test eax, eax
jne 0x401657
or eax, 0xffffffff
jmp 0x40165d
sub eax, dword [0x566bdc]
push eax
lea ecx, [ebp - 0x120]
push ecx
mov ecx, 0x566bdc
call fcn.00401b40
mov dword [ebp - 4], 0
call fcn.00403a2b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x401690
push 0x80004005
call fcn.004026f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x11c], eax
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x120]
push esi
lea ecx, [ebp - 0x11c]
push str._sUnTemp.exe
push ecx
call fcn.00402000
add esp, 0xc
call fcn.00403a2b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4016db
push 0x80004005
call fcn.004026f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x118], eax
push esi
lea ecx, [ebp - 0x118]
push str._sTemp.exe
push ecx
mov byte [ebp - 4], 2
call fcn.00402000
add esp, 0xc
push 0
push 0x26
lea edx, [ebp - 0x114]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x401793
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x118]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401743
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x11c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401769
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40178c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4019fb
call fcn.00403a2b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4017ad
push 0x80004005
call fcn.004026f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x128], eax
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x128]
push str._sInstallShield_Installation_Information399C37FB_08AF_493B_BFED_20FBD85EDF7FTemp.exe
push edx
mov byte [ebp - 4], 3
call fcn.00402000
mov ebx, dword [ebp - 0x128]
mov esi, dword [ebp - 0x11c]
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
add esp, 0xc
push 0
push ebx
push esi
call edi
test eax, eax
jne 0x401875
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40181a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x118]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401840
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401860
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x120]
add eax, 0xfffffff0
jmp 0x401773
call fcn.00403a2b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40188f
push 0x80004005
call fcn.004026f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x124], eax
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x124]
push str._sInstallShield_Installation_Information399C37FB_08AF_493B_BFED_20FBD85EDF7FTemp2.exe
push edx
mov byte [ebp - 4], 4
call fcn.00402000
mov esi, dword [ebp - 0x124]
mov eax, dword [ebp - 0x118]
add esp, 0xc
push 0
push esi
push eax
call edi
or edx, 0xffffffff
test eax, eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
jne 0x40194e
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4018f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401916
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x118]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40193c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x11c]
add eax, 0xfffffff0
jmp 0x401847
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401961
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401981
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x118]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4019a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x11c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4019cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x120]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4019f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
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.004f5614
mov esp, ebp
pop ebp
ret