Function at 0x1006ad30
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x10090477
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x274]
mov dword fs:[0], eax
mov esi, edx
cmp dword [ecx + 0x10], 0
mov eax, dword [esp + 0x284]
mov dword [esp + 0x18], eax
jne 0x1006ad85
xor al, al
jmp 0x1006b11f
xor eax, eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
mov dword [esp + 0x27c], eax
cmp dword [ecx + 0x14], 8
jb 0x1006adbd
mov eax, dword [ecx]
jmp 0x1006adbf
mov eax, ecx
cmp word [eax], 0x40
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jne 0x1006ae56
mov eax, dword [ecx + 0x10]
mov edx, ecx
dec eax
lea ecx, [esp + 0x34]
push eax
call fcn.1000a5b0
add esp, 4
mov ebx, eax
mov byte [esp + 0x27c], 1
lea eax, [esp + 0x1c]
cmp eax, ebx
je 0x1006ae25
cmp dword [esp + 0x30], 8
jb 0x1006ae04
push dword [esp + 0x1c]
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x30], 7
push ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
call fcn.10004a60
mov byte [esp + 0x27c], 0
cmp dword [esp + 0x48], 8
jb 0x1006ae3d
push dword [esp + 0x34]
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
jmp 0x1006ae6a
lea eax, [esp + 0x1c]
cmp eax, ecx
je 0x1006ae6a
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.10003100
xor eax, eax
push 0x206
push eax
mov word [esp + 0x6c], ax
lea eax, [esp + 0x6e]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea ecx, [esp + 0x64]
cmp dword [esp + 0x30], 8
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebp, eax
cmp ebp, 0x104
jb 0x1006af16
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10081b1c
add esp, 4
lea ecx, [esp + 0x1c]
cmp dword [esp + 0x30], 8
mov ebx, eax
cmovae ecx, dword [esp + 0x1c]
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp word [ebx], 0
jne 0x1006aee9
xor ecx, ecx
jmp 0x1006aeff
mov ecx, ebx
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1006aef0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [esp + 0x24]
call fcn.10003000
push ebx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
jmp 0x1006af4e
cmp word [esp + 0x64], 0
jne 0x1006af22
xor ecx, ecx
jmp 0x1006af3f
lea ecx, [esp + 0x64]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1006af30
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x24]
call fcn.10003000
push 2
xor eax, eax
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
lea ecx, [esp + 0x50]
push 0x1009a594
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
call fcn.10003000
mov byte [esp + 0x27c], 2
lea eax, [esp + 0x4c]
push dword [esp + 0x5c]
cmp dword [esp + 0x64], 8
lea ecx, [esp + 0x20]
push 0
cmovae eax, dword [esp + 0x54]
push eax
call fcn.10009b80
mov ebp, eax
cmp ebp, 0xffffffff
je 0x1006b09f
push ebp
lea edx, [esp + 0x20]
lea ecx, [esp + 0x38]
call fcn.1000a530
add esp, 4
mov ebx, eax
mov byte [esp + 0x27c], 3
cmp esi, ebx
je 0x1006affd
cmp dword [esi + 0x14], 8
jb 0x1006afe2
push dword [esi]
call edi
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push ebx
mov word [esi], ax
call fcn.10004a60
mov byte [esp + 0x27c], 2
cmp dword [esp + 0x48], 8
jb 0x1006b015
push dword [esp + 0x34]
call edi
add esp, 4
mov esi, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
test esi, esi
je 0x1006b09b
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x1c]
sub eax, dword [esp + 0x5c]
lea ecx, [esp + 0x34]
sub eax, ebp
push eax
call fcn.1000a5b0
add esp, 4
mov byte [esp + 0x27c], 4
lea ecx, [esp + 0x34]
cmp dword [esp + 0x48], 8
cmovae ecx, dword [esp + 0x34]
call fcn.10009e90
mov dword [esi], eax
mov byte [esp + 0x27c], 2
cmp dword [esp + 0x48], 8
jb 0x1006b084
push dword [esp + 0x34]
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
mov bl, 1
jmp 0x1006b0bc
lea eax, [esp + 0x1c]
cmp esi, eax
je 0x1006b0b3
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.10003100
mov esi, dword [esp + 0x18]
test esi, esi
sete bl
mov byte [esp + 0x27c], 0
cmp dword [esp + 0x60], 8
jb 0x1006b0d4
push dword [esp + 0x4c]
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], 0
mov word [esp + 0x4c], ax
mov dword [esp + 0x27c], 0xffffffff
cmp dword [esp + 0x30], 8
jb 0x1006b106
push dword [esp + 0x1c]
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x30], 7
mov word [esp + 0x1c], ax
mov al, bl
mov dword [esp + 0x2c], 0
mov ecx, dword [esp + 0x274]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.10081b94
add esp, 0x26c
ret