Function at 0x40b97b
Capabilities:
Create process on windows
Set current directory

Disassembly:
mov eax, 0x45d3f7
call fcn.004485c4
sub esp, 0x290
push ebx
push esi
push edi
mov edi, str.App::CheckForNewerInstallerAndRunIt_1633
mov dword [ebp - 0x10], esp
push edi
mov esi, ecx
call fcn.004468a0
mov dword [ebp - 0x1c], eax
push edi
xor ebx, ebx
push 0x468020
push ebx
mov dword [ebp - 4], ebx
call fcn.00437bbc
add esp, 0x10
push 0x465cf2
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 1
call fcn.00439a70
lea eax, [ebp - 0xf0]
push eax
push str.latest_version_url
lea eax, [ebp - 0xb8]
push eax
lea ecx, [esi + 0x220]
mov byte [ebp - 4], 2
call fcn.0043ca60
lea ecx, [ebp - 0x88]
push ecx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0043b640
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 6
call fcn.0043bff0
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 5
call fcn.0043bff0
push dword [esi + 0x20c]
movzx eax, byte [esi + 0x1cc]
push dword [esi + 0x208]
xor edi, edi
push 0x12
inc edi
push edi
push eax
push str.splash_d__curver_d._d__lstver_d._d
push ebx
call fcn.00437bbc
add esp, 0x1c
cmp dword [ebp - 0x74], ebx
je 0x40ba61
mov eax, dword [esi + 0x208]
cmp eax, edi
jl 0x40ba61
mov byte [ebp - 0x11], 1
jne 0x40ba68
cmp dword [esi + 0x20c], 0x12
jg 0x40ba6b
push ebx
push edi
jmp 0x40be3b
mov byte [ebp - 0x11], bl
push 0x467250
lea ecx, [ebp - 0x6c]
call fcn.00418739
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0xa8]
push eax
mov byte [ebp - 4], 7
call fcn.0041cd1b
pop ecx
pop ecx
push str._LatestVersion.exe
push eax
lea eax, [ebp - 0xe0]
push eax
mov byte [ebp - 4], 8
call fcn.004152b2
add esp, 0xc
push ebx
push edi
lea ecx, [ebp - 0xa8]
call fcn.00417a85
push ebx
push edi
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0xa
call fcn.00417a85
push ebx
push edi
lea eax, [ebp - 0xe0]
push eax
push edi
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x29c]
push eax
call fcn.004012da
lea eax, [ebp - 0x29c]
push eax
lea eax, [esi + 0x70]
push eax
mov byte [ebp - 4], 0xc
call fcn.0041b8a2
cmp al, bl
jne 0x40bb21
push str.__couldt_download_new_version
push ebx
call fcn.00437bbc
pop ecx
pop ecx
lea esi, [ebp - 0x29c]
call fcn.00404538
push ebx
push edi
lea ecx, [ebp - 0xe0]
call fcn.00417a85
jmp 0x40ba61
push 0x44
lea eax, [ebp - 0x16c]
push ebx
push eax
call fcn.00445de0
push 0x10
lea eax, [ebp - 0x34]
push ebx
push eax
call fcn.00445de0
mov dword [ebp - 0x140], edi
lea edi, [esi + 0x98]
add esp, 0x18
cmp dword [edi + 0x18], 0x10
mov dword [ebp - 0x16c], 0x44
mov word [ebp - 0x13c], 5
jb 0x40bb69
mov eax, dword [edi + 4]
jmp 0x40bb6c
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp dword [esi + 0x1e4], ebx
jne 0x40bbf1
lea eax, [ebp - 0xc4]
push eax
call fcn.0041c3f3
pop ecx
mov dword [ebp - 0x18], eax
push str.OpenInstall_ExitEvent_
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0xd
call fcn.00418739
mov byte [ebp - 4], 0xe
push dword [ebp - 0x18]
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.00415459
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esi + 0x1d0]
mov byte [ebp - 4], 0xf
call fcn.00417328
push ebx
push 1
lea ecx, [ebp - 0xa8]
call fcn.00417a85
push ebx
push 1
lea ecx, [ebp - 0x6c]
call fcn.00417a85
push ebx
push 1
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 0xc
call fcn.00417a85
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0x50]
push edi
push eax
call fcn.00415459
add esp, 0xc
cmp byte [ebp - 0x11], bl
mov byte [ebp - 4], 0x10
je 0x40bd52
lea eax, [ebp - 0x118]
push eax
mov eax, dword [0x47f2c4]
call fcn.0040210a
mov dword [ebp - 0x18], eax
push 0x4671fc
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x1a4]
push eax
mov byte [ebp - 4], 0x11
call fcn.004152b2
add esp, 0xc
push str.__TP
push eax
lea eax, [ebp - 0x1c0]
push eax
mov byte [ebp - 4], 0x12
call fcn.004152b2
add esp, 0xc
push edi
push eax
lea eax, [ebp - 0x188]
push eax
mov byte [ebp - 4], 0x13
call fcn.00415459
add esp, 0xc
push str.__E
push eax
lea eax, [ebp - 0xfc]
push eax
mov byte [ebp - 4], 0x14
call fcn.004152b2
add esp, 0xc
lea ecx, [esi + 0x1d0]
push ecx
push eax
lea eax, [ebp - 0xc4]
push eax
mov byte [ebp - 4], 0x15
call fcn.00415459
add esp, 0xc
push str.__U
push eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 4], 0x16
call fcn.004152b2
add esp, 0xc
mov byte [ebp - 4], 0x17
push dword [ebp - 0x18]
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.00415459
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0x18
call fcn.00417328
push ebx
push 1
lea ecx, [ebp - 0xa8]
call fcn.00417a85
push ebx
push 1
lea ecx, [ebp - 0x6c]
call fcn.00417a85
push ebx
push 1
lea ecx, [ebp - 0xc4]
call fcn.00417a85
push ebx
push 1
lea ecx, [ebp - 0xfc]
call fcn.00417a85
push ebx
push 1
lea ecx, [ebp - 0x188]
call fcn.00417a85
push ebx
push 1
lea ecx, [ebp - 0x1c0]
call fcn.00417a85
push ebx
push 1
lea ecx, [ebp - 0x1a4]
call fcn.00417a85
push ebx
push 1
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 0x10
call fcn.00417a85
cmp byte [esi + 0x1cd], bl
je 0x40bd90
push 0x4671f8
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.004152b2
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0x19
call fcn.00417328
push ebx
push 1
lea ecx, [ebp - 0x118]
call fcn.00417a85
lea eax, [esi + 0x1d0]
cmp dword [eax + 0x18], 0x10
jb 0x40bda1
mov eax, dword [eax + 4]
jmp 0x40bda4
add eax, 4
push eax
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0x1a
cmp dword [edi + 0x18], 0x10
jb 0x40bdc1
mov edi, dword [edi + 4]
jmp 0x40bdc4
add edi, 4
cmp dword [ebp - 0x38], 0x10
mov eax, dword [ebp - 0x4c]
jae 0x40bdd0
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x16c]
push ecx
push edi
push ebx
push 0x4000000
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40be63
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.__ERROR:_cant_run_new_one__err_d_
push ebx
call fcn.00437bbc
add esp, 0xc
cmp dword [ebp - 0x18], ebx
je 0x40be14
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 1
lea ecx, [ebp - 0x50]
call fcn.00417a85
lea esi, [ebp - 0x29c]
call fcn.00404538
push ebx
push 1
lea ecx, [ebp - 0xe0]
call fcn.00417a85
push ebx
push 1
lea ecx, [ebp - 0x88]
call fcn.00417a85
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x1c]
call fcn.0041836d
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
cmp byte [ebp - 0x11], bl
jne 0x40be6d
call fcn.0042d996
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x34]
push 0xffffffffffffffff
mov dword [ebp - 0x20], eax
push ebx
lea eax, [ebp - 0x24]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push str.__new_one_finish_init
push ebx
call fcn.00437bbc
pop ecx
pop ecx
call fcn.0042d996
push 0xffffffffffffffff
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str.__new_one_finish_life
push ebx
call fcn.00437bbc
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
pop ecx
push dword [ebp - 0x30]
call edi
push dword [ebp - 0x34]
call edi
push 6
pop edi
mov eax, esi
call fcn.0040f41e
mov al, byte [ebp - 0x11]
neg al
sbb eax, eax
and eax, 0xfffffff0
add eax, 0x20
or dword [esi + 0x1b0], eax
cmp dword [ebp - 0x18], ebx
je 0x40beed
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 1
lea ecx, [ebp - 0x50]
call fcn.00417a85
lea esi, [ebp - 0x29c]
call fcn.00404538
push ebx
push 1
lea ecx, [ebp - 0xe0]
call fcn.00417a85
push ebx
push 1
lea ecx, [ebp - 0x88]
call fcn.00417a85
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x1c]
call fcn.0041836d
xor al, al
jmp 0x40be54