Function at 0x1011c18
Capabilities:
Query environment variable

Disassembly:
push 0x14
mov eax, 0x1025cf6
call fcn.0100a086
mov edx, dword [ebp + 8]
xor ebx, ebx
cmp edx, ebx
jne 0x1011c4c
push ebx
push 0x54f
push 0x100449c
push 0x667
push 0x1004118
call fcn.0100a7b1
jmp 0x1011edb
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x1011c51
sub eax, esi
sar eax, 1
je 0x1011ed0
movzx eax, word [edx]
cmp ax, 0x20
je 0x1011ed0
cmp ax, 9
je 0x1011ed0
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ebx
push ebx
push edx
call edi
mov esi, eax
cmp esi, ebx
je 0x1011edb
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.0100c374
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x14], ebx
jne 0x1011cd4
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0100c51b
jmp 0x1011edb
push esi
push dword [ebp - 0x14]
push dword [ebp + 8]
call edi
cmp eax, ebx
je 0x1011cc3
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.0100c374
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], ebx
jne 0x1011d23
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.0100c51b
jmp 0x1011cc3
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 0x1011d4c
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
je 0x1011d16
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], ebx
mov dword [ecx], eax
jmp 0x1011d16
dec esi
cmp eax, esi
jne 0x1011ec0
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call fcn.0100ac10
test eax, eax
je 0x1011ec0
cmp dword [ebp + 0x14], ebx
je 0x1011db4
push 0x25
push dword [ebp - 0x18]
call fcn.010110c5
test eax, eax
jne 0x1011db4
push 0x26
push dword [ebp - 0x18]
call fcn.010110c5
test eax, eax
jne 0x1011db4
push 0x80338191
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.0100c51b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0100c51b
mov eax, esi
jmp 0x1011edd
mov esi, dword [ebp - 0x18]
cmp dword [ebp + 0x10], ebx
je 0x1011dd6
push ebx
push 0x54f
push 0x1004490
push 0x6e6
push 0x1004118
call fcn.0100a7b1
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 3
push ebx
push 0x80
push 3
push ebx
push 7
mov edi, 0x80000000
push edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
call esi
push eax
lea ecx, [ebp - 0x1c]
call fcn.0101143a
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x1011e98
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x1011e29
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.0100b8f6
xor esi, esi
inc esi
jmp 0x1011d96
cmp eax, 2
je 0x1011e6d
cmp eax, 3
je 0x1011e6d
cmp eax, 0x7b
jne 0x1011e3f
push 0x80338191
jmp 0x1011e72
cmp eax, 5
jne 0x1011e66
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.0101143a
cmp dword [ebp - 0x1c], 0xffffffff
je 0x1011e78
jmp 0x1011e38
push 0x54f
jmp 0x1011e72
push 0x80338192
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
je 0x1011e87
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.0100b8f6
jmp 0x1011d94
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.0100b8f6
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.0100c51b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0100c51b
xor eax, eax
inc eax
jmp 0x1011edd
push 0x80338191
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1011d3b
push 0x80338191
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
call fcn.0100a172
ret 0x10