Function at 0x43a920
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51d231
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1124
call fcn.0050f9a0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov edi, dword [ebp + 8]
movzx eax, word [edi]
test ax, ax
je 0x43b2f6
cmp eax, 0x2a
jne 0x43a96f
cmp word [edi + 2], 0
je 0x43b2f6
push 0x25
push edi
call dword [sym.imp.MSVCR100.dll_wcschr]
add esp, 8
test eax, eax
je 0x43b1fd
mov eax, edi
lea ecx, [ebp - 0x4c]
call fcn.0040fae0
mov ebx, 1
mov byte [ebp - 4], bl
cmp byte [0x56feff], 0
je 0x43a9a3
call fcn.0043a170
mov eax, str._bin_
lea ecx, [ebp - 0x2c]
call fcn.0040fae0
mov byte [ebp - 4], 2
push 0x5727e0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x68]
push edx
call fcn.004f0670
add esp, 0x10
mov byte [ebp - 4], 3
mov edi, eax
lea esi, [ebp - 0x4c]
call fcn.00411aa0
mov byte [ebp - 4], 2
lea esi, [ebp - 0x68]
call fcn.004150b0
mov byte [ebp - 4], bl
lea esi, [ebp - 0x2c]
call fcn.004150b0
mov eax, str._bint_
lea ecx, [ebp - 0x2c]
call fcn.0040fae0
mov byte [ebp - 4], 4
push 0x5727fc
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x68]
push edx
call fcn.004f0670
add esp, 0x10
mov byte [ebp - 4], 5
mov edi, eax
lea esi, [ebp - 0x4c]
call fcn.00411aa0
mov byte [ebp - 4], 4
lea esi, [ebp - 0x68]
call fcn.004150b0
mov byte [ebp - 4], bl
lea esi, [ebp - 0x2c]
call fcn.004150b0
mov eax, str._usr_
lea ecx, [ebp - 0x2c]
call fcn.0040fae0
mov byte [ebp - 4], 6
push 0x5726c8
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x68]
push edx
call fcn.004f0670
add esp, 0x10
mov byte [ebp - 4], 7
mov edi, eax
lea esi, [ebp - 0x4c]
call fcn.00411aa0
mov byte [ebp - 4], 6
lea esi, [ebp - 0x68]
call fcn.004150b0
mov byte [ebp - 4], bl
lea esi, [ebp - 0x2c]
call fcn.004150b0
mov eax, str._pdata_
lea ecx, [ebp - 0x2c]
call fcn.0040fae0
mov byte [ebp - 4], 8
push 0x5726e4
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x68]
push edx
call fcn.004f0670
add esp, 0x10
mov byte [ebp - 4], 9
mov edi, eax
lea esi, [ebp - 0x4c]
call fcn.00411aa0
mov byte [ebp - 4], 8
lea esi, [ebp - 0x68]
call fcn.004150b0
mov byte [ebp - 4], bl
lea esi, [ebp - 0x2c]
call fcn.004150b0
mov eax, str._pgm_
lea ecx, [ebp - 0x2c]
call fcn.0040fae0
mov byte [ebp - 4], 0xa
push 0x572700
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x68]
push edx
call fcn.004f0670
add esp, 0x10
mov byte [ebp - 4], 0xb
mov edi, eax
lea esi, [ebp - 0x4c]
call fcn.00411aa0
mov byte [ebp - 4], 0xa
lea esi, [ebp - 0x68]
call fcn.004150b0
mov byte [ebp - 4], bl
lea esi, [ebp - 0x2c]
call fcn.004150b0
mov eax, str._dpgm_
lea ecx, [ebp - 0x2c]
call fcn.0040fae0
mov byte [ebp - 4], 0xc
push 0x572700
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x68]
push edx
call fcn.004f0670
add esp, 0x10
mov byte [ebp - 4], 0xd
mov edi, eax
lea esi, [ebp - 0x4c]
call fcn.00411aa0
mov byte [ebp - 4], 0xc
lea esi, [ebp - 0x68]
call fcn.004150b0
mov byte [ebp - 4], bl
lea esi, [ebp - 0x2c]
call fcn.004150b0
mov eax, str._epgm_
lea ecx, [ebp - 0x2c]
call fcn.0040fae0
mov byte [ebp - 4], 0xe
push 0x572700
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x68]
push edx
call fcn.004f0670
add esp, 0x10
mov byte [ebp - 4], 0xf
mov edi, eax
lea esi, [ebp - 0x4c]
call fcn.00411aa0
mov byte [ebp - 4], 0xe
lea esi, [ebp - 0x68]
call fcn.004150b0
mov byte [ebp - 4], bl
lea esi, [ebp - 0x2c]
call fcn.004150b0
mov eax, str._epgm_
lea ecx, [ebp - 0x2c]
call fcn.0040fae0
mov byte [ebp - 4], 0x10
push 0x572700
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x68]
push edx
call fcn.004f0670
add esp, 0x10
mov byte [ebp - 4], 0x11
mov edi, eax
lea esi, [ebp - 0x4c]
call fcn.00411aa0
mov byte [ebp - 4], 0x10
lea esi, [ebp - 0x68]
call fcn.004150b0
mov byte [ebp - 4], bl
lea esi, [ebp - 0x2c]
call fcn.004150b0
mov eax, str._win_
lea ecx, [ebp - 0x2c]
call fcn.0040fae0
mov byte [ebp - 4], 0x12
push 0x572690
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x68]
push edx
call fcn.004f0670
add esp, 0x10
mov byte [ebp - 4], 0x13
mov edi, eax
lea esi, [ebp - 0x4c]
call fcn.00411aa0
mov byte [ebp - 4], 0x12
lea esi, [ebp - 0x68]
call fcn.004150b0
mov byte [ebp - 4], bl
lea esi, [ebp - 0x2c]
call fcn.004150b0
mov eax, str._sys_
lea ecx, [ebp - 0x2c]
call fcn.0040fae0
mov byte [ebp - 4], 0x14
push 0x5726ac
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x68]
push edx
call fcn.004f0670
add esp, 0x10
mov byte [ebp - 4], 0x15
mov edi, eax
lea esi, [ebp - 0x4c]
call fcn.00411aa0
mov byte [ebp - 4], 0x14
lea esi, [ebp - 0x68]
call fcn.004150b0
mov byte [ebp - 4], bl
lea esi, [ebp - 0x2c]
call fcn.004150b0
cmp byte [0x1579730], 0
je 0x43aee8
mov eax, str._pgm86_
lea ecx, [ebp - 0x2c]
call fcn.0040fae0
mov byte [ebp - 4], 0x16
push 0x572770
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x68]
push edx
call fcn.004f0670
add esp, 0x10
mov byte [ebp - 4], 0x17
mov edi, eax
lea esi, [ebp - 0x4c]
call fcn.00411aa0
mov byte [ebp - 4], 0x16
lea esi, [ebp - 0x68]
call fcn.004150b0
mov byte [ebp - 4], bl
lea esi, [ebp - 0x2c]
call fcn.004150b0
mov eax, str._dpgm86_
lea ecx, [ebp - 0x2c]
call fcn.0040fae0
mov byte [ebp - 4], 0x18
push 0xffffffffffffffff
lea eax, [ebp - 0xbc]
push eax
mov ecx, 2
mov edx, 0x572770
call fcn.0040fbe0
mov byte [ebp - 4], 0x19
push eax
lea ecx, [ebp - 0x84]
push ecx
mov edx, 0x533bb8
call fcn.00413910
mov byte [ebp - 4], 0x1a
push eax
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x68]
push ecx
call fcn.004f0670
add esp, 0x18
mov byte [ebp - 4], 0x1b
mov edi, eax
lea esi, [ebp - 0x4c]
call fcn.00411aa0
mov byte [ebp - 4], 0x1a
lea esi, [ebp - 0x68]
call fcn.004150b0
mov byte [ebp - 4], 0x19
lea esi, [ebp - 0x84]
call fcn.004150b0
mov byte [ebp - 4], 0x18
lea esi, [ebp - 0xbc]
call fcn.004150b0
mov byte [ebp - 4], bl
lea esi, [ebp - 0x2c]
call fcn.004150b0
mov eax, str._epgm86_
lea ecx, [ebp - 0x2c]
call fcn.0040fae0
mov byte [ebp - 4], 0x1c
push 0xffffffffffffffff
lea edx, [ebp - 0xbc]
push edx
mov ecx, 2
mov edx, 0x572770
call fcn.0040fbe0
mov byte [ebp - 4], 0x1d
push eax
lea eax, [ebp - 0x84]
push eax
mov edx, 0x533bd4
call fcn.00413910
mov byte [ebp - 4], 0x1e
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x68]
push eax
call fcn.004f0670
add esp, 0x18
mov byte [ebp - 4], 0x1f
mov edi, eax
lea esi, [ebp - 0x4c]
call fcn.00411aa0
mov byte [ebp - 4], 0x1e
lea esi, [ebp - 0x68]
call fcn.004150b0
mov byte [ebp - 4], 0x1d
lea esi, [ebp - 0x84]
call fcn.004150b0
mov byte [ebp - 4], 0x1c
lea esi, [ebp - 0xbc]
call fcn.004150b0
mov byte [ebp - 4], bl
lea esi, [ebp - 0x2c]
call fcn.004150b0
mov eax, str._fpgm86_
lea ecx, [ebp - 0x2c]
call fcn.0040fae0
mov byte [ebp - 4], 0x20
push 0xffffffffffffffff
lea ecx, [ebp - 0xbc]
push ecx
mov ecx, 2
mov edx, 0x572770
call fcn.0040fbe0
mov byte [ebp - 4], 0x21
push eax
lea edx, [ebp - 0x84]
push edx
mov edx, 0x533bf0
call fcn.00413910
mov byte [ebp - 4], 0x22
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x68]
push edx
call fcn.004f0670
add esp, 0x18
mov byte [ebp - 4], 0x23
mov edi, eax
lea esi, [ebp - 0x4c]
call fcn.00411aa0
mov byte [ebp - 4], 0x22
lea esi, [ebp - 0x68]
call fcn.004150b0
mov byte [ebp - 4], 0x21
lea esi, [ebp - 0x84]
call fcn.004150b0
mov byte [ebp - 4], 0x20
lea esi, [ebp - 0xbc]
call fcn.004150b0
mov byte [ebp - 4], bl
lea esi, [ebp - 0x2c]
call fcn.004150b0
jmp 0x43af01
push 0
lea eax, [ebp - 0x4c]
push eax
mov edx, str.pgm86_
call fcn.0040fba0
cmp eax, 0xffffffff
jne 0x43b015
push 0
lea ecx, [ebp - 0x4c]
push ecx
mov edx, 0x533c1c
call fcn.0040fba0
mov esi, eax
cmp esi, 0xffffffff
je 0x43b1cd
lea edx, [esi + 1]
push edx
lea eax, [ebp - 0x4c]
push eax
mov edx, 0x533c1c
call fcn.0040fba0
sub eax, esi
add eax, ebx
push eax
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, esi
lea edx, [ebp - 0x4c]
call fcn.0040fbe0
mov byte [ebp - 4], 0x24
mov edx, dword [ebp - 0x90]
add edx, 0xfffffffe
push edx
lea eax, [ebp - 0x2c]
push eax
mov ecx, ebx
lea edx, [ebp - 0xa0]
call fcn.0040fbe0
mov byte [ebp - 4], 0x25
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x43af73
lea eax, [ebp - 0x2c]
push 0x802
lea ecx, [ebp - 0x1130]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, 0x800
jbe 0x43b034
lea edx, [ebp - 0xa0]
push edx
push str.Failed_to_replace__
lea eax, [ebp - 0x84]
push eax
call fcn.00414000
add esp, 0xc
mov byte [ebp - 4], 0x26
push 0x533c20
push eax
lea ecx, [ebp - 0x68]
push ecx
call fcn.004139a0
add esp, 0xc
mov byte [ebp - 4], 0x27
push 0
push 0x20000000
push eax
push 0x11e
push str.FilePathFilterLine::ExpandFilterLine
call fcn.0044d970
add esp, 0x14
mov byte [ebp - 4], 0x26
lea esi, [ebp - 0x68]
call fcn.004150b0
mov byte [ebp - 4], 0x25
lea esi, [ebp - 0x84]
call fcn.004150b0
mov byte [ebp - 4], 0x24
lea esi, [ebp - 0x2c]
call fcn.004150b0
mov byte [ebp - 4], bl
lea esi, [ebp - 0xa0]
call fcn.004150b0
mov byte [ebp - 4], 0
lea esi, [ebp - 0x4c]
call fcn.004150b0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x43b157
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
jne 0x43b0a1
lea edx, [ebp - 0xa0]
push edx
push str.Environment_Variable__
lea eax, [ebp - 0x84]
push eax
call fcn.00414000
add esp, 0xc
mov byte [ebp - 4], 0x28
push str.__not_found
push eax
lea ecx, [ebp - 0x68]
push ecx
call fcn.004139a0
add esp, 0xc
mov byte [ebp - 4], 0x29
push 0
push 0x20000000
push eax
push 0x123
push str.FilePathFilterLine::ExpandFilterLine
call fcn.0044d970
add esp, 0x14
mov byte [ebp - 4], 0x28
jmp 0x43afe4
lea edx, [ebp - 0xf8]
push edx
xor ecx, ecx
call fcn.004f0ed0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0x2a
lea eax, [ebp - 0xa0]
push eax
push str.Failed_to_replace__
lea ecx, [ebp - 0xbc]
push ecx
call fcn.00414000
add esp, 0xc
mov byte [ebp - 4], 0x2b
push 0x533cdc
push eax
lea edx, [ebp - 0x84]
push edx
call fcn.004139a0
add esp, 0xc
mov byte [ebp - 4], 0x2c
lea ecx, [ebp - 0x68]
push ecx
mov edx, esi
mov ecx, eax
call fcn.00413a30
add esp, 4
mov byte [ebp - 4], 0x2d
push 0
push 0x20000000
push eax
push 0x128
push str.FilePathFilterLine::ExpandFilterLine
call fcn.0044d970
add esp, 0x14
mov byte [ebp - 4], 0x2c
lea esi, [ebp - 0x68]
call fcn.004150b0
mov byte [ebp - 4], 0x2b
lea esi, [ebp - 0x84]
call fcn.004150b0
mov byte [ebp - 4], 0x2a
lea esi, [ebp - 0xbc]
call fcn.004150b0
mov byte [ebp - 4], 0x25
lea esi, [ebp - 0xf8]
jmp 0x43aff6
lea eax, [ebp - 0x1130]
lea ecx, [ebp - 0xdc]
call fcn.0040fae0
mov byte [ebp - 4], 0x2e
lea edx, [ebp - 0xdc]
push edx
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x68]
push edx
call fcn.004f0670
add esp, 0x10
mov byte [ebp - 4], 0x2f
mov edi, eax
lea esi, [ebp - 0x4c]
call fcn.00411aa0
mov byte [ebp - 4], 0x2e
lea esi, [ebp - 0x68]
call fcn.004150b0
mov byte [ebp - 4], 0x25
lea esi, [ebp - 0xdc]
call fcn.004150b0
mov byte [ebp - 4], 0x24
lea esi, [ebp - 0x2c]
call fcn.004150b0
mov byte [ebp - 4], bl
lea esi, [ebp - 0xa0]
call fcn.004150b0
cmp dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x4c]
jae 0x43b1d9
lea eax, [ebp - 0x4c]
push eax
push 0x400
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
add esp, 0xc
mov byte [ebp - 4], 0
lea esi, [ebp - 0x4c]
call fcn.004150b0
mov edi, dword [ebp + 8]
jmp 0x43b202
mov ebx, 1
xor esi, esi
mov dword [ebp - 0x30], esi
movzx eax, word [edi + esi*2]
test ax, ax
je 0x43b222
push eax
call dword [sym.imp.MSVCR100.dll_towlower]
add esp, 4
mov word [edi + esi*2], ax
add esi, ebx
jmp 0x43b204
cmp esi, 2
jge 0x43b27a
mov eax, str.Path_must_be_at_least_2_char_long___
lea ecx, [ebp - 0x2c]
call fcn.0040fae0
mov byte [ebp - 4], 0x30
lea ecx, [ebp - 0x2c]
push ecx
mov eax, edi
call fcn.0040fb70
lea edx, [ebp - 0x2c]
push edx
mov eax, str.__is_too_short
call fcn.0040fb70
push 0
push 0x20000000
lea eax, [ebp - 0x2c]
push eax
push 0x13c
push str.FilePathFilterLine::ExpandFilterLine
call fcn.0044d970
add esp, 0x14
mov byte [ebp - 4], 0
lea esi, [ebp - 0x2c]
jmp 0x43b01c
mov eax, 0x5c
cmp word [edi + esi*2 - 4], ax
jne 0x43b28e
cmp word [edi + esi*2 - 2], 0x2a
je 0x43b2e3
cmp word [edi + esi*2 - 2], ax
jne 0x43b2c1
mov ecx, 0x2a
mov word [edi + esi*2], cx
add esi, ebx
mov dword [ebp - 0x30], esi
xor edx, edx
mov word [edi + esi*2], dx
add esi, ebx
mov dword [ebp - 0x30], esi
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov word [edi + esi*2], ax
add esi, ebx
mov dword [ebp - 0x30], esi
mov eax, 0x2a
mov word [edi + esi*2], ax
add esi, ebx
mov dword [ebp - 0x30], esi
xor ecx, ecx
mov word [edi + esi*2], cx
add esi, ebx
mov dword [ebp - 0x30], esi
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret