Function at 0x1011ee1
Capabilities:
Query environment variable

Disassembly:
push 0x14
mov eax, 0x1025f88
call fcn.0100a094
mov edx, dword [ebp + 8]
xor ebx, ebx
cmp edx, ebx
jne 0x1011f15
push ebx
push 0x54f
push 0x1004464
push 0x667
push 0x10040e0
call fcn.0100a7c1
jmp 0x10121a4
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x1011f1a
sub eax, esi
sar eax, 1
je 0x1012199
movzx eax, word [edx]
cmp ax, 0x20
je 0x1012199
cmp ax, 9
je 0x1012199
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ebx
push ebx
push edx
call edi
mov esi, eax
cmp esi, ebx
je 0x10121a4
push 2
pop edx
xor ecx, ecx
mul edx
seto cl
push ebx
neg ecx
or eax, ecx
lea ecx, [ebp - 0xd]
push ecx
push eax
call sub.WsmSvc.DLL_public:_static_void____stdcall_WSManMemory::Alloc_unsigned_int__class_TestSystem::CallSite_const___enum_TestSystem::Mode_
push eax
lea ecx, [ebp - 0x14]
call fcn.0100e10e
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x14], ebx
jne 0x1011f9d
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0100c5c0
jmp 0x10121a4
push esi
push dword [ebp - 0x14]
push dword [ebp + 8]
call edi
cmp eax, ebx
je 0x1011f8c
push 2
pop edx
xor ecx, ecx
mov eax, esi
mul edx
seto cl
push ebx
neg ecx
or eax, ecx
lea ecx, [ebp + 0xb]
push ecx
push eax
call sub.WsmSvc.DLL_public:_static_void____stdcall_WSManMemory::Alloc_unsigned_int__class_TestSystem::CallSite_const___enum_TestSystem::Mode_
push eax
lea ecx, [ebp - 0x18]
call fcn.0100e10e
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], ebx
jne 0x1011fec
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.0100c5c0
jmp 0x1011f8c
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x20], ebx
push esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp eax, ebx
jne 0x1012015
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
je 0x1011fdf
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], ebx
mov dword [ecx], eax
jmp 0x1011fdf
dec esi
cmp eax, esi
jne 0x1012189
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call fcn.0100ac86
test eax, eax
je 0x1012189
cmp dword [ebp + 0x14], ebx
je 0x101207d
push 0x25
push dword [ebp - 0x18]
call fcn.01011381
test eax, eax
jne 0x101207d
push 0x26
push dword [ebp - 0x18]
call fcn.01011381
test eax, eax
jne 0x101207d
push 0x80338191
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.0100c5c0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0100c5c0
mov eax, esi
jmp 0x10121a6
mov esi, dword [ebp - 0x18]
cmp dword [ebp + 0x10], ebx
je 0x101209f
push ebx
push 0x54f
push 0x1004458
push 0x6e6
push 0x10040e0
call fcn.0100a7c1
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 3
push ebx
push 0x80
push 3
push ebx
push 7
mov edi, SysReAllocString
push edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
call esi
push eax
lea ecx, [ebp - 0x1c]
call fcn.0101171b
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x1012161
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x10120f2
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.0100c3d6
xor esi, esi
inc esi
jmp 0x101205f
cmp eax, 2
je 0x1012136
cmp eax, 3
je 0x1012136
cmp eax, 0x7b
jne 0x1012108
push 0x80338191
jmp 0x101213b
cmp eax, 5
jne 0x101212f
push ebx
push 0x2000000
push 3
push ebx
push 7
push edi
push dword [ebp - 0x18]
call esi
push eax
lea ecx, [ebp - 0x1c]
call fcn.0101171b
cmp dword [ebp - 0x1c], 0xffffffff
je 0x1012141
jmp 0x1012101
push 0x54f
jmp 0x101213b
push 0x80338192
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
je 0x1012150
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], ebx
mov dword [ecx], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.0100c3d6
jmp 0x101205d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.0100c3d6
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.0100c5c0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0100c5c0
xor eax, eax
inc eax
jmp 0x10121a6
push 0x80338191
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1012004
push 0x80338191
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
call fcn.0100a180
ret 0x10