Function at 0x407aa0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x456138
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x468100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 3
call fcn.0041f5e0
mov eax, dword [0x4690e4]
mov edx, dword [eax + 0xc]
add esp, 4
mov ecx, 0x4690e4
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.00407630
add esp, 8
mov ebx, str.RunByInstaller
mov edi, 3
test eax, eax
jne 0x407b6b
lea ecx, [ebp + 0xc]
push ecx
push 0x74
push str.R:TempViewMiscSetup3BackupDownloaderBackupDownload.cpp
mov edx, 0x45a7a8
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 0x407b54
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 0x45a9f4
push str._anonymous_namespace::RunByInstaller
mov ecx, 0x78
mov edx, str.R:TempViewMiscSetup3BackupDownloaderBackupDownload.cpp
call fcn.0040e5f0
add esp, 8
add esi, 0xfffffff0
mov eax, esi
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x14], esi
call fcn.00408970
add eax, 0x10
mov dword [edi], eax
call fcn.0042e930
mov edx, 0x45a7a8
mov ebx, str.RunByInstaller
mov edi, 3
test eax, eax
je 0x407cdd
lea ecx, [ebp - 0x18]
push ecx
push 0x7e
push str.R:TempViewMiscSetup3BackupDownloaderBackupDownload.cpp
mov ecx, str._anonymous_namespace::RunByInstaller
mov dword [ebp - 0x18], 0x45aa10
call fcn.00407520
mov edx, dword [0x49f174]
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.0042ed30
test esi, esi
je 0x407c46
lea edx, [ebp - 0x18]
push edx
push 0x8a
push str.R:TempViewMiscSetup3BackupDownloaderBackupDownload.cpp
mov edx, 0x45a7a8
mov ecx, str._anonymous_namespace::RunByInstaller
mov dword [ebp - 0x18], 0x45aa54
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.004086c0
call fcn.0041f0d0
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.004086c0
call fcn.0041f0d0
add esp, 8
cmp edi, ebx
je 0x407ca9
cmp eax, ebx
je 0x407ca9
cmp dword [ebp + 0xc], ebx
jne 0x407c9f
cmp dword [ebp - 0x14], ebx
je 0x407ca9
push 3
call fcn.0041f5e0
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 0x407cc9
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 0x407c49