Function at 0x100686a0
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x254]
sub esp, 0x254
push 0xffffffffffffffff
push 0x10237648
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x102ca474]
xor eax, ebp
mov dword [ebp + 0x250], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], edx
mov edi, ecx
mov eax, dword [ebp + 0x25c]
mov dword [ebp - 0x2c], eax
call fcn.10005e30
mov esi, eax
cmp dword [esi + 0x10], 0
jne 0x100686fb
xor al, al
jmp 0x10068f1c
lea ecx, [ebp + 0x30]
call fcn.1000879d
mov dword [ebp - 4], 0
mov eax, esi
mov edx, dword [esi + 0x14]
cmp edx, 8
jb 0x10068716
mov eax, dword [esi]
cmp word [eax], 0x40
jne 0x1006874c
mov eax, dword [esi + 0x10]
lea ecx, [ebp + 0x18]
dec eax
mov edx, edi
push eax
call fcn.10077160
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x30]
push eax
call fcn.10008766
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x18]
call fcn.10005e05
jmp 0x100688ec
mov ecx, edi
call fcn.10005e30
lea ecx, [ebp + 0x30]
cmp ecx, eax
je 0x100688ec
mov dword [ebp - 0x14], esi
cmp edx, 8
jb 0x1006876b
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
mov ebx, dword [esi + 0x10]
lea ecx, [ebp + 0x30]
call fcn.10005e30
mov edi, eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x1c], eax
cmp ebx, eax
ja 0x100687b4
mov esi, edi
cmp eax, 8
jb 0x1006878b
mov esi, dword [edi]
push ebx
push dword [ebp - 0x14]
mov dword [edi + 0x10], ebx
push esi
call fcn.10005f10
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
lea eax, [esi + ebx*2]
push eax
call fcn.10005eff
add esp, 0x14
jmp 0x100688ec
lea ecx, [ebp + 0x30]
call fcn.1000608d
cmp ebx, eax
ja 0x10068f3f
lea ecx, [ebp + 0x30]
call fcn.1000608d
lea ecx, [ebp + 0x30]
mov esi, eax
call fcn.10005e30
mov ecx, ebx
or ecx, 7
mov dword [ebp - 0x24], ecx
cmp ecx, esi
ja 0x10068809
mov edx, dword [eax + 0x14]
mov ecx, edx
shr ecx, 1
mov eax, esi
sub eax, ecx
cmp edx, eax
ja 0x10068809
lea eax, [ecx + edx]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.10005ed6
add esp, 8
mov esi, dword [eax]
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x1006881b
or ecx, 0xffffffff
jmp 0x10068823
cmp ecx, 0x1000
jb 0x1006884e
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.101e74f1
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x10068f44
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x1006885f
test ecx, ecx
je 0x1006885d
push ecx
call fcn.101e74f1
add esp, 4
jmp 0x1006885f
xor eax, eax
mov dword [ebp - 0x10], eax
push ebx
push dword [ebp - 0x14]
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], esi
mov esi, dword [ebp - 0x10]
push esi
call fcn.10005f29
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
lea eax, [esi + ebx*2]
push eax
call fcn.10005eff
mov ecx, dword [ebp - 0x1c]
add esp, 0x14
cmp ecx, 8
jb 0x100688cc
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x100688bb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10068f44
mov eax, edx
push ecx
push eax
call fcn.101e74c0
mov eax, dword [ebp - 0x10]
add esp, 8
mov dword [edi], eax
jmp 0x100688ec
push edi
call fcn.10005f6e
push eax
push 4
call fcn.10005b84
mov esi, eax
lea eax, [ebp - 0x10]
push eax
call fcn.10005f6e
add esp, 0x10
mov ecx, dword [eax]
mov dword [esi], ecx
push 0x208
lea eax, [ebp + 0x48]
push 0
push eax
call fcn.101ffde0
add esp, 0xc
lea eax, [ebp + 0x48]
lea ecx, [ebp + 0x30]
push 0x104
push eax
call fcn.10008714
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push eax
call edi
mov esi, eax
cmp esi, 0x104
jb 0x10068b04
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.101e7526
add esp, 4
lea ecx, [ebp + 0x30]
mov ebx, eax
mov dword [ebp - 0x14], ebx
push esi
push ebx
call fcn.10008714
push eax
call edi
push ebx
call fcn.10005f42
add esp, 4
lea ecx, [ebp + 0x30]
mov ebx, eax
call fcn.10005e30
mov edi, eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x18], eax
cmp ebx, eax
ja 0x100689ae
mov esi, edi
cmp eax, 8
jb 0x1006897a
mov esi, dword [edi]
push ebx
push dword [ebp - 0x14]
mov dword [edi + 0x10], ebx
push esi
call fcn.10005f10
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
lea eax, [esi + ebx*2]
push eax
call fcn.10005eff
add esp, 0x14
push dword [ebp - 0x14]
call fcn.101e7521
add esp, 4
jmp 0x10068c92
lea ecx, [ebp + 0x30]
call fcn.1000608d
cmp ebx, eax
ja 0x10068f49
lea ecx, [ebp + 0x30]
call fcn.1000608d
lea ecx, [ebp + 0x30]
mov esi, eax
call fcn.10005e30
mov ecx, ebx
or ecx, 7
mov dword [ebp - 0x24], ecx
cmp ecx, esi
ja 0x10068a03
mov edx, dword [eax + 0x14]
mov ecx, edx
shr ecx, 1
mov eax, esi
sub eax, ecx
cmp edx, eax
ja 0x10068a03
lea eax, [ecx + edx]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.10005ed6
add esp, 8
mov esi, dword [eax]
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x10068a15
or ecx, 0xffffffff
jmp 0x10068a1d
cmp ecx, 0x1000
jb 0x10068a48
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.101e74f1
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x10068f44
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x10068a59
test ecx, ecx
je 0x10068a57
push ecx
call fcn.101e74f1
add esp, 4
jmp 0x10068a59
xor eax, eax
mov dword [ebp - 0x10], eax
push ebx
push dword [ebp - 0x14]
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], esi
mov esi, dword [ebp - 0x10]
push esi
call fcn.10005f29
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
lea eax, [esi + ebx*2]
push eax
call fcn.10005eff
mov ecx, dword [ebp - 0x18]
add esp, 0x14
cmp ecx, 8
jb 0x10068ad4
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x10068ab5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10068f44
mov eax, edx
push ecx
push eax
call fcn.101e74c0
mov eax, dword [ebp - 0x10]
add esp, 8
mov dword [edi], eax
push dword [ebp - 0x14]
call fcn.101e7521
add esp, 4
jmp 0x10068c92
push edi
call fcn.10005f6e
push eax
push 4
call fcn.10005b84
mov esi, eax
lea eax, [ebp - 0x10]
push eax
call fcn.10005f6e
add esp, 0x10
mov ecx, dword [eax]
push dword [ebp - 0x14]
mov dword [esi], ecx
call fcn.101e7521
add esp, 4
jmp 0x10068c92
lea eax, [ebp + 0x48]
push eax
call fcn.10005f42
add esp, 4
lea ecx, [ebp + 0x30]
mov ebx, eax
call fcn.10005e30
mov edi, eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x20], eax
cmp ebx, eax
ja 0x10068b59
mov esi, edi
cmp eax, 8
jb 0x10068b2f
mov esi, dword [edi]
push ebx
lea eax, [ebp + 0x48]
mov dword [edi + 0x10], ebx
push eax
push esi
call fcn.10005f10
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
lea eax, [esi + ebx*2]
push eax
call fcn.10005eff
add esp, 0x14
jmp 0x10068c92
lea ecx, [ebp + 0x30]
call fcn.1000608d
cmp ebx, eax
ja 0x10068f4e
lea ecx, [ebp + 0x30]
call fcn.1000608d
lea ecx, [ebp + 0x30]
mov esi, eax
call fcn.10005e30
mov ecx, ebx
or ecx, 7
mov dword [ebp - 0x1c], ecx
cmp ecx, esi
ja 0x10068bae
mov edx, dword [eax + 0x14]
mov ecx, edx
shr ecx, 1
mov eax, esi
sub eax, ecx
cmp edx, eax
ja 0x10068bae
lea eax, [ecx + edx]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10005ed6
add esp, 8
mov esi, dword [eax]
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x10068bc0
or ecx, 0xffffffff
jmp 0x10068bc8
cmp ecx, 0x1000
jb 0x10068bf3
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.101e74f1
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x10068f44
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x10068c04
test ecx, ecx
je 0x10068c02
push ecx
call fcn.101e74f1
add esp, 4
jmp 0x10068c04
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x48]
push ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], esi
mov esi, dword [ebp - 0x10]
push eax
push esi
call fcn.10005f29
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
lea eax, [esi + ebx*2]
push eax
call fcn.10005eff
mov ecx, dword [ebp - 0x20]
add esp, 0x14
cmp ecx, 8
jb 0x10068c72
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x10068c61
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10068f44
mov eax, edx
push ecx
push eax
call fcn.101e74c0
mov eax, dword [ebp - 0x10]
add esp, 8
mov dword [edi], eax
jmp 0x10068c92
push edi
call fcn.10005f6e
push eax
push 4
call fcn.10005b84
mov esi, eax
lea eax, [ebp - 0x10]
push eax
call fcn.10005f6e
add esp, 0x10
mov ecx, dword [eax]
mov dword [esi], ecx
push 0x102841dc
lea ecx, [ebp]
call fcn.10005e0a
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x30]
call fcn.10005e30
lea ecx, [ebp]
mov dword [ebp - 0x14], eax
mov esi, eax
call fcn.10005e30
mov edi, eax
cmp dword [edi + 0x14], 8
jb 0x10068cc2
mov eax, dword [edi]
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x10068ccc
mov ecx, dword [esi]
push dword [edi + 0x10]
mov ebx, dword [esi + 0x10]
mov edx, ebx
push eax
push 0
call fcn.1003d1b0
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x10068d58
push eax
lea edx, [ebp + 0x30]
lea ecx, [ebp + 0x18]
call fcn.100770f0
add esp, 4
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x28]
push eax
call fcn.10008766
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x18]
call fcn.10005e05
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x10068d51
mov eax, dword [esi + 0x10]
lea edx, [ebp + 0x30]
sub eax, dword [edi + 0x10]
lea ecx, [ebp + 0x18]
sub eax, dword [ebp - 0x18]
push eax
call fcn.10077160
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x18]
call fcn.10008714
xor edx, edx
mov ecx, eax
call fcn.10076ab0
mov dword [ebx], eax
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x18]
call fcn.10005e05
mov bl, 1
jmp 0x10068eff
lea ecx, [ebp + 0x30]
call fcn.10005e30
mov ecx, dword [ebp - 0x28]
cmp ecx, eax
je 0x10068ef7
cmp dword [esi + 0x14], 8
jb 0x10068d76
mov esi, dword [esi]
mov dword [ebp - 0x14], esi
call fcn.10005e30
mov edi, eax
mov ecx, dword [edi + 0x14]
mov dword [ebp - 0x20], ecx
cmp ebx, ecx
ja 0x10068dbe
mov dword [ebp - 0x10], edi
cmp ecx, 8
jb 0x10068d94
mov eax, dword [edi]
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
mov dword [edi + 0x10], ebx
call fcn.10005f10
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
mov eax, dword [ebp - 0x10]
lea eax, [eax + ebx*2]
push eax
call fcn.10005eff
add esp, 0x14
jmp 0x10068ef7
mov esi, dword [ebp - 0x28]
mov ecx, esi
call fcn.1000608d
cmp ebx, eax
ja 0x10068f53
mov ecx, esi
call fcn.1000608d
mov ecx, dword [ebp - 0x28]
mov esi, eax
call fcn.10005e30
mov ecx, ebx
or ecx, 7
mov dword [ebp - 0x1c], ecx
cmp ecx, esi
ja 0x10068e14
mov edx, dword [eax + 0x14]
mov ecx, edx
shr ecx, 1
mov eax, esi
sub eax, ecx
cmp edx, eax
ja 0x10068e14
lea eax, [ecx + edx]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10005ed6
add esp, 8
mov esi, dword [eax]
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x10068e26
or ecx, 0xffffffff
jmp 0x10068e2e
cmp ecx, 0x1000
jb 0x10068e59
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.101e74f1
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x10068f44
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x10068e6a
test ecx, ecx
je 0x10068e68
push ecx
call fcn.101e74f1
add esp, 4
jmp 0x10068e6a
xor eax, eax
mov dword [ebp - 0x10], eax
push ebx
push dword [ebp - 0x14]
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], esi
mov esi, dword [ebp - 0x10]
push esi
call fcn.10005f29
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
lea eax, [esi + ebx*2]
push eax
call fcn.10005eff
mov ecx, dword [ebp - 0x20]
add esp, 0x14
cmp ecx, 8
jb 0x10068ed7
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x10068ec6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10068f44
mov eax, edx
push ecx
push eax
call fcn.101e74c0
mov eax, dword [ebp - 0x10]
add esp, 8
mov dword [edi], eax
jmp 0x10068ef7
push edi
call fcn.10005f6e
push eax
push 4
call fcn.10005b84
mov esi, eax
lea eax, [ebp - 0x10]
push eax
call fcn.10005f6e
add esp, 0x10
mov ecx, dword [eax]
mov dword [esi], ecx
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
sete bl
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.10005e05
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x30]
call fcn.10005e05
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x250]
xor ecx, ebp
call fcn.101e7040
lea esp, [ebp + 0x254]
pop ebp
ret
call fcn.1000604b
call fcn.102086be
call fcn.1000604b
call fcn.1000604b
call fcn.1000604b
int3