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

Disassembly:
mov eax, 0x4605fe
call fcn.0044b154
sub esp, 0x298
push ebx
push esi
push edi
mov edi, str.App::CheckForNewerInstallerAndRunIt_1891
mov dword [ebp - 0x10], esp
push edi
mov esi, ecx
call fcn.00449520
mov dword [ebp - 0x1c], eax
push edi
xor ebx, ebx
push 0x46b230
push ebx
mov dword [ebp - 4], ebx
call fcn.0043a6e3
add esp, 0x10
push 0x468d4a
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 1
call fcn.0043c5d0
lea eax, [ebp - 0x9c]
push eax
push str.latest_version_url
lea eax, [ebp - 0xf0]
push eax
lea ecx, [esi + 0x220]
mov byte [ebp - 4], 2
call fcn.0043f5c0
lea ecx, [ebp - 0x88]
push ecx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0043e1a0
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 6
call fcn.0043eb50
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 5
call fcn.0043eb50
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.0043a6e3
add esp, 0x1c
cmp dword [ebp - 0x74], ebx
je 0x40cfa7
mov eax, dword [esi + 0x208]
cmp eax, edi
jl 0x40cfa7
mov byte [ebp - 0x11], 1
jne 0x40cfae
cmp dword [esi + 0x20c], 0x12
jg 0x40cfb1
push ebx
push edi
jmp 0x40d3bc
mov byte [ebp - 0x11], bl
push str.APPCOMPANY
lea eax, [ebp - 0xe0]
push eax
push dword [0x4844e4]
call fcn.0041b183
push eax
lea eax, [ebp - 0xc4]
push eax
mov byte [ebp - 4], 7
call fcn.0041eee8
pop ecx
pop ecx
push str._LatestVersion.exe
push eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 4], 8
call fcn.0041691c
add esp, 0xc
push ebx
push edi
lea ecx, [ebp - 0xc4]
call fcn.004192fd
push ebx
push edi
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 0xa
call fcn.004192fd
push ebx
push edi
lea eax, [ebp - 0x6c]
push eax
push edi
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x2a4]
push eax
call fcn.00401589
lea eax, [ebp - 0x2a4]
push eax
lea eax, [esi + 0x70]
push eax
mov byte [ebp - 4], 0xc
call fcn.0041da78
cmp al, bl
jne 0x40d068
push str.__couldt_download_new_version
push ebx
call fcn.0043a6e3
pop ecx
pop ecx
lea esi, [ebp - 0x2a4]
call fcn.00404c8c
push ebx
push edi
lea ecx, [ebp - 0x6c]
call fcn.004192fd
jmp 0x40cfa7
push 0x44
pop edi
push edi
lea eax, [ebp - 0x170]
push ebx
push eax
call fcn.00448970
push 0x10
lea eax, [ebp - 0x34]
push ebx
push eax
call fcn.00448970
mov dword [ebp - 0x170], edi
lea edi, [esi + 0x98]
add esp, 0x18
cmp dword [edi + 0x18], 0x10
mov dword [ebp - 0x144], 1
mov word [ebp - 0x140], 5
jb 0x40d0b2
mov eax, dword [edi + 4]
jmp 0x40d0b5
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
cmp dword [esi + 0x1e4], ebx
jne 0x40d172
lea eax, [ebp - 0xa8]
push eax
call fcn.0041e592
pop ecx
mov dword [ebp - 0x18], eax
push str.APPCOMPANY
lea eax, [ebp - 0xfc]
push eax
mov byte [ebp - 4], 0xd
push dword [0x4844e4]
call fcn.0041b183
push str._ExitEvent_
push eax
lea eax, [ebp - 0xc4]
push eax
mov byte [ebp - 4], 0xe
call fcn.0041691c
add esp, 0xc
mov byte [ebp - 4], 0xf
push dword [ebp - 0x18]
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.00416a8f
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esi + 0x1d0]
mov byte [ebp - 4], 0x10
call fcn.00418bb2
push ebx
push 1
lea ecx, [ebp - 0xe0]
call fcn.004192fd
push ebx
push 1
lea ecx, [ebp - 0xc4]
call fcn.004192fd
push ebx
push 1
lea ecx, [ebp - 0xfc]
call fcn.004192fd
push ebx
push 1
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 0xc
call fcn.004192fd
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x50]
push edi
push eax
call fcn.00416a8f
add esp, 0xc
cmp byte [ebp - 0x11], bl
mov byte [ebp - 4], 0x11
je 0x40d2d6
lea eax, [ebp - 0x118]
push eax
mov eax, dword [0x4844ec]
call fcn.004023c2
mov dword [ebp - 0x18], eax
push 0x46a38c
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x1a8]
push eax
mov byte [ebp - 4], 0x12
call fcn.0041691c
add esp, 0xc
push str.__TP
push eax
lea eax, [ebp - 0x18c]
push eax
mov byte [ebp - 4], 0x13
call fcn.0041691c
add esp, 0xc
push edi
push eax
lea eax, [ebp - 0x1c4]
push eax
mov byte [ebp - 4], 0x14
call fcn.00416a8f
add esp, 0xc
push str.__E
push eax
lea eax, [ebp - 0xa8]
push eax
mov byte [ebp - 4], 0x15
call fcn.0041691c
add esp, 0xc
lea ecx, [esi + 0x1d0]
push ecx
push eax
lea eax, [ebp - 0xfc]
push eax
mov byte [ebp - 4], 0x16
call fcn.00416a8f
add esp, 0xc
push str.__U
push eax
lea eax, [ebp - 0xc4]
push eax
mov byte [ebp - 4], 0x17
call fcn.0041691c
add esp, 0xc
mov byte [ebp - 4], 0x18
push dword [ebp - 0x18]
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.00416a8f
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0x19
call fcn.00418bb2
push ebx
push 1
lea ecx, [ebp - 0xe0]
call fcn.004192fd
push ebx
push 1
lea ecx, [ebp - 0xc4]
call fcn.004192fd
push ebx
push 1
lea ecx, [ebp - 0xfc]
call fcn.004192fd
push ebx
push 1
lea ecx, [ebp - 0xa8]
call fcn.004192fd
push ebx
push 1
lea ecx, [ebp - 0x1c4]
call fcn.004192fd
push ebx
push 1
lea ecx, [ebp - 0x18c]
call fcn.004192fd
push ebx
push 1
lea ecx, [ebp - 0x1a8]
call fcn.004192fd
push ebx
push 1
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 0x11
call fcn.004192fd
cmp byte [esi + 0x1cd], bl
je 0x40d314
push 0x46a388
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0041691c
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0x1a
call fcn.00418bb2
push ebx
push 1
lea ecx, [ebp - 0x118]
call fcn.004192fd
lea eax, [esi + 0x1d0]
cmp dword [eax + 0x18], 0x10
jb 0x40d325
mov eax, dword [eax + 4]
jmp 0x40d328
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], 0x1b
cmp dword [edi + 0x18], 0x10
jb 0x40d345
mov edi, dword [edi + 4]
jmp 0x40d348
add edi, 4
cmp dword [ebp - 0x38], 0x10
mov eax, dword [ebp - 0x4c]
jae 0x40d354
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x170]
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 0x40d3e4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.__ERROR:_cant_run_new_one__err_d_
push ebx
call fcn.0043a6e3
add esp, 0xc
cmp dword [ebp - 0x18], ebx
je 0x40d398
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ebx
push 1
lea ecx, [ebp - 0x50]
call fcn.004192fd
lea esi, [ebp - 0x2a4]
call fcn.00404c8c
push ebx
push 1
lea ecx, [ebp - 0x6c]
call fcn.004192fd
push ebx
push 1
lea ecx, [ebp - 0x88]
call fcn.004192fd
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x1c]
call fcn.00419c15
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 0x40d3ee
call fcn.0043040d
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.0043a6e3
pop ecx
pop ecx
call fcn.0043040d
push 0xffffffffffffffff
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push str.__new_one_finish_life
push ebx
call fcn.0043a6e3
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 eax
mov ecx, esi
call fcn.00410d85
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 0x40d46a
push dword [ebp - 0x18]
call edi
push ebx
push 1
lea ecx, [ebp - 0x50]
call fcn.004192fd
lea esi, [ebp - 0x2a4]
call fcn.00404c8c
push ebx
push 1
lea ecx, [ebp - 0x6c]
call fcn.004192fd
push ebx
push 1
lea ecx, [ebp - 0x88]
call fcn.004192fd
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x1c]
call fcn.00419c15
xor al, al
jmp 0x40d3d5