Function at 0x40e960
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x43ea70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x154
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov dword [esp + 0x28], ebp
call fcn.004364bc
xor ebx, ebx
lea ecx, [ebp + 0x5c]
mov dword [esp + 0x16c], ebx
call fcn.00406e80
lea ecx, [ebp + 0x1a0]
mov byte [esp + 0x16c], 1
call fcn.00406a00
lea ecx, [ebp + 0x1ac]
mov byte [esp + 0x16c], 2
call fcn.0040a0c0
lea esi, [ebp + 0x2b8]
mov byte [esp + 0x16c], 3
mov ecx, esi
call fcn.00436cf8
mov dword [esi], vtable.CStatic.0
lea esi, [ebp + 0x2f4]
mov byte [esp + 0x16c], 4
mov ecx, esi
call fcn.00436cf8
mov dword [esi], vtable.CStatic.0
lea esi, [ebp + 0x330]
mov byte [esp + 0x16c], 5
mov ecx, esi
call fcn.00436cf8
mov dword [esi], vtable.CStatic.0
lea ecx, [ebp + 0x36c]
mov byte [esp + 0x16c], 6
call fcn.004087d0
lea ecx, [ebp + 0x3ac]
mov byte [esp + 0x16c], 7
call fcn.004087d0
lea ecx, [ebp + 0x3ec]
mov byte [esp + 0x16c], 8
call fcn.004087d0
lea ecx, [ebp + 0x42c]
mov byte [esp + 0x16c], 9
call fcn.004087d0
mov al, byte [esp + 0x13]
lea esi, [ebp + 0x478]
push ebx
mov dword [ebp + 0x470], ebx
mov dword [ebp + 0x474], ebx
push ebx
mov ecx, esi
mov byte [esp + 0x174], 0xa
mov byte [esi], al
call fcn.004032b0
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
mov dl, byte [esp + 0x13]
lea ecx, [ebp + 0x490]
mov byte [ebp + 0x484], bl
mov byte [ebp + 0x485], bl
mov byte [ebp + 0x486], bl
mov byte [ebp + 0x487], bl
mov dword [ebp + 0x488], ebx
mov byte [ebp + 0x48c], bl
push ebx
mov byte [esp + 0x170], 0xb
mov byte [ecx], dl
call fcn.00417e30
mov al, byte [esp + 0x13]
lea ecx, [ebp + 0x4a0]
push ebx
mov byte [esp + 0x170], 0xc
mov byte [ecx], al
call fcn.00417e30
mov dl, byte [esp + 0x13]
lea ecx, [ebp + 0x4b0]
push ebx
mov byte [esp + 0x170], 0xd
mov byte [ecx], dl
call fcn.00417e30
mov al, byte [esp + 0x13]
lea ecx, [ebp + 0x4c0]
push ebx
mov byte [esp + 0x170], 0xe
mov byte [ecx], al
call fcn.00417e30
mov dl, byte [esp + 0x13]
lea ecx, [ebp + 0x4d0]
push ebx
mov byte [esp + 0x170], 0xf
mov byte [ecx], dl
call fcn.00417e30
mov al, byte [esp + 0x13]
lea ecx, [ebp + 0x4e8]
mov dword [ebp + 0x4e0], ebx
mov byte [ebp + 0x4e4], bl
push ebx
mov byte [esp + 0x170], 0x10
mov byte [ecx], al
call fcn.00417e30
mov byte [esp + 0x16c], 0x11
mov dword [ebp], method.CDialog.virtual_0
call fcn.0043ceff
call fcn.0043ceff
mov eax, dword [eax + 0xc]
push 0x2710
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp + 0x46c], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x60]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x60]
push ecx
mov ecx, ebp
call fcn.0040fe60
lea edx, [esp + 0x60]
mov ecx, ebp
push edx
call fcn.004102d0
cmp dword [ebp + 0x4f0], ebx
je 0x40ebfc
mov eax, dword [ebp + 0x4ec]
cmp eax, ebx
jne 0x40ebdf
mov eax, 0x44167c
mov ecx, dword [0x44f52c]
cmp ecx, ebx
jne 0x40ebee
mov ecx, 0x44167c
push eax
push ecx
mov ecx, ebp
call fcn.0040fa90
jmp 0x40ef0b
push 0x44f528
call fcn.00409a50
add esp, 4
test al, al
je 0x40ec74
mov eax, dword [0x44f52c]
cmp eax, ebx
jne 0x40ec1b
mov eax, 0x44167c
push eax
mov ecx, ebp
call fcn.0040f8a0
test al, al
jne 0x40ec74
lea eax, [esp + 0x14]
push 0x2340
push eax
mov ecx, 0x44f200
call fcn.00402690
mov eax, dword [eax + 4]
mov ecx, 0x44167c
cmp eax, ebx
je 0x40ec49
mov ecx, eax
mov eax, dword [ebp + 0x4d4]
cmp eax, ebx
jne 0x40ec58
mov eax, 0x44167c
push ebx
push ecx
push eax
push ebx
call sub.SierraPt.dll_SP_MessageBox
add esp, 0x10
lea ecx, [esp + 0x14]
push 1
call fcn.00417e30
jmp 0x40ef0b
mov cl, byte [esp + 0x13]
push ebx
mov byte [esp + 0x18], cl
lea ecx, [esp + 0x18]
call fcn.00417e30
lea edi, [esp + 0x60]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
lea ecx, [esp + 0x18]
push esi
mov dword [esp + 0x2c], esi
call fcn.00403160
test al, al
je 0x40ecce
mov edi, dword [esp + 0x18]
mov ecx, esi
mov edx, ecx
lea esi, [esp + 0x60]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.004030c0
lea ecx, [esp + 0x14]
mov byte [esp + 0x16c], 0x12
push ecx
mov ecx, ebp
call fcn.00411e90
test al, al
push 1
lea ecx, [esp + 0x18]
sete byte [esp + 0x17]
mov byte [esp + 0x170], 0x11
call fcn.00417e30
cmp byte [esp + 0x13], bl
je 0x40ed4f
lea edx, [esp + 0x14]
push 0x2340
push edx
mov ecx, 0x44f200
call fcn.00402690
mov eax, dword [eax + 4]
mov ecx, 0x44167c
cmp eax, ebx
je 0x40ed24
mov ecx, eax
mov eax, dword [ebp + 0x4d4]
cmp eax, ebx
jne 0x40ed33
mov eax, 0x44167c
push ebx
push ecx
push eax
push ebx
call sub.SierraPt.dll_SP_MessageBox
add esp, 0x10
lea ecx, [esp + 0x14]
push 1
call fcn.00417e30
jmp 0x40ef0b
cmp byte [0x44f2e0], bl
je 0x40ee81
lea eax, [esp + 0x2c]
push eax
call fcn.004182c0
add esp, 4
mov esi, eax
mov al, byte [esi + 0x30]
mov byte [esp + 0x16c], 0x13
cmp al, 2
jne 0x40ed8a
lea ecx, [esi + 0x10]
mov byte [esi + 0x30], 3
push ecx
push esi
call fcn.004175b0
add esp, 8
mov edx, dword [esi + 0x14]
cmp edx, ebx
jne 0x40ed96
mov edx, 0x44167c
mov al, byte [esp + 0x13]
mov edi, edx
mov byte [esp + 0x14], al
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.00401670
push 1
lea ecx, [esp + 0x50]
mov byte [esp + 0x170], 0x17
call fcn.00401710
push 1
lea ecx, [esp + 0x40]
mov byte [esp + 0x170], 0x16
call fcn.00417e30
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x16c], 0x15
cmp ecx, ebx
je 0x40ee11
mov al, byte [ecx - 1]
cmp al, bl
je 0x40ee05
dec al
mov byte [ecx - 1], al
jmp 0x40ee11
lea eax, [ecx - 2]
push eax
call fcn.00439dae
add esp, 4
push str._n
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.00406da0
mov eax, dword [esp + 0x1c]
add esp, 4
cmp eax, ebx
jne 0x40ee37
mov eax, 0x44167c
push eax
push str.Starting_SierraUpdate__Version__s_n
call fcn.00406da0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push str.Command_Line:__s_n
call fcn.00406da0
mov ecx, dword [esp + 0x20]
add esp, 8
cmp ecx, ebx
mov byte [esp + 0x16c], 0x11
je 0x40ee81
mov al, byte [ecx - 1]
cmp al, bl
je 0x40ee77
dec al
mov byte [ecx - 1], al
jmp 0x40ee81
dec ecx
push ecx
call fcn.00439dae
add esp, 4
mov ecx, ebp
call fcn.00412070
test al, al
jne 0x40ef12
lea ecx, [esp + 0x14]
push 0x2340
push ecx
mov ecx, 0x44f200
call fcn.00402690
mov eax, dword [eax + 4]
mov ecx, 0x44167c
cmp eax, ebx
je 0x40eeb2
mov ecx, eax
mov eax, dword [ebp + 0x4d4]
cmp eax, ebx
jne 0x40eec1
mov eax, 0x44167c
push ebx
push ecx
push eax
push ebx
call sub.SierraPt.dll_SP_MessageBox
mov eax, dword [esp + 0x28]
add esp, 0x10
cmp eax, ebx
je 0x40eeee
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x40eee5
dec al
mov byte [ecx], al
jmp 0x40eeee
push ecx
call fcn.00439dae
add esp, 4
mov eax, dword [ebp + 0x4d4]
cmp eax, ebx
jne 0x40eefd
mov eax, 0x44167c
push eax
push 0x44c4d0
call fcn.00406da0
add esp, 8
mov byte [ebp + 0x4e4], 1
mov ecx, dword [esp + 0x164]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x160
ret