Function at 0x40e310
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x441ece
mov eax, dword fs:[0]
push eax
sub esp, 0x1d4
mov eax, dword [0x4501a0]
xor eax, esp
mov dword [esp + 0x1d0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4501a0]
xor eax, esp
push eax
lea eax, [esp + 0x1e8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1f8]
mov esi, dword [esp + 0x1fc]
xor ebp, ebp
mov ebx, edx
mov dword [esp + 0x28], ebx
cmp eax, ebp
jne 0x40e8af
cmp ecx, ebp
jne 0x40ec72
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push 0xffffffffffffffff
lea eax, [esi + 0x1c]
mov ebx, 7
xor edx, edx
mov dword [ecx + 0x18], ebx
mov dword [ecx + 0x14], ebp
push ebp
mov dword [esp + 0x38], eax
mov word [ecx + 4], dx
call fcn.00403ea0
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x228], ebp
xor eax, eax
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebp
mov dword [esp + 0x58], esp
mov word [esi + 4], ax
push ebp
mov eax, 0x445f34
call fcn.00403f90
sub esp, 0x1c
mov byte [esp + 0x244], 1
mov esi, esp
mov dword [esp + 0x70], esp
xor ecx, ecx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebp
push 0xe
mov eax, 0x4467f8
mov word [esi + 4], cx
call fcn.00403f90
sub esp, 0x1c
mov byte [esp + 0x260], 2
mov esi, esp
mov dword [esp + 0x88], esp
xor edx, edx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebp
push ebx
mov eax, str.version
mov word [esi + 4], dx
call fcn.00403f90
lea edi, [esp + 0x200]
mov dword [esp + 0x260], 0xffffffff
call fcn.00417020
add esp, 0x54
mov dword [esp + 0x20c], 3
mov ecx, esp
mov dword [esp + 0x34], esp
xor eax, eax
mov dword [ecx + 0x18], ebx
mov dword [ecx + 0x14], ebp
push 0xffffffffffffffff
mov word [ecx + 4], ax
mov eax, dword [esp + 0x34]
push ebp
call fcn.00403ea0
sub esp, 0x1c
mov byte [esp + 0x228], 4
mov esi, esp
mov dword [esp + 0x54], esp
xor ecx, ecx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebp
push ebp
mov eax, 0x445f34
mov word [esi + 4], cx
call fcn.00403f90
sub esp, 0x1c
mov byte [esp + 0x244], 5
mov dword [esp + 0x74], esp
mov esi, esp
xor edx, edx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebp
push 0xc
mov eax, str.upgraderange
mov word [esi + 4], dx
call fcn.00403f90
sub esp, 0x1c
mov esi, esp
mov byte [esp + 0x260], 6
xor eax, eax
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebp
mov dword [esp + 0x94], esp
mov word [esi + 4], ax
push ebx
mov eax, str.version
call fcn.00403f90
lea edi, [esp + 0x1c8]
mov byte [esp + 0x260], 3
call fcn.00417020
add esp, 0x54
mov byte [esp + 0x20c], bl
mov edi, esp
mov dword [esp + 0x34], esp
call fcn.00416e70
sub esp, 0x1c
mov byte [esp + 0x228], 8
mov esi, esp
mov dword [esp + 0x54], esp
xor ecx, ecx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebp
push ebp
mov eax, 0x445f34
mov word [esi + 4], cx
call fcn.00403f90
sub esp, 0x1c
mov byte [esp + 0x244], 9
mov esi, esp
mov dword [esp + 0x74], esp
xor edx, edx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebp
push 0xe
mov eax, str.lastUpgradeVer
mov word [esi + 4], dx
call fcn.00403f90
sub esp, 0x1c
mov esi, esp
mov byte [esp + 0x260], 0xa
xor eax, eax
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebp
mov dword [esp + 0x94], esp
mov word [esi + 4], ax
push ebx
mov eax, str.version
call fcn.00403f90
lea edi, [esp + 0x1ac]
mov byte [esp + 0x260], bl
call fcn.00417020
add esp, 0x70
mov edi, dword [esp + 0x28]
add edi, 0x4e0
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0x198]
mov ecx, edi
mov byte [esp + 0x1f8], 0xb
call fcn.00403ea0
push 0x446864
lea ecx, [esp + 0x194]
push ecx
lea edx, [esp + 0x50]
push edx
call fcn.004167b0
add esp, 0xc
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x198]
mov byte [esp + 0x1f8], 0xc
call fcn.00403ea0
mov esi, 8
mov byte [esp + 0x1f0], 0xb
cmp dword [esp + 0x60], esi
jb 0x40e603
mov eax, dword [esp + 0x4c]
push eax
call fcn.004266b0
add esp, 4
mov eax, dword [esp + 0x194]
xor ecx, ecx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], ebp
mov word [esp + 0x4c], cx
cmp dword [esp + 0x1a8], esi
jae 0x40e629
lea eax, [esp + 0x194]
push eax
call fcn.00417500
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
jne 0x40e6c2
cmp dword [esp + 0x154], esi
jb 0x40e657
mov edx, dword [esp + 0x140]
push edx
call fcn.004266b0
add esp, 4
xor eax, eax
mov dword [esp + 0x154], ebx
mov dword [esp + 0x150], ebp
mov word [esp + 0x140], ax
cmp dword [esp + 0x170], esi
jb 0x40e688
mov ecx, dword [esp + 0x15c]
push ecx
call fcn.004266b0
add esp, 4
xor edx, edx
mov dword [esp + 0x170], ebx
mov dword [esp + 0x16c], ebp
mov word [esp + 0x15c], dx
cmp dword [esp + 0x1a8], esi
jb 0x40ec72
mov eax, dword [esp + 0x194]
push eax
call fcn.004266b0
add esp, 4
jmp 0x40ec72
push 0x446864
lea ecx, [esp + 0x140]
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.004167b0
add esp, 0xc
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x144]
mov byte [esp + 0x1f8], 0xd
call fcn.00403ea0
mov byte [esp + 0x1f0], 0xb
cmp dword [esp + 0x44], esi
jb 0x40e70e
mov eax, dword [esp + 0x30]
push eax
call fcn.004266b0
add esp, 4
mov eax, dword [esp + 0x140]
xor ecx, ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebp
mov word [esp + 0x30], cx
cmp dword [esp + 0x154], esi
jae 0x40e734
lea eax, [esp + 0x140]
push eax
call fcn.00417500
mov ecx, dword [esp + 0x18]
add esp, 4
cmp ecx, 0x834
jle 0x40e82b
cmp eax, ecx
jge 0x40e82b
sub esp, 0x1c
lea edx, [esp + 0x174]
mov esi, esp
mov dword [esp + 0x34], esp
push edx
call fcn.0040d390
call fcn.0040ecc0
test al, al
je 0x40e826
lea esi, [esp + 0x14]
call fcn.004101f0
mov byte [esp + 0x1f0], 0xe
cmp dword [edi + 0x18], 8
jb 0x40e794
mov edi, dword [edi + 4]
jmp 0x40e797
add edi, 4
push edi
push 0x446868
lea edi, [esp + 0x1c]
call fcn.00411df0
mov eax, dword [esp + 0x1c]
add esp, 8
lea ecx, [esp + 0x174]
call fcn.00403740
mov byte [esp + 0x1f0], 0xf
cmp dword [esp + 0x18c], 8
mov eax, dword [esp + 0x178]
jae 0x40e7d9
lea eax, [esp + 0x178]
mov edi, dword [esp + 0x28]
push ebp
push 0x44688c
lea esi, [edi + 0x19c]
push eax
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
push ebp
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call fcn.0040df40
lea esi, [esp + 0x174]
call fcn.00403780
lea ecx, [esp + 0x14]
call fcn.004102c0
mov esi, 8
cmp dword [esp + 0x154], esi
jb 0x40e844
mov eax, dword [esp + 0x140]
push eax
call fcn.004266b0
add esp, 4
xor ecx, ecx
mov dword [esp + 0x154], ebx
mov dword [esp + 0x150], ebp
mov word [esp + 0x140], cx
cmp dword [esp + 0x170], esi
jb 0x40e875
mov edx, dword [esp + 0x15c]
push edx
call fcn.004266b0
add esp, 4
xor eax, eax
mov dword [esp + 0x170], ebx
mov dword [esp + 0x16c], ebp
mov word [esp + 0x15c], ax
cmp dword [esp + 0x1a8], esi
jb 0x40ec72
mov ecx, dword [esp + 0x194]
push ecx
call fcn.004266b0
add esp, 4
jmp 0x40ec72
cmp eax, 1
jne 0x40e9df
cmp ecx, ebp
jne 0x40e9c2
push 0x40
lea edx, [esp + 0x6c]
push ebp
push edx
mov dword [esp + 0x148], ebp
mov dword [esp + 0x14c], ebp
mov dword [esp + 0x150], ebp
mov dword [esp + 0x154], ebp
call fcn.0042a680
xor eax, eax
add esp, 0xc
cmp dword [esi + 0x34], 8
mov dword [esp + 0x64], 0x44
mov word [esp + 0x94], ax
mov dword [esp + 0x90], 1
jb 0x40e914
mov esi, dword [esi + 0x20]
jmp 0x40e917
add esi, 0x20
lea ecx, [esp + 0x13c]
push ecx
lea edx, [esp + 0x68]
push edx
push ebp
push ebp
push 0x220
push ebp
push ebp
push ebp
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
sub esp, 0x1c
mov edi, esp
mov dword [esp + 0x34], esp
call fcn.00416e70
sub esp, 0x1c
mov dword [esp + 0x228], 0x10
mov ecx, esp
mov dword [esp + 0x54], esp
push 0xffffffffffffffff
xor edx, edx
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebp
lea eax, [ebx + 0x4e0]
push ebp
mov word [ecx + 4], dx
call fcn.00403ea0
sub esp, 0x1c
mov byte [esp + 0x244], 0x11
mov eax, str.lastUpgradeVer
mov ecx, esp
mov dword [esp + 0x74], esp
call fcn.00403740
sub esp, 0x1c
mov byte [esp + 0x260], 0x12
mov eax, str.version
mov ecx, esp
mov dword [esp + 0x94], esp
call fcn.00403740
mov dword [esp + 0x260], 0xffffffff
call fcn.00417260
add esp, 0x70
mov eax, dword [ebx + 0x19c]
mov edx, dword [eax + 0x34]
push ebp
lea ecx, [ebx + 0x19c]
push ebp
push 0x4c9
call edx
jmp 0x40ec6b
cmp eax, 2
jne 0x40ec49
cmp ecx, ebp
jne 0x40ec29
mov edi, 8
cmp dword [esi + 0x34], edi
jb 0x40e9ff
mov eax, dword [esi + 0x20]
jmp 0x40ea02
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ec29
cmp dword [esi + 0x34], edi
jb 0x40ea1b
mov esi, dword [esi + 0x20]
jmp 0x40ea1e
add esi, 0x20
push esi
lea eax, [esp + 0xb0]
push eax
call fcn.004102e0
mov dword [esp + 0x1f0], 0x13
mov eax, dword [esp + 0xac]
mov ecx, dword [eax + 4]
mov ecx, dword [esp + ecx + 0xb4]
test cl, 6
jne 0x40ec10
mov dword [esp + 0x1c4], 0xf
mov dword [esp + 0x1c0], ebp
mov byte [esp + 0x1b0], 0
mov byte [esp + 0x1f0], 0x14
mov edx, dword [eax + 4]
push 0xa
lea eax, [esp + edx + 0xb0]
push eax
call fcn.00411c90
movzx ecx, al
push ecx
lea edx, [esp + 0xb0]
push edx
lea ecx, [esp + 0x1b4]
call fcn.004124f0
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax + 8]
add ecx, eax
and dl, 6
movsx eax, dl
add esp, 8
neg eax
sbb eax, eax
not eax
test ecx, eax
je 0x40ec04
nop
push 1
push 0x446898
lea ecx, [esp + 0x1b4]
push ecx
call fcn.00411150
push 1
push 0x44689c
lea edx, [esp + 0x1b4]
push edx
mov edi, eax
call fcn.00411150
push 2
mov esi, eax
push 0x4468a0
lea eax, [esp + 0x1b4]
push eax
call fcn.00411150
cmp eax, 0xffffffff
je 0x40eb0f
cmp edi, 0xffffffff
je 0x40eb0f
cmp esi, 0xffffffff
jne 0x40eb67
mov ecx, dword [esp + 0xac]
mov edx, dword [ecx + 4]
push 0xa
lea eax, [esp + edx + 0xb0]
push eax
call fcn.00411c90
movzx ecx, al
push ecx
lea edx, [esp + 0xb0]
push edx
lea ecx, [esp + 0x1b4]
call fcn.004124f0
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax + 8]
add ecx, eax
and dl, 6
movsx eax, dl
add esp, 8
neg eax
sbb eax, eax
not eax
test ecx, eax
jne 0x40eac0
jmp 0x40ec04
sub esi, edi
dec esi
push esi
lea ecx, [edi + 1]
lea esi, [esp + 0x1cc]
lea edx, [esp + 0x1b0]
call fcn.004101c0
xor ecx, ecx
mov dword [esp + 0x18c], 7
mov dword [esp + 0x188], ebp
mov word [esp + 0x178], cx
mov byte [esp + 0x1f0], 0x16
cmp dword [esp + 0x1e0], 0x10
mov eax, dword [esp + 0x1cc]
jae 0x40ebbd
lea eax, [esp + 0x1cc]
lea edx, [esp + 0x174]
push edx
push eax
call fcn.00417a40
sub esp, 0x14
lea eax, [esp + 0x190]
mov esi, esp
mov dword [esp + 0x34], esp
push eax
call fcn.0040d390
lea esi, [ebx + 0x444]
call fcn.00422ae0
lea esi, [esp + 0x174]
call fcn.00403780
lea ecx, [esp + 0x1c8]
call fcn.00404eb0
lea ecx, [esp + 0x1ac]
call fcn.00404eb0
lea eax, [esp + 0xac]
mov dword [esp + 0x1f0], 0xffffffff
call fcn.0040eca0
jmp 0x40ec72
sub esp, 0x1c
mov eax, str.error
mov ecx, esp
mov dword [esp + 0x34], esp
call fcn.00403740
lea esi, [ebx + 0x444]
call fcn.00422ae0
jmp 0x40ec72
cmp eax, 3
je 0x40ec53
cmp eax, 4
jne 0x40ec72
mov edx, dword [ebx + 0x19c]
mov eax, dword [edx + 0x34]
push ebp
lea ecx, [ebx + 0x19c]
push ebp
push 0x4c9
call eax
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esp + 0x1e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1d0]
xor ecx, esp
call fcn.004266bb
add esp, 0x1e0
ret 8