Function at 0x409360
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44a3d1
mov eax, dword fs:[0]
push eax
sub esp, 0x850
mov eax, dword [0x4630c8]
xor eax, esp
mov dword [esp + 0x848], eax
push ebx
push esi
push edi
mov eax, dword [0x4630c8]
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 0x4093f0
mov edx, dword [eax + 4]
push edx
mov ecx, esi
call fcn.00401bf0
mov esi, dword [esi]
push esi
push 1
call fcn.00410650
add esp, 8
lea ecx, [esp + 0x3c]
mov byte [esp + 0x868], 0
call fcn.0040ec70
or esi, 0xffffffff
lea ecx, [esp + 0x34]
mov dword [esp + 0x868], esi
call fcn.0040ec70
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 0x40966b
cmp eax, edx
jge 0x40966b
lea eax, [ecx + eax*2]
push 0x25
push eax
call fcn.00431f33
add esp, 8
test eax, eax
je 0x40966b
mov ecx, dword [esp + 0x18]
sub eax, ecx
sar eax, 1
mov edi, eax
cmp edi, 0xffffffff
je 0x40966b
cmp edi, esi
je 0x40966b
mov eax, dword [ecx - 0xc]
lea ebx, [edi + 1]
test ebx, ebx
jl 0x4094ab
cmp ebx, eax
jge 0x4094ab
lea ecx, [ecx + ebx*2]
push 0x25
push ecx
call fcn.00431f33
add esp, 8
test eax, eax
je 0x4094ab
sub eax, dword [esp + 0x18]
sar eax, 1
mov esi, eax
jmp 0x4094ae
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.004083b0
mov byte [esp + 0x868], 3
mov eax, dword [esp + 0x38]
cmp dword [eax - 4], 1
jle 0x4094e8
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 0x409652
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.004082b0
mov esi, eax
push edi
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x870], 5
call fcn.004081c0
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 0x4095e5
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x4095d7
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4095d7
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 0x4095ca
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 0x4095e5
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.0040ec70
lea ecx, [esp + 0x64]
mov byte [esp + 0x868], 6
call fcn.0040ec70
lea ecx, [esp + 0x2c]
mov byte [esp + 0x868], 5
call fcn.0040ec70
lea ecx, [esp + 0x1c]
mov byte [esp + 0x868], 4
call fcn.0040ec70
lea ecx, [esp + 0x3c]
mov byte [esp + 0x868], 3
call fcn.0040ec70
lea ecx, [esp + 0x34]
mov esi, edi
mov byte [esp + 0x868], 2
call fcn.0040ec70
jmp 0x409436
lea ecx, [esp + 0x34]
add esi, 1
mov byte [esp + 0x868], 2
call fcn.0040ec70
jmp 0x409436
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 0x4096c4
mov edx, dword [eax + 4]
push edx
mov ecx, edi
call fcn.00401bf0
mov edi, dword [edi]
push edi
push 1
call fcn.00410650
add esp, 8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x868], bl
call fcn.0040ec70
lea ecx, [esp + 0x2c]
mov byte [esp + 0x868], 2
call fcn.0040ec70
sub esp, 8
mov ecx, esp
mov dword [esp + 0x30], esp
push esi
call fcn.00401050
lea ecx, [esp + 0x74]
call fcn.004137c0
lea ecx, [esp + 0x44]
mov byte [esp + 0x868], 0xb
call fcn.00419370
push 0
mov byte [esp + 0x86c], 0xc
call fcn.00431f55
add esp, 4
mov dword [esp + 0x48], eax
call sub.WINMM.dll_timeGetTime
mov dword [esp + 0x4c], eax
call fcn.00419300
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 0x40978c
mov edx, dword [eax + 4]
push edx
mov ecx, esi
call fcn.00401bf0
mov esi, dword [esi]
push esi
push 5
call fcn.00410650
add esp, 8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x868], bl
call fcn.0040ec70
lea ecx, [esp + 0x2c]
mov byte [esp + 0x868], 0xc
call fcn.0040ec70
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 0x4098a3
lea ecx, [esp + 0x6c]
call fcn.004133f0
test eax, eax
jne 0x4097eb
push 0x64
call ebx
jmp 0x4097c0
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 0x409833
mov edx, dword [eax + 4]
push edx
mov ecx, esi
call fcn.00401bf0
mov esi, dword [esi]
push esi
push 5
call fcn.00410650
add esp, 8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x868], bl
call fcn.0040ec70
lea ecx, [esp + 0x2c]
mov byte [esp + 0x868], 0xc
call fcn.0040ec70
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.00402040
mov byte [esp + 0x87c], 0xc
call fcn.00418c70
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 0x4098d2
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
call fcn.00401bf0
mov esi, dword [esi]
push esi
push 5
call fcn.00410650
add esp, 8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x868], 0xc
call fcn.0040ec70
lea ecx, [esp + 0x44]
mov byte [esp + 0x868], 0xb
call fcn.004192e0
mov byte [esp + 0x868], 2
lea ecx, [esp + 0x74]
mov dword [esp + 0x6c], vtable.CPBasePath.0
call fcn.0040ec70
lea ecx, [esp + 0x14]
mov dword [esp + 0x868], 0xffffffff
call fcn.0040ec70
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.00431d0b
mov esp, ebp
pop ebp
ret