Function at 0x100485c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10078c71
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x203c
call fcn.10071bb0
mov eax, dword [0x1009e034]
xor eax, esp
mov dword [esp + 0x2038], eax
push ebx
push esi
push edi
mov eax, dword [0x1009e034]
xor eax, esp
push eax
lea eax, [esp + 0x2050]
mov dword fs:[0], eax
call fcn.1005ebf0
test al, al
jne 0x10048618
mov byte [0x100a2fc4], al
jmp 0x100488b4
xor eax, eax
push 0x7fe
push eax
mov word [esp + 0x84c], ax
lea eax, [esp + 0x84e]
push eax
mov byte [0x100a2fc4], 1
call sub.MSVCR110.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
add esp, 0xc
lea eax, [esp + 0x844]
push 0x400
push eax
push str._ProgramFiles_x86__
call edi
xor eax, eax
push 0x7fe
push eax
mov word [esp + 0x4c], ax
lea eax, [esp + 0x4e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [esp + 0x44]
push 0x400
push eax
push str._ProgramW6432_
call edi
lea eax, [esp + 0x844]
push eax
lea ecx, [esp + 0x18]
call fcn.10008e70
lea eax, [esp + 0x14]
push eax
mov ecx, 0x100a2fbc
mov dword [esp + 0x205c], 0
call fcn.1004a230
cmp word [esp + 0x44], 0
mov esi, eax
jne 0x100486bd
xor ecx, ecx
jmp 0x100486d3
lea ecx, [esp + 0x44]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100486c4
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x48]
push eax
mov ecx, esi
call fcn.10003de0
mov dword [esp + 0x2058], 0xffffffff
cmp dword [esp + 0x28], 8
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
jb 0x10048701
push dword [esp + 0x14]
call esi
add esp, 4
xor eax, eax
push 0x7fe
push eax
mov word [esp + 0x84c], ax
lea eax, [esp + 0x84e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [esp + 0x844]
push 0x400
push eax
push str._CommonProgramFiles_x86__
call edi
xor eax, eax
push 0x7fe
push eax
mov word [esp + 0x4c], ax
lea eax, [esp + 0x4e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [esp + 0x44]
push 0x400
push eax
push str._CommonProgramW6432_
call edi
lea eax, [esp + 0x844]
push eax
lea ecx, [esp + 0x18]
call fcn.10008e70
lea eax, [esp + 0x14]
push eax
mov ecx, 0x100a2fbc
mov dword [esp + 0x205c], 1
call fcn.1004a230
cmp word [esp + 0x44], 0
mov ebx, eax
jne 0x10048799
xor ecx, ecx
jmp 0x100487af
lea ecx, [esp + 0x44]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100487a0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x48]
push eax
mov ecx, ebx
call fcn.10003de0
mov dword [esp + 0x2058], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x100487d7
push dword [esp + 0x14]
call esi
add esp, 4
xor eax, eax
push 0x7fe
push eax
mov word [esp + 0x184c], ax
lea eax, [esp + 0x184e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [esp + 0x1844]
push 0x400
push eax
push str._windir_SysWOW64
call edi
xor eax, eax
push 0x7fe
push eax
mov word [esp + 0x104c], ax
lea eax, [esp + 0x104e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [esp + 0x1044]
push 0x400
push eax
push str._windir_System32
call edi
lea eax, [esp + 0x1844]
push eax
lea ecx, [esp + 0x30]
call fcn.10008e70
lea eax, [esp + 0x2c]
push eax
mov ecx, 0x100a2fbc
mov dword [esp + 0x205c], 2
call fcn.1004a230
cmp word [esp + 0x1044], 0
mov edi, eax
jne 0x1004887b
xor ecx, ecx
jmp 0x10048894
lea ecx, [esp + 0x1044]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10048885
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x1048]
push eax
mov ecx, edi
call fcn.10003de0
cmp dword [esp + 0x40], 8
jb 0x100488b4
push dword [esp + 0x2c]
call esi
add esp, 4
mov ecx, dword [esp + 0x2050]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2038]
xor ecx, esp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret