Function at 0x1f929314
Capabilities:
Query environment variable

Disassembly:
push 0x14
mov eax, 0x1f9686db
call fcn.1f8a600e
mov edx, dword [ebp + 8]
xor ebx, ebx
cmp edx, ebx
jne 0x1f929348
push ebx
push 0x54f
push 0x1f8886a0
push 0x667
push 0x1f888b18
call fcn.1f8a7bdf
jmp 0x1f9295d7
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x1f92934d
sub eax, esi
sar eax, 1
je 0x1f9295cc
movzx eax, word [edx]
cmp ax, 0x20
je 0x1f9295cc
cmp ax, 9
je 0x1f9295cc
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ebx
push ebx
push edx
call edi
mov esi, eax
cmp esi, ebx
je 0x1f9295d7
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 sym.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.1f898885
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x14], ebx
jne 0x1f9293d0
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.1f8fe52c
jmp 0x1f9295d7
push esi
push dword [ebp - 0x14]
push dword [ebp + 8]
call edi
cmp eax, ebx
je 0x1f9293bf
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 sym.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.1f898885
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], ebx
jne 0x1f92941f
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.1f8fe52c
jmp 0x1f9293bf
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 0x1f929448
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
je 0x1f929412
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], ebx
mov dword [ecx], eax
jmp 0x1f929412
dec esi
cmp eax, esi
jne 0x1f9295bc
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call fcn.1f8a84aa
test eax, eax
je 0x1f9295bc
cmp dword [ebp + 0x14], ebx
je 0x1f9294b0
push 0x25
push dword [ebp - 0x18]
call fcn.1f9283ad
test eax, eax
jne 0x1f9294b0
push 0x26
push dword [ebp - 0x18]
call fcn.1f9283ad
test eax, eax
jne 0x1f9294b0
push 0x80338191
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.1f8fe52c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.1f8fe52c
mov eax, esi
jmp 0x1f9295d9
mov esi, dword [ebp - 0x18]
cmp dword [ebp + 0x10], ebx
je 0x1f9294d2
push ebx
push 0x54f
push 0x1f888e6c
push 0x6e6
push 0x1f888b18
call fcn.1f8a7bdf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 3
push ebx
push 0x80
push 3
push ebx
push 7
mov edi, SysReAllocStringLen
push edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
call esi
push eax
lea ecx, [ebp - 0x1c]
call fcn.1f8964a7
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x1f929594
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x1f929525
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.1f896531
xor esi, esi
inc esi
jmp 0x1f929492
cmp eax, 2
je 0x1f929569
cmp eax, 3
je 0x1f929569
cmp eax, 0x7b
jne 0x1f92953b
push 0x80338191
jmp 0x1f92956e
cmp eax, 5
jne 0x1f929562
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.1f8964a7
cmp dword [ebp - 0x1c], 0xffffffff
je 0x1f929574
jmp 0x1f929534
push 0x54f
jmp 0x1f92956e
push 0x80338192
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
je 0x1f929583
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.1f896531
jmp 0x1f929490
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.1f896531
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.1f8fe52c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.1f8fe52c
xor eax, eax
inc eax
jmp 0x1f9295d9
push 0x80338191
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1f929437
push 0x80338191
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
call fcn.1f8a60fa
ret 0x10