Function at 0x409550
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44bc11
mov eax, dword fs:[0]
push eax
sub esp, 0x850
mov eax, dword [0x4650f0]
xor eax, esp
mov dword [esp + 0x848], eax
push ebx
push esi
push edi
mov eax, dword [0x4650f0]
xor eax, esp
push eax
lea eax, [esp + 0x860]
mov dword fs:[0], eax
mov edi, ecx
push str.Modifying_start_path_if_required._Initial_install_path_is
lea ecx, [esp + 0x38]
mov dword [esp + 0x28], edi
call fcn.004010e0
add edi, 0x10
push edi
lea ecx, [esp + 0x40]
push ecx
mov ecx, eax
mov dword [esp + 0x870], 0
call fcn.004011f0
lea esi, [eax + 4]
mov byte [esp + 0x868], 1
mov eax, dword [esi]
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x4095e0
mov edx, dword [eax + 4]
push edx
mov ecx, esi
call fcn.00401df0
mov esi, dword [esi]
push esi
push 1
call fcn.00411380
add esp, 8
lea ecx, [esp + 0x3c]
mov byte [esp + 0x868], 0
call fcn.00411520
or esi, 0xffffffff
lea ecx, [esp + 0x34]
mov dword [esp + 0x868], esi
call fcn.00411520
push edi
lea ecx, [esp + 0x18]
call fcn.00401050
mov dword [esp + 0x868], 2
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx - 0xc]
lea eax, [esi + 1]
test eax, eax
jl 0x40985b
cmp eax, edx
jge 0x40985b
lea eax, [ecx + eax*2]
push 0x25
push eax
call fcn.0043358e
add esp, 8
test eax, eax
je 0x40985b
mov ecx, dword [esp + 0x18]
sub eax, ecx
sar eax, 1
mov edi, eax
cmp edi, 0xffffffff
je 0x40985b
cmp edi, esi
je 0x40985b
mov eax, dword [ecx - 0xc]
lea ebx, [edi + 1]
test ebx, ebx
jl 0x40969b
cmp ebx, eax
jge 0x40969b
lea ecx, [ecx + ebx*2]
push 0x25
push ecx
call fcn.0043358e
add esp, 8
test eax, eax
je 0x40969b
sub eax, dword [esp + 0x18]
sar eax, 1
mov esi, eax
jmp 0x40969e
or esi, 0xffffffff
mov edx, esi
sub edx, edi
sub edx, 1
push edx
push ebx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x20]
call fcn.004085a0
mov byte [esp + 0x868], 3
mov eax, dword [esp + 0x38]
cmp dword [eax - 4], 1
jle 0x4096d8
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00401df0
mov eax, dword [esp + 0x38]
push 0x3e8
lea edx, [esp + 0x88]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jbe 0x409842
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x40]
call fcn.004010e0
mov byte [esp + 0x868], 4
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
sub eax, esi
sub eax, 1
push eax
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x1c]
call fcn.004084a0
mov esi, eax
push edi
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x870], 5
call fcn.004083b0
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x68]
push edx
mov ecx, eax
mov byte [esp + 0x870], 6
call fcn.004011f0
push esi
lea ecx, [esp + 0x60]
push ecx
mov ecx, eax
mov byte [esp + 0x870], 7
call fcn.004011f0
mov byte [esp + 0x868], 8
mov ecx, dword [eax + 4]
mov esi, dword [esp + 0x18]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x4097d5
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x4097c7
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4097c7
push eax
call fcn.00401fb0
mov dword [esp + 0x2c], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4097ba
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x28]
add ecx, 0x10
mov dword [esp + 0x18], ecx
jmp 0x4097d5
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00401eb0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x868], 7
call fcn.00411520
lea ecx, [esp + 0x64]
mov byte [esp + 0x868], 6
call fcn.00411520
lea ecx, [esp + 0x2c]
mov byte [esp + 0x868], 5
call fcn.00411520
lea ecx, [esp + 0x1c]
mov byte [esp + 0x868], 4
call fcn.00411520
lea ecx, [esp + 0x3c]
mov byte [esp + 0x868], 3
call fcn.00411520
lea ecx, [esp + 0x34]
mov esi, edi
mov byte [esp + 0x868], 2
call fcn.00411520
jmp 0x409626
lea ecx, [esp + 0x34]
add esi, 1
mov byte [esp + 0x868], 2
call fcn.00411520
jmp 0x409626
mov esi, dword [esp + 0x24]
lea edx, [esp + 0x18]
add esi, 0x10
lea ecx, [esi + 4]
push edx
call fcn.00401d00
push str.Final_start_path_is
lea ecx, [esp + 0x30]
call fcn.004010e0
push esi
lea ecx, [esp + 0x20]
push ecx
mov bl, 9
mov ecx, eax
mov byte [esp + 0x870], bl
call fcn.004011f0
lea edi, [eax + 4]
mov byte [esp + 0x868], 0xa
mov eax, dword [edi]
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x4098b4
mov edx, dword [eax + 4]
push edx
mov ecx, edi
call fcn.00401df0
mov edi, dword [edi]
push edi
push 1
call fcn.00411380
add esp, 8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x868], bl
call fcn.00411520
lea ecx, [esp + 0x2c]
mov byte [esp + 0x868], 2
call fcn.00411520
sub esp, 8
mov ecx, esp
mov dword [esp + 0x30], esp
push esi
call fcn.00401050
lea ecx, [esp + 0x74]
call fcn.00414e80
lea ecx, [esp + 0x44]
mov byte [esp + 0x868], 0xb
call fcn.0041a320
push 0
mov byte [esp + 0x86c], 0xc
call fcn.004335b0
add esp, 4
mov dword [esp + 0x48], eax
call sub.WINMM.dll_timeGetTime
mov dword [esp + 0x4c], eax
call fcn.0041a2b0
push str.Waiting_to_start_executable:
lea ecx, [esp + 0x30]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edx
call fcn.004010e0
push esi
lea ecx, [esp + 0x20]
push ecx
mov bl, 0xd
mov ecx, eax
mov byte [esp + 0x870], bl
call fcn.004011f0
lea esi, [eax + 4]
mov byte [esp + 0x868], 0xe
mov eax, dword [esi]
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x40997c
mov edx, dword [eax + 4]
push edx
mov ecx, esi
call fcn.00401df0
mov esi, dword [esi]
push esi
push 5
call fcn.00411380
add esp, 8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x868], bl
call fcn.00411520
lea ecx, [esp + 0x2c]
mov byte [esp + 0x868], 0xc
call fcn.00411520
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [esp + 0x4c]
call sub.WINMM.dll_timeGetTime
mov edi, dword [esp + 0x24]
sub eax, esi
cmp eax, dword [edi + 0x18]
jae 0x409a93
lea ecx, [esp + 0x6c]
call fcn.00414ab0
test eax, eax
jne 0x4099db
push 0x64
call ebx
jmp 0x4099b0
push str.Starting_executable:
lea ecx, [esp + 0x30]
call fcn.004010e0
lea edx, [edi + 0x10]
push edx
lea ecx, [esp + 0x20]
push ecx
mov bl, 0xf
mov ecx, eax
mov byte [esp + 0x870], bl
call fcn.004011f0
lea esi, [eax + 4]
mov byte [esp + 0x868], 0x10
mov eax, dword [esi]
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x409a23
mov edx, dword [eax + 4]
push edx
mov ecx, esi
call fcn.00401df0
mov esi, dword [esi]
push esi
push 5
call fcn.00411380
add esp, 8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x868], bl
call fcn.00411520
lea ecx, [esp + 0x2c]
mov byte [esp + 0x868], 0xc
call fcn.00411520
push 0
sub esp, 8
add edi, 8
mov ecx, esp
mov dword [esp + 0x34], esp
push edi
call fcn.00401050
sub esp, 8
mov eax, esp
mov dword [esp + 0x38], esp
push eax
lea ecx, [esp + 0x84]
mov byte [esp + 0x880], 0x11
call fcn.00402220
mov byte [esp + 0x87c], 0xc
call fcn.0041a4a0
add esp, 0x14
push str.Executable_start_attempt_finished.
lea ecx, [esp + 0x20]
call fcn.004010e0
lea esi, [eax + 4]
mov byte [esp + 0x868], 0x12
mov eax, dword [esi]
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x409ac2
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
call fcn.00401df0
mov esi, dword [esi]
push esi
push 5
call fcn.00411380
add esp, 8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x868], 0xc
call fcn.00411520
lea ecx, [esp + 0x44]
mov byte [esp + 0x868], 0xb
call fcn.0041a290
mov byte [esp + 0x868], 2
lea ecx, [esp + 0x74]
mov dword [esp + 0x6c], vtable.CPBasePath.0
call fcn.00411520
lea ecx, [esp + 0x14]
mov dword [esp + 0x868], 0xffffffff
call fcn.00411520
xor eax, eax
mov ecx, dword [esp + 0x860]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x848]
xor ecx, esp
call fcn.00433122
mov esp, ebp
pop ebp
ret