Function at 0x10001bb0
Capabilities:
Get process heap force flags
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov ecx, dword [0x1000d030]
cmp ecx, 0xffffffff
je 0x10001bd1
test ecx, ecx
jg 0x10001ee7
jmp 0x10001f40
push str.WINEDEBUG
call dword [sym.imp.ucrtbase.dll_getenv]
add esp, 4
mov dword [0x1000d030], 0
test eax, eax
je 0x10001f40
push eax
call dword [sym.imp.ucrtbase.dll__strdup]
add esp, 4
test eax, eax
je 0x10001edd
mov esi, dword [sym.imp.ucrtbase.dll_strchr]
mov dword [ebp - 0x28], eax
mov edi, eax
jmp 0x10001c3b
mov eax, dword [ebp - 0x20]
not al
and al, byte [0x1000d034]
or al, byte [ebp - 0x1c]
mov byte [0x1000d034], al
nop word cs:[eax + eax]
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x10001ed1
push 0x2c
push edi
call esi
add esp, 8
mov ecx, 0
test eax, eax
je 0x10001c52
mov ecx, eax
inc ecx
mov byte [eax], 0
mov dword [ebp - 0x14], ecx
push 0x1000ba2a
push edi
call dword [sym.imp.ucrtbase.dll_strcspn]
add esp, 8
lea edx, [edi + eax]
cmp byte [edi + eax], 0
cmove edx, edi
mov eax, edx
sub eax, edi
jbe 0x10001cc0
cmp eax, 3
je 0x10001ced
cmp eax, 4
je 0x10001cdb
cmp eax, 5
jne 0x10001c30
mov eax, dword [edi]
mov ecx, 0x6d786966
xor eax, ecx
movzx ecx, byte [edi + 4]
xor ecx, 0x65
or ecx, eax
je 0x10001d0b
mov eax, dword [edi]
mov ecx, 0x63617274
xor eax, ecx
movzx ecx, byte [edi + 4]
xor ecx, 0x65
or ecx, eax
jne 0x10001c30
mov eax, edx
mov cl, 3
jmp 0x10001d0f
movzx eax, byte [edx]
cmp al, 0x2d
sete cl
setne bl
neg bl
mov dword [ebp - 0x1c], ebx
neg cl
mov dword [ebp - 0x20], ecx
cmp al, 0x2d
jne 0x10001d36
jmp 0x10001d3e
cmp dword [edi], 0x6e726177
jne 0x10001c30
mov eax, edx
mov cl, 2
jmp 0x10001d0f
movzx eax, word [edi]
xor eax, 0x7265
movzx ecx, byte [edi + 2]
xor ecx, 0x72
or cx, ax
jne 0x10001c30
mov eax, edx
mov cl, 1
jmp 0x10001d0f
mov eax, edx
xor ecx, ecx
mov dl, 1
shl dl, cl
mov ecx, eax
movzx eax, byte [eax]
cmp al, 0x2b
movzx edi, dl
mov edx, ecx
mov ebx, edi
mov ecx, 0
cmove ebx, ecx
mov dword [ebp - 0x20], ebx
cmovne edi, ecx
mov dword [ebp - 0x1c], edi
cmp al, 0x2d
je 0x10001d3e
movzx ecx, al
cmp ecx, 0x2b
jne 0x10001d43
movzx eax, byte [edx + 1]
inc edx
test al, al
je 0x10001c30
push 0x1000ba40
push edx
mov edi, edx
call dword [sym.imp.ucrtbase.dll_strcmp]
add esp, 8
test eax, eax
je 0x10001c10
mov ebx, dword [0x1000d030]
push edi
call dword [sym.imp.ucrtbase.dll_strlen]
add esp, 4
cmp eax, 0xe
ja 0x10001c30
mov edx, edi
mov eax, dword [0x1000d0f0]
mov dword [ebp - 0x10], eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
jle 0x10001de4
lea eax, [ebx - 1]
xor edi, edi
mov dword [ebp - 0x2c], edx
nop word cs:[eax + eax]
mov dword [ebp - 0x18], eax
add eax, edi
mov esi, eax
shr esi, 0x1f
add esi, eax
sar esi, 1
mov ebx, edi
mov edi, esi
shl edi, 4
mov eax, dword [ebp - 0x10]
add eax, edi
inc eax
push eax
push edx
call dword [sym.imp.ucrtbase.dll_strcmp]
add esp, 8
test eax, eax
je 0x10001e40
lea ecx, [esi - 1]
inc esi
test eax, eax
mov eax, dword [ebp - 0x18]
cmovs eax, ecx
cmovns ebx, esi
cmp ebx, eax
mov edx, dword [ebp - 0x2c]
mov edi, ebx
jle 0x10001da0
jmp 0x10001de6
xor edi, edi
mov eax, dword [0x1000d0f4]
mov ecx, dword [ebp - 0x24]
cmp ecx, eax
mov dword [ebp - 0x18], edi
jge 0x10001e02
mov esi, dword [sym.imp.ucrtbase.dll_strchr]
mov eax, ecx
mov ebx, dword [ebp - 0x10]
jmp 0x10001e77
mov edi, edx
add eax, eax
cmp eax, 0x11
mov ecx, 0x10
cmovl eax, ecx
mov dword [0x1000d0f4], eax
shl eax, 4
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
mov ecx, dword [ecx + 0x18]
mov edx, dword [ebp - 0x10]
test edx, edx
mov esi, dword [sym.imp.ucrtbase.dll_strchr]
je 0x10001e5c
push eax
push edx
push 0
push ecx
call dword [sym.imp.kernel32.dll_HeapReAlloc]
jmp 0x10001e66
mov eax, dword [ebp - 0x20]
not al
mov ecx, dword [ebp - 0x10]
and al, byte [ecx + edi]
or al, byte [ebp - 0x1c]
mov byte [ecx + edi], al
mov esi, dword [sym.imp.ucrtbase.dll_strchr]
jmp 0x10001c30
push eax
push 0
push ecx
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ebx, eax
mov dword [0x1000d0f0], eax
mov eax, dword [0x1000d030]
mov edx, edi
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
sub eax, edi
jle 0x10001ea0
mov ecx, edi
shl ecx, 4
mov edi, edx
lea edx, [ebx + ecx]
add ecx, ebx
add ecx, 0x10
shl eax, 4
push eax
push edx
push ecx
call sym._memmove
mov edx, edi
mov edi, dword [ebp - 0x18]
add esp, 0xc
shl edi, 4
lea eax, [ebx + edi]
inc eax
push edx
push eax
call dword [sym.imp.ucrtbase.dll_strcpy]
add esp, 8
mov eax, dword [ebp - 0x20]
not al
and al, byte [0x1000d034]
or al, byte [ebp - 0x1c]
mov byte [ebx + edi], al
mov eax, dword [ebp - 0x24]
inc eax
mov dword [0x1000d030], eax
jmp 0x10001c30
push dword [ebp - 0x28]
call dword [sym.imp.ucrtbase.dll_free]
add esp, 4
mov ecx, dword [0x1000d030]
test ecx, ecx
jle 0x10001f40
dec ecx
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov eax, dword [0x1000d0f0]
mov dword [ebp - 0x14], eax
nop dword [eax]
mov dword [ebp - 0x18], ecx
lea eax, [ebx + ecx]
mov esi, eax
shr esi, 0x1f
add esi, eax
sar esi, 1
mov edi, esi
shl edi, 4
mov eax, dword [ebp - 0x14]
add eax, edi
inc eax
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ucrtbase.dll_strcmp]
add esp, 8
test eax, eax
je 0x10001f5a
lea ecx, [esi - 1]
inc esi
test eax, eax
mov eax, dword [ebp - 0x18]
cmovs eax, ecx
mov ecx, eax
cmovns ebx, esi
cmp ebx, eax
jle 0x10001f00
mov dword [ebp - 0x14], 0x1000d034
mov ecx, dword [ebp + 8]
cmp byte [ecx], 0
jns 0x10001f5d
movzx eax, byte [0x1000d034]
mov byte [ecx], al
jmp 0x10001f5d
add dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret