Function at 0x409380
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44a3f1
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 0x409410
mov edx, dword [eax + 4]
push edx
mov ecx, esi
call fcn.00401bf0
mov esi, dword [esi]
push esi
push 1
call fcn.00410660
add esp, 8
lea ecx, [esp + 0x3c]
mov byte [esp + 0x868], 0
call fcn.0040fd60
or esi, 0xffffffff
lea ecx, [esp + 0x34]
mov dword [esp + 0x868], esi
call fcn.0040fd60
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 0x40968b
cmp eax, edx
jge 0x40968b
lea eax, [ecx + eax*2]
push 0x25
push eax
call fcn.00431f62
add esp, 8
test eax, eax
je 0x40968b
mov ecx, dword [esp + 0x18]
sub eax, ecx
sar eax, 1
mov edi, eax
cmp edi, 0xffffffff
je 0x40968b
cmp edi, esi
je 0x40968b
mov eax, dword [ecx - 0xc]
lea ebx, [edi + 1]
test ebx, ebx
jl 0x4094cb
cmp ebx, eax
jge 0x4094cb
lea ecx, [ecx + ebx*2]
push 0x25
push ecx
call fcn.00431f62
add esp, 8
test eax, eax
je 0x4094cb
sub eax, dword [esp + 0x18]
sar eax, 1
mov esi, eax
jmp 0x4094ce
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.004083d0
mov byte [esp + 0x868], 3
mov eax, dword [esp + 0x38]
cmp dword [eax - 4], 1
jle 0x409508
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00401bf0
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 0x409672
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.004082d0
mov esi, eax
push edi
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x870], 5
call fcn.004081e0
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 0x409605
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x4095f7
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4095f7
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 0x4095ea
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 0x409605
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.0040fd60
lea ecx, [esp + 0x64]
mov byte [esp + 0x868], 6
call fcn.0040fd60
lea ecx, [esp + 0x2c]
mov byte [esp + 0x868], 5
call fcn.0040fd60
lea ecx, [esp + 0x1c]
mov byte [esp + 0x868], 4
call fcn.0040fd60
lea ecx, [esp + 0x3c]
mov byte [esp + 0x868], 3
call fcn.0040fd60
lea ecx, [esp + 0x34]
mov esi, edi
mov byte [esp + 0x868], 2
call fcn.0040fd60
jmp 0x409456
lea ecx, [esp + 0x34]
add esi, 1
mov byte [esp + 0x868], 2
call fcn.0040fd60
jmp 0x409456
mov esi, dword [esp + 0x24]
lea edx, [esp + 0x18]
add esi, 0x10
lea ecx, [esi + 4]
push edx
call fcn.00401b00
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 0x4096e4
mov edx, dword [eax + 4]
push edx
mov ecx, edi
call fcn.00401bf0
mov edi, dword [edi]
push edi
push 1
call fcn.00410660
add esp, 8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x868], bl
call fcn.0040fd60
lea ecx, [esp + 0x2c]
mov byte [esp + 0x868], 2
call fcn.0040fd60
sub esp, 8
mov ecx, esp
mov dword [esp + 0x30], esp
push esi
call fcn.00401050
lea ecx, [esp + 0x74]
call fcn.00413050
lea ecx, [esp + 0x44]
mov byte [esp + 0x868], 0xb
call fcn.00418c70
push 0
mov byte [esp + 0x86c], 0xc
call fcn.00431f84
add esp, 4
mov dword [esp + 0x48], eax
call sub.WINMM.dll_timeGetTime
mov dword [esp + 0x4c], eax
call fcn.00418c00
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 0x4097ac
mov edx, dword [eax + 4]
push edx
mov ecx, esi
call fcn.00401bf0
mov esi, dword [esi]
push esi
push 5
call fcn.00410660
add esp, 8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x868], bl
call fcn.0040fd60
lea ecx, [esp + 0x2c]
mov byte [esp + 0x868], 0xc
call fcn.0040fd60
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 0x4098c3
lea ecx, [esp + 0x6c]
call fcn.00412cc0
test eax, eax
jne 0x40980b
push 0x64
call ebx
jmp 0x4097e0
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 0x409853
mov edx, dword [eax + 4]
push edx
mov ecx, esi
call fcn.00401bf0
mov esi, dword [esi]
push esi
push 5
call fcn.00410660
add esp, 8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x868], bl
call fcn.0040fd60
lea ecx, [esp + 0x2c]
mov byte [esp + 0x868], 0xc
call fcn.0040fd60
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.00418df0
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 0x4098f2
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
call fcn.00401bf0
mov esi, dword [esi]
push esi
push 5
call fcn.00410660
add esp, 8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x868], 0xc
call fcn.0040fd60
lea ecx, [esp + 0x44]
mov byte [esp + 0x868], 0xb
call fcn.00418be0
mov byte [esp + 0x868], 2
lea ecx, [esp + 0x74]
mov dword [esp + 0x6c], vtable.CPBasePath.0
call fcn.0040fd60
lea ecx, [esp + 0x14]
mov dword [esp + 0x868], 0xffffffff
call fcn.0040fd60
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.00431d07
mov esp, ebp
pop ebp
ret