Function at 0x1006681c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push esi
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1006683b
push 1
call fcn.10066bbc
pop ecx
jmp 0x10066bb7
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x2c], 0x22c
mov dword [ebp - 0x5c], 0x1000d970
cmp dword [ebp - 0x2c], 0x436
jle 0x100668f6
and dword [ebp - 0x14], 0
jmp 0x1006687e
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xed1
jge 0x100668f6
and dword [ebp - 0xc], 0
jmp 0x10066894
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x31df
jge 0x100668f4
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0xc]
cdq
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0xa4], eax
push dword [ebp - 0x9c]
push dword [ebp - 0xa0]
lea ecx, [ebp - 0xc0]
call fcn.1001147b
pop ecx
pop ecx
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
call fcn.100252e9
push eax
call fcn.1008287d
pop ecx
lea ecx, [ebp - 0xc0]
call fcn.100252df
jmp 0x1006688d
jmp 0x10066877
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x2c], 0x1d0
jge 0x1006690e
push dword [ebp - 0x5c]
call fcn.1008287d
pop ecx
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x94]
movzx eax, byte [eax]
test eax, eax
je 0x10066a68
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
movzx eax, byte [eax]
test eax, eax
je 0x10066a63
push 0x2712
push 0x2644
push 1
push 0
call fcn.1007a917
add esp, 0x10
mov dword [ebp - 0x24], 0x86c
mov dword [ebp - 0x74], 0x1000d9c8
cmp dword [ebp - 0x24], 0x9a5
jle 0x10066a51
and dword [ebp - 0x1c], 0
jmp 0x10066986
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x7cd3
jge 0x10066a51
and dword [ebp - 0x10], 0
jmp 0x100669a0
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3625
jge 0x10066a4c
and dword [ebp - 0x18], 0
jmp 0x100669ba
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x3c8a
jge 0x10066a47
and dword [ebp - 0x20], 0
jmp 0x100669d4
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x3e3e
jge 0x10066a42
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x20]
sar eax, cl
cdq
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 0xa8], eax
push dword [ebp - 0x84]
push dword [ebp - 0x88]
lea ecx, [ebp - 0xd8]
call fcn.1001147b
pop ecx
pop ecx
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
call fcn.100252e9
push eax
call fcn.1008287d
pop ecx
lea ecx, [ebp - 0xd8]
call fcn.100252df
jmp 0x100669cd
jmp 0x100669b3
jmp 0x10066999
jmp 0x1006697f
cmp dword [ebp - 0x24], 0x525
jge 0x10066a63
push dword [ebp - 0x74]
call fcn.1008287d
pop ecx
jmp 0x10066bb7
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 4], eax
push 0
mov ecx, dword [ebp - 8]
call fcn.10025597
push 1
mov ecx, dword [ebp - 8]
call fcn.10025597
cmp dword [eax], 0xc520
jle 0x10066ac0
mov dword [ebp - 0x4c], 1
jmp 0x10066ac4
and dword [ebp - 0x4c], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x4c]
je 0x10066ad7
mov dword [ebp - 0x34], 1
jmp 0x10066adb
and dword [ebp - 0x34], 0
cmp dword [ebp - 0x34], 4
jbe 0x10066aea
mov dword [ebp - 0x44], 1
jmp 0x10066aee
and dword [ebp - 0x44], 0
cmp dword [ebp - 0x44], 0xe434
jne 0x10066b00
mov dword [ebp - 0x3c], 1
jmp 0x10066b04
and dword [ebp - 0x3c], 0
cmp dword [ebp - 0x3c], 0xa6f
jle 0x10066b16
mov dword [ebp - 0x28], 1
jmp 0x10066b1a
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x10066b40
mov eax, dword [ebp - 0x48]
cmp dword [eax], 0
je 0x10066b40
mov dword [ebp - 0x30], 1
jmp 0x10066b44
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x38]
mov esi, dword [eax]
push 1
mov ecx, dword [ebp - 8]
call fcn.10025597
mov ecx, dword [ebp - 0x30]
add ecx, dword [eax]
cmp esi, ecx
jne 0x10066b62
mov eax, dword [ebp - 4]
cmp dword [eax], 0
mov eax, dword [ebp - 4]
mov esi, dword [eax]
neg esi
push 1
mov ecx, dword [ebp - 8]
call fcn.10025597
cmp esi, dword [eax]
je 0x10066b85
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x10066b85
and dword [ebp - 0x40], 0
jmp 0x10066b8c
mov dword [ebp - 0x40], 1
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
cmp dword [ebp - 0x40], eax
jle 0x10066b9f
mov dword [ebp - 0x50], 1
jmp 0x10066ba3
and dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x48]
mov esi, dword [eax]
sub esi, dword [ebp - 0x50]
push 0
mov ecx, dword [ebp - 8]
call fcn.10025597
mov dword [eax], esi
pop esi
mov esp, ebp
pop ebp
ret