Function at 0x409392
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x4236b6
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x42a0d0]
xor eax, esp
mov dword [esp + 0xbc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42a0d0]
xor eax, esp
push eax
lea eax, [esp + 0xd4]
mov dword fs:[0], eax
mov ebx, dword [esp + 0xe4]
push 0x4a
push str.NVSTINST_INFO_:__d
call fcn.0040a7c0
push ebx
push 0x42517c
call fcn.0040a7c0
add esp, 0x10
lea ecx, [esp + 0x9c]
call fcn.00407f50
xor ebp, ebp
lea ecx, [esp + 0x4c]
mov dword [esp + 0xdc], ebp
call fcn.00407f50
lea ecx, [esp + 0x18]
mov byte [esp + 0xdc], 1
call fcn.00407f50
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push 0x104
push 0x433d30
push str._SystemRoot_
mov byte [esp + 0xe8], 2
call esi
push 0x104
push 0x433e38
push str._TEMP_
call esi
push 0x104
push 0x433820
push str._windir_inf
call esi
call fcn.004090f0
test al, al
jne 0x4094ac
push 0x4b
push str.NVSTINST_INFO_:__d
call fcn.0040a7c0
add esp, 8
lea ecx, [esp + 0x34]
call fcn.00407cc0
mov esi, 0x10
cmp dword [esp + 0x30], esi
jb 0x409459
mov eax, dword [esp + 0x1c]
push eax
call fcn.0040d4b6
add esp, 4
mov edi, 0xf
lea ecx, [esp + 0x68]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebp
mov byte [esp + 0x1c], 0
call fcn.00407cc0
cmp dword [esp + 0x64], esi
jb 0x409487
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0040d4b6
add esp, 4
lea ecx, [esp + 0xb8]
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebp
mov byte [esp + 0x50], 0
call fcn.00407cc0
cmp dword [esp + 0xb4], esi
jmp 0x409ab8
mov ecx, dword [0x434064]
mov edi, dword [0x434060]
sub ecx, edi
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
xor esi, esi
add eax, edx
je 0x40956d
xor ebp, ebp
cmp esi, eax
jb 0x4094e4
call fcn.0040ebad
mov edi, dword [0x434060]
cmp dword [edi + ebp + 0x18], 0x10
jb 0x4094f1
mov edi, dword [edi + ebp + 4]
jmp 0x4094f5
lea edi, [edi + ebp + 4]
push ebx
push edi
call fcn.0040db62
mov ecx, dword [0x434064]
add esp, 8
test eax, eax
mov eax, 0x4ec4ec4f
je 0x40952c
mov edi, dword [0x434060]
sub ecx, edi
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
add ebp, 0x34
cmp esi, eax
jb 0x4094e4
jmp 0x40956b
sub ecx, dword [0x434060]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x409547
call fcn.0040ebad
imul esi, esi, 0x34
add esi, dword [0x434060]
push 0xffffffffffffffff
push 0
push esi
lea ecx, [esp + 0x24]
call fcn.004072e0
add esi, 0x1c
push esi
lea ecx, [esp + 0x38]
call fcn.00408100
xor ebp, ebp
cmp dword [esp + 0x2c], ebp
jne 0x4096d1
push 0x4c
push str.NVSTINST_INFO_:__d
call fcn.0040a7c0
mov eax, dword [esp + 0x48]
add esp, 8
cmp eax, ebp
je 0x4095b0
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x48]
lea edx, [esp + 0x40]
push edx
push ecx
push eax
call fcn.00407740
mov edx, dword [esp + 0x50]
push edx
call fcn.0040d4b6
add esp, 0x14
mov eax, dword [esp + 0x34]
push eax
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
call fcn.0040d4b6
mov edi, 0x10
add esp, 4
cmp dword [esp + 0x30], edi
jb 0x4095e1
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0040d4b6
add esp, 4
mov eax, dword [esp + 0x74]
mov esi, 0xf
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebp
mov byte [esp + 0x1c], 0
cmp eax, ebp
je 0x409620
mov edx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x7c]
lea ecx, [esp + 0x74]
push ecx
push edx
push eax
call fcn.00407740
mov eax, dword [esp + 0x84]
push eax
call fcn.0040d4b6
add esp, 0x14
mov ecx, dword [esp + 0x68]
push ecx
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x80], ebp
call fcn.0040d4b6
add esp, 4
cmp dword [esp + 0x64], edi
jb 0x40964f
mov edx, dword [esp + 0x50]
push edx
call fcn.0040d4b6
add esp, 4
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], ebp
mov byte [esp + 0x50], 0
cmp eax, ebp
je 0x409692
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0xcc]
lea edx, [esp + 0xc4]
push edx
push ecx
push eax
call fcn.00407740
mov edx, dword [esp + 0xd4]
push edx
call fcn.0040d4b6
add esp, 0x14
mov eax, dword [esp + 0xb8]
push eax
mov dword [esp + 0xc8], ebp
mov dword [esp + 0xcc], ebp
mov dword [esp + 0xd0], ebp
call fcn.0040d4b6
add esp, 4
cmp dword [esp + 0xb4], edi
jb 0x409aca
mov ecx, dword [esp + 0xa0]
push ecx
jmp 0x409ac2
mov ecx, dword [esp + 0x44]
sub ecx, dword [esp + 0x40]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
xor esi, esi
add eax, edx
je 0x409821
xor edi, edi
cmp esi, eax
jb 0x4096ff
call fcn.0040ebad
mov edx, dword [esp + 0x40]
push 0xffffffffffffffff
lea eax, [edi + edx]
push ebp
push eax
lea ecx, [esp + 0x8c]
mov dword [esp + 0xa4], 0xf
mov dword [esp + 0xa0], ebp
mov byte [esp + 0x90], 0
call fcn.004072e0
mov eax, dword [esp + 0x84]
mov ebx, 0x10
mov byte [esp + 0xdc], 3
cmp dword [esp + 0x98], ebx
jae 0x409754
lea eax, [esp + 0x84]
push 9
push str.DelFiles
push eax
call fcn.0040e9f2
add esp, 0xc
test eax, eax
mov eax, dword [esp + 0x84]
jne 0x40978d
cmp dword [esp + 0x98], ebx
jae 0x40977f
lea eax, [esp + 0x84]
add eax, 9
push eax
lea eax, [esp + 0xa0]
push eax
jmp 0x4097d1
cmp dword [esp + 0x98], ebx
jae 0x40979d
lea eax, [esp + 0x84]
push 7
push str.DelReg
push eax
call fcn.0040e9f2
add esp, 0xc
test eax, eax
jne 0x4097d9
mov eax, dword [esp + 0x84]
cmp dword [esp + 0x98], ebx
jae 0x4097c8
lea eax, [esp + 0x84]
add eax, 7
push eax
lea ecx, [esp + 0x50]
push ecx
call fcn.00408a10
add esp, 8
mov byte [esp + 0xdc], 2
cmp dword [esp + 0x98], ebx
jb 0x4097fa
mov edx, dword [esp + 0x84]
push edx
call fcn.0040d4b6
add esp, 4
mov ecx, dword [esp + 0x44]
sub ecx, dword [esp + 0x40]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
add edi, 0x1c
cmp esi, eax
jb 0x4096ff
push 0x4d
push str.NVSTINST_INFO_:__d
call fcn.0040a7c0
mov ecx, dword [esp + 0xd0]
mov esi, dword [esp + 0xcc]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add esp, 8
xor edi, edi
xor ebx, ebx
add eax, edx
je 0x4098c2
xor ebp, ebp
cmp edi, eax
jb 0x40986b
call fcn.0040ebad
mov esi, dword [esp + 0xc4]
cmp dword [esi + ebp + 0x18], 0x10
jb 0x409878
mov esi, dword [esi + ebp + 4]
jmp 0x40987c
lea esi, [esi + ebp + 4]
push str.nvstinst.exe
push esi
call fcn.0040db62
add esp, 8
test eax, eax
je 0x409897
push esi
call fcn.004069f0
add esp, 4
mov ecx, dword [esp + 0xc8]
mov esi, dword [esp + 0xc4]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
add ebp, 0x1c
cmp edi, eax
jb 0x40986b
mov ecx, dword [esp + 0x78]
mov esi, dword [esp + 0x74]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
xor edi, edi
add eax, edx
je 0x409931
xor ebp, ebp
cmp edi, eax
jb 0x4098f2
call fcn.0040ebad
mov esi, dword [esp + 0x74]
cmp dword [esi + ebp + 0x18], 0x10
jb 0x4098ff
mov esi, dword [esi + ebp + 4]
jmp 0x409903
lea esi, [esi + ebp + 4]
push esi
call fcn.00406b20
mov ecx, dword [esp + 0x7c]
mov esi, dword [esp + 0x78]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
add esp, 4
add ebp, 0x1c
cmp edi, eax
jb 0x4098f2
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x409979
mov edi, dword [esp + 0x44]
cmp eax, edi
je 0x409970
lea esi, [eax + 0x18]
cmp dword [esi], 0x10
jb 0x409955
mov eax, dword [esi - 0x14]
push eax
call fcn.0040d4b6
add esp, 4
mov dword [esi], 0xf
mov dword [esi - 4], ebx
mov byte [esi - 0x14], 0
add esi, 0x1c
lea ecx, [esi - 0x18]
cmp ecx, edi
jne 0x409944
mov eax, dword [esp + 0x40]
push eax
call fcn.0040d4b6
add esp, 4
mov edx, dword [esp + 0x34]
push edx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call fcn.0040d4b6
add esp, 4
cmp dword [esp + 0x30], 0x10
jb 0x4099a6
mov eax, dword [esp + 0x1c]
push eax
call fcn.0040d4b6
add esp, 4
mov eax, dword [esp + 0x74]
mov ebp, 0xf
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], 0
cmp eax, ebx
je 0x409a01
mov edi, dword [esp + 0x78]
cmp eax, edi
je 0x4099f8
lea esi, [eax + 0x18]
jmp 0x4099d0
cmp dword [esi], 0x10
jb 0x4099e1
mov ecx, dword [esi - 0x14]
push ecx
call fcn.0040d4b6
add esp, 4
mov dword [esi], ebp
mov dword [esi - 4], ebx
mov byte [esi - 0x14], 0
add esi, 0x1c
lea edx, [esi - 0x18]
cmp edx, edi
jne 0x4099d0
mov eax, dword [esp + 0x74]
push eax
call fcn.0040d4b6
add esp, 4
mov eax, dword [esp + 0x68]
push eax
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
call fcn.0040d4b6
add esp, 4
cmp dword [esp + 0x64], 0x10
jb 0x409a31
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0040d4b6
add esp, 4
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x64], ebp
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], 0
cmp eax, ebx
je 0x409a8b
mov edi, dword [esp + 0xc8]
cmp eax, edi
je 0x409a82
lea esi, [eax + 0x18]
cmp dword [esi], 0x10
jb 0x409a68
mov edx, dword [esi - 0x14]
push edx
call fcn.0040d4b6
add esp, 4
mov dword [esi], ebp
mov dword [esi - 4], ebx
mov byte [esi - 0x14], 0
add esi, 0x1c
lea eax, [esi - 0x18]
cmp eax, edi
jne 0x409a57
mov eax, dword [esp + 0xc4]
push eax
call fcn.0040d4b6
add esp, 4
mov ecx, dword [esp + 0xb8]
push ecx
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xd0], ebx
call fcn.0040d4b6
add esp, 4
cmp dword [esp + 0xb4], 0x10
jb 0x409aca
mov edx, dword [esp + 0xa0]
push edx
call fcn.0040d4b6
add esp, 4
mov ecx, dword [esp + 0xd4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xbc]
xor ecx, esp
call fcn.0040d609
add esp, 0xcc
ret