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

Disassembly:
mov eax, 0x468803
call fcn.00452544
sub esp, 0x298
push ebx
push esi
push edi
mov edi, str.App::CheckForNewerInstallerAndRunIt_2068
mov dword [ebp - 0x10], esp
push edi
mov esi, ecx
call fcn.004508dd
mov dword [ebp - 0x1c], eax
push edi
xor ebx, ebx
push 0x474efc
push ebx
mov dword [ebp - 4], ebx
call fcn.00441366
add esp, 0x10
push 0x471e5a
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 1
call fcn.004433a0
lea eax, [ebp - 0x9c]
push eax
push str.latest_version_url
lea eax, [ebp - 0xf0]
push eax
lea ecx, [esi + 0x228]
mov byte [ebp - 4], 2
call fcn.00446390
lea ecx, [ebp - 0x88]
push ecx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00444f70
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 6
call fcn.00445920
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 5
call fcn.00445920
push dword [esi + 0x214]
movzx eax, byte [esi + 0x1d4]
push dword [esi + 0x210]
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.00441366
add esp, 0x1c
cmp dword [ebp - 0x74], ebx
je 0x40eaec
mov eax, dword [esi + 0x210]
cmp eax, edi
jl 0x40eaec
mov byte [ebp - 0x11], 1
jne 0x40eaf3
cmp dword [esi + 0x214], 0x12
jg 0x40eaf6
push ebx
push edi
jmp 0x40ef03
mov byte [ebp - 0x11], bl
push str.APPCOMPANY
lea eax, [ebp - 0xe0]
push eax
push dword [0x48f704]
call fcn.0041d7d4
push ebx
push eax
lea eax, [ebp - 0xc4]
push eax
mov byte [ebp - 4], 7
call fcn.0042201c
add esp, 0xc
push str._LatestVersion.exe
push eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 4], 8
call fcn.0041867b
add esp, 0xc
push ebx
push edi
lea ecx, [ebp - 0xc4]
call fcn.0041b05c
push ebx
push edi
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 0xa
call fcn.0041b05c
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 + 0x78]
push eax
mov byte [ebp - 4], 0xc
call fcn.00420890
cmp al, bl
jne 0x40ebaf
push str.__couldt_download_new_version
push ebx
call fcn.00441366
pop ecx
pop ecx
lea esi, [ebp - 0x2a4]
call fcn.00405a96
push ebx
push edi
lea ecx, [ebp - 0x6c]
call fcn.0041b05c
jmp 0x40eaec
push 0x44
pop edi
push edi
lea eax, [ebp - 0x170]
push ebx
push eax
call fcn.0044fdc0
push 0x10
lea eax, [ebp - 0x34]
push ebx
push eax
call fcn.0044fdc0
mov dword [ebp - 0x170], edi
lea edi, [esi + 0xa0]
add esp, 0x18
cmp dword [edi + 0x18], 0x10
mov dword [ebp - 0x144], 1
mov word [ebp - 0x140], 5
jb 0x40ebf9
mov eax, dword [edi + 4]
jmp 0x40ebfc
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
cmp dword [esi + 0x1ec], ebx
jne 0x40ecb9
lea eax, [ebp - 0xa8]
push eax
call fcn.0042155d
pop ecx
mov dword [ebp - 0x18], eax
push str.APPCOMPANY
lea eax, [ebp - 0xfc]
push eax
mov byte [ebp - 4], 0xd
push dword [0x48f704]
call fcn.0041d7d4
push str._ExitEvent_
push eax
lea eax, [ebp - 0xc4]
push eax
mov byte [ebp - 4], 0xe
call fcn.0041867b
add esp, 0xc
mov byte [ebp - 4], 0xf
push dword [ebp - 0x18]
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.004187fe
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esi + 0x1d8]
mov byte [ebp - 4], 0x10
call fcn.0041ab6e
push ebx
push 1
lea ecx, [ebp - 0xe0]
call fcn.0041b05c
push ebx
push 1
lea ecx, [ebp - 0xc4]
call fcn.0041b05c
push ebx
push 1
lea ecx, [ebp - 0xfc]
call fcn.0041b05c
push ebx
push 1
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 0xc
call fcn.0041b05c
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x50]
push edi
push eax
call fcn.004187fe
add esp, 0xc
cmp byte [ebp - 0x11], bl
mov byte [ebp - 4], 0x11
je 0x40ee1d
lea eax, [ebp - 0x118]
push eax
mov eax, dword [0x48f70c]
call fcn.004023c2
mov dword [ebp - 0x18], eax
push 0x47351c
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x1a8]
push eax
mov byte [ebp - 4], 0x12
call fcn.0041867b
add esp, 0xc
push str.__TP
push eax
lea eax, [ebp - 0x18c]
push eax
mov byte [ebp - 4], 0x13
call fcn.0041867b
add esp, 0xc
push edi
push eax
lea eax, [ebp - 0x1c4]
push eax
mov byte [ebp - 4], 0x14
call fcn.004187fe
add esp, 0xc
push str.__E
push eax
lea eax, [ebp - 0xa8]
push eax
mov byte [ebp - 4], 0x15
call fcn.0041867b
add esp, 0xc
lea ecx, [esi + 0x1d8]
push ecx
push eax
lea eax, [ebp - 0xfc]
push eax
mov byte [ebp - 4], 0x16
call fcn.004187fe
add esp, 0xc
push str.__U
push eax
lea eax, [ebp - 0xc4]
push eax
mov byte [ebp - 4], 0x17
call fcn.0041867b
add esp, 0xc
mov byte [ebp - 4], 0x18
push dword [ebp - 0x18]
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.004187fe
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0x19
call fcn.0041ab6e
push ebx
push 1
lea ecx, [ebp - 0xe0]
call fcn.0041b05c
push ebx
push 1
lea ecx, [ebp - 0xc4]
call fcn.0041b05c
push ebx
push 1
lea ecx, [ebp - 0xfc]
call fcn.0041b05c
push ebx
push 1
lea ecx, [ebp - 0xa8]
call fcn.0041b05c
push ebx
push 1
lea ecx, [ebp - 0x1c4]
call fcn.0041b05c
push ebx
push 1
lea ecx, [ebp - 0x18c]
call fcn.0041b05c
push ebx
push 1
lea ecx, [ebp - 0x1a8]
call fcn.0041b05c
push ebx
push 1
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 0x11
call fcn.0041b05c
cmp byte [esi + 0x1d5], bl
je 0x40ee5b
push 0x473518
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0041867b
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0x1a
call fcn.0041ab6e
push ebx
push 1
lea ecx, [ebp - 0x118]
call fcn.0041b05c
lea eax, [esi + 0x1d8]
cmp dword [eax + 0x18], 0x10
jb 0x40ee6c
mov eax, dword [eax + 4]
jmp 0x40ee6f
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 0x40ee8c
mov edi, dword [edi + 4]
jmp 0x40ee8f
add edi, 4
cmp dword [ebp - 0x38], 0x10
mov eax, dword [ebp - 0x4c]
jae 0x40ee9b
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 0x40ef2b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.__ERROR:_cant_run_new_one__err_d_
push ebx
call fcn.00441366
add esp, 0xc
cmp dword [ebp - 0x18], ebx
je 0x40eedf
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ebx
push 1
lea ecx, [ebp - 0x50]
call fcn.0041b05c
lea esi, [ebp - 0x2a4]
call fcn.00405a96
push ebx
push 1
lea ecx, [ebp - 0x6c]
call fcn.0041b05c
push ebx
push 1
lea ecx, [ebp - 0x88]
call fcn.0041b05c
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x1c]
call fcn.0041ba42
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 0x40ef35
call fcn.00436454
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.00441366
pop ecx
pop ecx
call fcn.00436454
push 0xffffffffffffffff
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push str.__new_one_finish_life
push ebx
call fcn.00441366
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.00412a9c
mov al, byte [ebp - 0x11]
neg al
sbb eax, eax
and eax, 0xfffffff0
add eax, 0x20
or dword [esi + 0x1b8], eax
cmp dword [ebp - 0x18], ebx
je 0x40efb1
push dword [ebp - 0x18]
call edi
push ebx
push 1
lea ecx, [ebp - 0x50]
call fcn.0041b05c
lea esi, [ebp - 0x2a4]
call fcn.00405a96
push ebx
push 1
lea ecx, [ebp - 0x6c]
call fcn.0041b05c
push ebx
push 1
lea ecx, [ebp - 0x88]
call fcn.0041b05c
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x1c]
call fcn.0041ba42
xor al, al
jmp 0x40ef1c