Function at 0x1001b6d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100b7464]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x18], ecx
xor esi, esi
mov dword [ebp - 0x14], 0
push edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], 0x24
mov dword [ebp - 0xc], 0x26
mov dword [ebp - 8], 0x2a
cmp dword [0x100b8018], ebx
jne 0x1001b777
mov edi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push 3
push 0x20
push 3
push 1
push 3
push 2
push ebx
push ebx
call edi
push edx
push eax
call edi
push edx
push eax
call edi
push edx
push eax
push 0x23
xor ecx, ecx
mov dword [0x100b8018], 0x11c
push 0x100b8018
mov dword [0x100b801c], 6
mov dword [0x100b8020], 1
mov word [0x100b812c], cx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov ecx, dword [ebp - 0x18]
neg eax
sbb eax, eax
inc eax
mov dword [0x100b7008], eax
jmp 0x1001b77c
mov eax, dword [0x100b7008]
test eax, eax
je 0x1001b798
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10053108
mov esp, ebp
pop ebp
ret 4
test ecx, ecx
je 0x1001b8d2
push 0
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov edi, eax
test edi, edi
je 0x1001b8d2
lea eax, [edi + edi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1001b8d2
push 0
push eax
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp edi, eax
jbe 0x1001b8d2
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
xor ebx, ebx
nop dword [eax + eax]
mov eax, dword [ebp + ebx*4 - 0x10]
cmp eax, 0x26
jne 0x1001b8f5
push 0
push 0
push 0x100a28a0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
xor esi, esi
test edi, edi
je 0x1001b8cf
lea ecx, [edi*2 + 2]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x1001b8cf
push edi
push esi
push 0x100a28a0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp edi, eax
jne 0x1001b8cf
push esi
push 0x100a28a0
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1001b874
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call edi
push 0x100a26a0
push 0x26
call fcn.10018b90
mov esi, eax
test esi, esi
je 0x1001b8cf
jmp 0x1001b891
cmp word [esi + edi*2 - 4], 0x5c
je 0x1001b88b
push 0x100a2890
lea eax, [edi + 1]
push eax
push esi
call fcn.1001c130
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001b896
sub ecx, edx
sar ecx, 1
push ecx
push esi
push dword [ebp - 0x14]
call fcn.1007b09b
xor ecx, ecx
add esp, 0xc
test eax, eax
sete cl
mov dword [ebp - 0x1c], ecx
test eax, eax
je 0x1001b8cf
push esi
call edi
inc ebx
xor esi, esi
cmp ebx, 3
jl 0x1001b7f0
mov ebx, dword [ebp - 0x1c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push dword [ebp - 0x14]
call esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10053108
mov esp, ebp
pop ebp
ret 4
push 0x100a26a0
push eax
call fcn.10018b90
mov esi, eax
test esi, esi
je 0x1001b8cf
jmp 0x1001b891