Function at 0x407ac0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4532a8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x465100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 3
call fcn.0041cc70
mov eax, dword [0x4660e4]
mov edx, dword [eax + 0xc]
add esp, 4
mov ecx, 0x4660e4
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 1
mov dword [ebp - 4], 0
call fcn.00407650
add esp, 8
mov ebx, str.RunByInstaller
mov edi, 3
test eax, eax
jne 0x407b8b
lea ecx, [ebp + 0xc]
push ecx
push 0x74
push str.R:TempViewMiscSetup3BackupDownloaderBackupDownload.cpp
mov edx, 0x457798
mov ecx, str._anonymous_namespace::RunByInstaller
mov dword [ebp + 0xc], str.Get_temp_dir_error
call fcn.00407520
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407b74
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 esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x10]
push esi
push 0x4579e4
push str._anonymous_namespace::RunByInstaller
mov ecx, 0x78
mov edx, str.R:TempViewMiscSetup3BackupDownloaderBackupDownload.cpp
call fcn.00408be0
add esp, 8
add esi, 0xfffffff0
mov eax, esi
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x14], esi
call fcn.00408990
add eax, 0x10
mov dword [edi], eax
call fcn.0042c010
mov edx, 0x457798
mov ebx, str.RunByInstaller
mov edi, 3
test eax, eax
je 0x407cfd
lea ecx, [ebp - 0x18]
push ecx
push 0x7e
push str.R:TempViewMiscSetup3BackupDownloaderBackupDownload.cpp
mov ecx, str._anonymous_namespace::RunByInstaller
mov dword [ebp - 0x18], 0x457a00
call fcn.00407520
mov edx, dword [0x49c0f0]
mov esi, dword [ebp + 0xc]
add esp, 0xc
push edx
push 0
push 0x1400
push esi
call dword [sym.imp.USER32.dll_PostThreadMessageW]
push 0
push 0
push esi
push 0x4075e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
mov eax, dword [ebp + 8]
push eax
call fcn.0042c410
test esi, esi
je 0x407c66
lea edx, [ebp - 0x18]
push edx
push 0x8a
push str.R:TempViewMiscSetup3BackupDownloaderBackupDownload.cpp
mov edx, 0x457798
mov ecx, str._anonymous_namespace::RunByInstaller
mov dword [ebp - 0x18], 0x457a44
call fcn.00407520
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x14]
lea eax, [ebp + 0xc]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push ecx
xor ebx, ebx
mov ecx, str.Default
mov dword [ebp + 0xc], ebx
call fcn.004086e0
call fcn.0041c760
add esp, 8
lea edx, [ebp - 0x14]
push edx
push ecx
mov edi, eax
mov eax, esp
mov dword [ebp - 0x1c], esp
push eax
mov ecx, str.Option
mov dword [ebp - 0x14], ebx
call fcn.004086e0
call fcn.0041c760
add esp, 8
cmp edi, ebx
je 0x407cc9
cmp eax, ebx
je 0x407cc9
cmp dword [ebp + 0xc], ebx
jne 0x407cbf
cmp dword [ebp - 0x14], ebx
je 0x407cc9
push 3
call fcn.0041cc70
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407ce9
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp + 0xc]
push ecx
push 0x85
push str.R:TempViewMiscSetup3BackupDownloaderBackupDownload.cpp
mov ecx, str._anonymous_namespace::RunByInstaller
mov dword [ebp + 0xc], str.g_oMgr
call fcn.00407520
add esp, 0xc
jmp 0x407c69