Function at 0x4082a0
Capabilities:
Check if file exists
Copy file
Create process on windows
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2a60
call fcn.00444260
mov eax, dword [0x4a6c44]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
lea ebx, [edi + 0x3028]
push ebx
push str.m_sSetupDirectory:__s
push 0x35c
push str.c:_rhub2code_setuphandler_setuphandler.cpp
push 0
push str.SetupHandler::CallToInstall
push dword [0x4a9068]
call fcn.0040eee0
add esp, 0x1c
lea eax, [ebp - 0x2a1c]
mov ecx, edi
push eax
call fcn.00409920
mov edx, dword [ebp - 0x2a08]
cmp edx, 0x10
jb 0x40832f
mov ecx, dword [ebp - 0x2a1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408325
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408a8a
push edx
push ecx
call fcn.00443caf
add esp, 8
cmp byte [edi + 0x3828], 0
je 0x4084e5
lea eax, [ebp - 0x1604]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x200
lea eax, [ebp - 0x604]
push eax
lea eax, [ebp - 0x1604]
push eax
call fcn.00416610
lea ecx, [ebp - 0x604]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408372
sub ecx, edx
je 0x40839b
cmp byte [ebp + ecx - 0x605], 0x5c
jne 0x40839b
dec ecx
cmp ecx, 0x200
jae 0x408a8f
mov byte [ebp + ecx - 0x604], al
push str.rsp1024hcmd.txt
lea eax, [ebp - 0x604]
push eax
lea eax, [ebp - 0x404]
push 0x47cb80
push eax
call fcn.00407cd0
push 0x200
lea eax, [ebp - 0x1a04]
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.00416680
lea eax, [ebp - 0x1a04]
push 0x47dda0
push eax
call fcn.0044fa5e
mov esi, eax
add esp, 0x24
test esi, esi
je 0x408407
lea ecx, [edi + 0x61c]
push ecx
push 0x47cce0
push esi
call fcn.0040e2d0
push esi
call fcn.0044f88c
add esp, 0x10
jmp 0x408432
lea eax, [ebp - 0x404]
push eax
push str.Failed_to_open_file_to_write:__s
push 0x379
push str.c:_rhub2code_setuphandler_setuphandler.cpp
push 0
push str.SetupHandler::CallToInstall
push dword [0x4a9068]
call fcn.0040eee0
add esp, 0x1c
lea eax, [edi + 0x21c]
push eax
push str.__client_name
push str.__called_by_downloader
lea esi, [edi + 0x2c1c]
push esi
lea eax, [ebp - 0xc04]
push str.__s___s__s__s
push eax
call fcn.00407cd0
push 0x47cb7c
lea eax, [ebp - 0x1c04]
push eax
lea eax, [ebp - 0xa04]
push eax
push esi
call fcn.004146b0
lea eax, [ebp - 0x2a24]
push eax
lea eax, [ebp - 0xa04]
push eax
lea eax, [ebp - 0xc04]
push eax
call fcn.00414a40
add esp, 0x34
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.m_bIsV4Client_is_true._Exit_now
push 0x387
push str.c:_rhub2code_setuphandler_setuphandler.cpp
push 0
push str.SetupHandler::CallToInstall
push dword [0x4a9068]
call fcn.0040eee0
mov ecx, dword [edi + 0x2e24]
add esp, 0x18
mov eax, dword [ecx]
push 0
push 0
push 0x179c
call dword [eax + 4]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444138
mov esp, ebp
pop ebp
ret
push str.m_bIsV4Client_is_false.
push 0x38e
push str.c:_rhub2code_setuphandler_setuphandler.cpp
push 0
push str.SetupHandler::CallToInstall
push dword [0x4a9068]
call fcn.0040eee0
push str.rsp1024hcmd.txt
push ebx
lea eax, [ebp - 0xe04]
push 0x47cb80
push eax
call fcn.00407cd0
push 0x200
lea eax, [ebp - 0x2204]
push eax
lea eax, [ebp - 0xe04]
push eax
call fcn.00416680
lea eax, [ebp - 0x2204]
push 0x47dda0
push eax
call fcn.0044fa5e
mov esi, eax
add esp, 0x3c
test esi, esi
je 0x40856c
lea ecx, [edi + 0x61c]
push ecx
push 0x47cce0
push esi
call fcn.0040e2d0
push esi
call fcn.0044f88c
add esp, 0x10
jmp 0x408597
lea eax, [ebp - 0xe04]
push eax
push str.Failed_to_open_file_to_write:__s
push 0x39f
push str.c:_rhub2code_setuphandler_setuphandler.cpp
push 0
push str.SetupHandler::CallToInstall
push dword [0x4a9068]
call fcn.0040eee0
add esp, 0x1c
push 0x200
lea eax, [ebp - 0x2604]
push eax
push ebx
call fcn.00416680
add esp, 0xc
cmp byte [edi + 0x4829], 0
je 0x4086ed
push str.m_bCalledByClientToSyncVersion_is_true
push 0x3a7
push str.c:_rhub2code_setuphandler_setuphandler.cpp
push 0
push str.SetupHandler::CallToInstall
push dword [0x4a9068]
call fcn.0040eee0
push str.TMServiceCache.txt
push str.TurboMeeting
lea eax, [edi + 0x261c]
push eax
lea eax, [ebp - 0xc04]
push str._s_s_s
push eax
call fcn.00407cd0
push 0x200
lea eax, [ebp - 0x1604]
push eax
lea eax, [ebp - 0xc04]
push eax
call fcn.00416680
push str.TMServiceCache.txt
push ebx
lea eax, [ebp - 0xa04]
push 0x47cb80
push eax
call fcn.00407cd0
add esp, 0x48
lea eax, [ebp - 0x1a04]
push 0x200
push eax
lea eax, [ebp - 0xa04]
push eax
call fcn.00416680
add esp, 0xc
lea eax, [ebp - 0x1a04]
push 0
push eax
lea eax, [ebp - 0x1604]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push ebx
lea eax, [ebp - 0x404]
push str._sWorkingDirectory.txt
push eax
call fcn.00407cd0
push 0x200
lea eax, [ebp - 0x1e04]
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.00416680
lea eax, [ebp - 0x1e04]
push 0x47dda0
push eax
call fcn.0044fa5e
mov esi, eax
add esp, 0x20
test esi, esi
je 0x4086c0
lea eax, [edi + 0x261c]
push eax
push str.___WorkingDirectory____s____WorkingDirectory____n
push esi
call fcn.0040e2d0
push esi
call fcn.0044f88c
add esp, 0x10
jmp 0x408711
lea eax, [ebp - 0x404]
push eax
push str.Failed_to_open_file_to_write:__s
push 0x3c5
push str.c:_rhub2code_setuphandler_setuphandler.cpp
push 0
push str.SetupHandler::CallToInstall
push dword [0x4a9068]
call fcn.0040eee0
add esp, 0x1c
jmp 0x408711
push str.m_bCalledByClientToSyncVersion_is_false
push 0x3c9
push str.c:_rhub2code_setuphandler_setuphandler.cpp
push 0
push str.SetupHandler::CallToInstall
push dword [0x4a9068]
call fcn.0040eee0
add esp, 0x18
lea esi, [edi + 0x21c]
mov ecx, str.MXmeeting
mov eax, esi
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x408740
test dl, dl
je 0x40873c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x408740
add eax, 2
add ecx, 2
test dl, dl
jne 0x408720
xor eax, eax
jmp 0x408745
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4088d6
push str.It_is_MXmeeting
push 0x3d2
push str.c:_rhub2code_setuphandler_setuphandler.cpp
push eax
push str.SetupHandler::CallToInstall
push dword [0x4a9068]
call fcn.0040eee0
push str.TMLauncher.exe
push ebx
lea eax, [ebp - 0x204]
push 0x47cb80
push eax
call fcn.00407cd0
push 0x200
lea eax, [ebp - 0x1204]
push eax
lea eax, [ebp - 0x204]
push eax
call fcn.00416680
xorps xmm0, xmm0
mov dword [ebp - 0x2a48], 0
add esp, 0x34
movlpd qword [ebp - 0x2a40], xmm0
movlpd qword [ebp - 0x2a38], xmm0
movlpd qword [ebp - 0x2a30], xmm0
mov dword [ebp - 0x2a28], 0
mov dword [ebp - 0x2a60], 0x3c
mov dword [ebp - 0x2a58], 0
call fcn.00413d20
test al, al
mov dword [ebp - 0x2a44], 0
mov edx, str.open
mov dword [ebp - 0x2a5c], 0x40
mov ecx, str.runas
mov dword [ebp - 0x2a4c], 0x47a198
cmove ecx, edx
lea eax, [ebp - 0x1204]
mov dword [ebp - 0x2a54], ecx
mov dword [ebp - 0x2a50], eax
call fcn.00413bd0
test al, al
jne 0x40887c
lea eax, [ebp - 0x2a60]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40887c
lea eax, [ebp - 0x204]
push eax
push str.ShellExecuteEx___sInstaller___s
push 0x3e9
push str.c:_rhub2code_setuphandler_setuphandler.cpp
push 0
push str.SetupHandler::CallToInstall
push dword [0x4a9068]
call fcn.0040eee0
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444138
mov esp, ebp
pop ebp
ret
call fcn.00413bd0
test al, al
je 0x4088ab
push str.It_is_XP
push 0x3ef
push str.c:_rhub2code_setuphandler_setuphandler.cpp
push 0
push str.SetupHandler::CallToInstall
push dword [0x4a9068]
call fcn.0040eee0
add esp, 0x18
jmp 0x4088d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ShellExecuteEx___InstallService.exe_failed__GetLastError_____d
push 0x3f1
push str.c:_rhub2code_setuphandler_setuphandler.cpp
push 0
push str.SetupHandler::CallToInstall
push dword [0x4a9068]
call fcn.0040eee0
add esp, 0x1c
mov eax, str.MXmeeting
nop dword [eax + eax]
mov cl, byte [esi]
cmp cl, byte [eax]
jne 0x408900
test cl, cl
je 0x4088fc
mov cl, byte [esi + 1]
cmp cl, byte [eax + 1]
jne 0x408900
add esi, 2
add eax, 2
test cl, cl
jne 0x4088e0
xor eax, eax
jmp 0x408905
sbb eax, eax
or eax, 1
test eax, eax
lea eax, [ebp - 0x204]
jne 0x408928
push str.TMInstaller
push ebx
push str._s_s.exe
push eax
call fcn.00407cd0
add esp, 0x10
jmp 0x4089a8
push str.TMLauncher.exe
push ebx
push 0x47cb80
push eax
call fcn.00407cd0
push 0x200
lea eax, [ebp - 0x1204]
push eax
lea eax, [ebp - 0x204]
push eax
call fcn.00416680
add esp, 0x1c
lea eax, [ebp - 0x1204]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4089a8
lea eax, [ebp - 0x204]
push eax
push str.Failed_to_find_sInstaller___s
push 0x400
push str.c:_rhub2code_setuphandler_setuphandler.cpp
push 0
push str.SetupHandler::CallToInstall
push dword [0x4a9068]
call fcn.0040eee0
push str.TMInstaller
push ebx
lea eax, [ebp - 0x204]
push str._s_s.exe
push eax
call fcn.00407cd0
add esp, 0x2c
lea eax, [ebp - 0x204]
push eax
push str.sInstaller___s
push 0x405
push str.c:_rhub2code_setuphandler_setuphandler.cpp
push 0
push str.SetupHandler::CallToInstall
push dword [0x4a9068]
call fcn.0040eee0
push 0x200
lea eax, [ebp - 0x1204]
push eax
lea eax, [ebp - 0x204]
push eax
call fcn.00416680
push 0x200
lea eax, [ebp - 0x2a04]
push eax
lea esi, [edi + 0x3829]
push esi
call fcn.00416680
push 0x200
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.00447160
add esp, 0x40
mov dword [ebp - 0x2a20], 0
lea eax, [ebp - 0x204]
push esi
push eax
lea eax, [ebp - 0x804]
push str.__s___s
push eax
call fcn.00407cd0
lea eax, [ebp - 0x2a20]
push eax
lea eax, [ebp - 0x804]
push ebx
push eax
call fcn.00414a40
push ebx
lea eax, [ebp - 0x804]
push eax
push str.StartProcess_sStartProcess___s__m_sSetupDirectory___s_
push 0x416
push str.c:_rhub2code_setuphandler_setuphandler.cpp
push 0
push str.SetupHandler::CallToInstall
push dword [0x4a9068]
call fcn.0040eee0
mov ecx, dword [ebp - 4]
add esp, 0x3c
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00444138
mov esp, ebp
pop ebp
ret
call fcn.0044a823
call fcn.0044405e
int3