Function at 0x409390
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44a251
mov eax, dword fs:[0]
push eax
sub esp, 0x850
mov eax, dword [0x4630d0]
xor eax, esp
mov dword [esp + 0x848], eax
push ebx
push esi
push edi
mov eax, dword [0x4630d0]
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 0x409420
mov edx, dword [eax + 4]
push edx
mov ecx, esi
call fcn.00401c20
mov esi, dword [esi]
push esi
push 1
call fcn.0040ebf0
add esp, 8
lea ecx, [esp + 0x3c]
mov byte [esp + 0x868], 0
call fcn.0040ed90
or esi, 0xffffffff
lea ecx, [esp + 0x34]
mov dword [esp + 0x868], esi
call fcn.0040ed90
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 0x40969b
cmp eax, edx
jge 0x40969b
lea eax, [ecx + eax*2]
push 0x25
push eax
call fcn.00431e30
add esp, 8
test eax, eax
je 0x40969b
mov ecx, dword [esp + 0x18]
sub eax, ecx
sar eax, 1
mov edi, eax
cmp edi, 0xffffffff
je 0x40969b
cmp edi, esi
je 0x40969b
mov eax, dword [ecx - 0xc]
lea ebx, [edi + 1]
test ebx, ebx
jl 0x4094db
cmp ebx, eax
jge 0x4094db
lea ecx, [ecx + ebx*2]
push 0x25
push ecx
call fcn.00431e30
add esp, 8
test eax, eax
je 0x4094db
sub eax, dword [esp + 0x18]
sar eax, 1
mov esi, eax
jmp 0x4094de
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.004083e0
mov byte [esp + 0x868], 3
mov eax, dword [esp + 0x38]
cmp dword [eax - 4], 1
jle 0x409518
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00401c20
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 0x409682
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.004082e0
mov esi, eax
push edi
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x870], 5
call fcn.004081f0
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 0x409615
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x409607
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x409607
push eax
call fcn.00401de0
mov dword [esp + 0x2c], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4095fa
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 0x409615
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00401ce0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x868], 7
call fcn.0040ed90
lea ecx, [esp + 0x64]
mov byte [esp + 0x868], 6
call fcn.0040ed90
lea ecx, [esp + 0x2c]
mov byte [esp + 0x868], 5
call fcn.0040ed90
lea ecx, [esp + 0x1c]
mov byte [esp + 0x868], 4
call fcn.0040ed90
lea ecx, [esp + 0x3c]
mov byte [esp + 0x868], 3
call fcn.0040ed90
lea ecx, [esp + 0x34]
mov esi, edi
mov byte [esp + 0x868], 2
call fcn.0040ed90
jmp 0x409466
lea ecx, [esp + 0x34]
add esi, 1
mov byte [esp + 0x868], 2
call fcn.0040ed90
jmp 0x409466
mov esi, dword [esp + 0x24]
lea edx, [esp + 0x18]
add esi, 0x10
lea ecx, [esi + 4]
push edx
call fcn.00401b30
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 0x4096f4
mov edx, dword [eax + 4]
push edx
mov ecx, edi
call fcn.00401c20
mov edi, dword [edi]
push edi
push 1
call fcn.0040ebf0
add esp, 8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x868], bl
call fcn.0040ed90
lea ecx, [esp + 0x2c]
mov byte [esp + 0x868], 2
call fcn.0040ed90
sub esp, 8
mov ecx, esp
mov dword [esp + 0x30], esp
push esi
call fcn.00401050
lea ecx, [esp + 0x74]
call fcn.00416f80
lea ecx, [esp + 0x44]
mov byte [esp + 0x868], 0xb
call fcn.00418b20
push 0
mov byte [esp + 0x86c], 0xc
call fcn.00431e52
add esp, 4
mov dword [esp + 0x48], eax
call sub.WINMM.dll_timeGetTime
mov dword [esp + 0x4c], eax
call fcn.00418ab0
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 0x4097bc
mov edx, dword [eax + 4]
push edx
mov ecx, esi
call fcn.00401c20
mov esi, dword [esi]
push esi
push 5
call fcn.0040ebf0
add esp, 8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x868], bl
call fcn.0040ed90
lea ecx, [esp + 0x2c]
mov byte [esp + 0x868], 0xc
call fcn.0040ed90
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 0x4098d3
lea ecx, [esp + 0x6c]
call fcn.00416c60
test eax, eax
jne 0x40981b
push 0x64
call ebx
jmp 0x4097f0
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 0x409863
mov edx, dword [eax + 4]
push edx
mov ecx, esi
call fcn.00401c20
mov esi, dword [esi]
push esi
push 5
call fcn.0040ebf0
add esp, 8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x868], bl
call fcn.0040ed90
lea ecx, [esp + 0x2c]
mov byte [esp + 0x868], 0xc
call fcn.0040ed90
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.00402060
mov byte [esp + 0x87c], 0xc
call fcn.00418ca0
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 0x409902
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
call fcn.00401c20
mov esi, dword [esi]
push esi
push 5
call fcn.0040ebf0
add esp, 8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x868], 0xc
call fcn.0040ed90
lea ecx, [esp + 0x44]
mov byte [esp + 0x868], 0xb
call fcn.00418a90
mov byte [esp + 0x868], 2
lea ecx, [esp + 0x74]
mov dword [esp + 0x6c], vtable.CPBasePath.0
call fcn.0040ed90
lea ecx, [esp + 0x14]
mov dword [esp + 0x868], 0xffffffff
call fcn.0040ed90
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.00431df7
mov esp, ebp
pop ebp
ret