Function at 0x1000b270
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x34
mov edx, dword [0x1000c048]
cmp edx, 0xffffffff
je 0x1000b338
mov edi, edx
sub edi, 1
js 0x1000b2ec
mov eax, dword [0x1001c0a8]
xor ebx, ebx
mov edx, edi
mov edi, ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp - 0x18], eax
lea esi, cs:[esi]
nop
lea eax, [edi + edx]
mov dword [ebp - 0x10], edx
mov esi, eax
shr esi, 0x1f
add esi, eax
mov eax, dword [ebp - 0x14]
sar esi, 1
mov ebx, esi
shl ebx, 4
add ebx, eax
lea eax, [ebx + 1]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strcmp]
mov edx, dword [ebp - 0x10]
test eax, eax
je 0x1000b328
js 0x1000b308
lea edi, [esi + 1]
cmp edi, edx
jle 0x1000b2b0
mov ecx, dword [ebp + 8]
movzx eax, byte [0x1000c04c]
cmp byte [ecx], 0
js 0x1000b318
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edx, [esi - 1]
cmp edx, edi
jge 0x1000b2b0
jmp 0x1000b2ec
mov byte [ecx], al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, byte [ebx]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.WINEDEBUG
call dword [sym.imp.ucrtbase.dll_getenv]
mov dword [0x1000c048], 0
test eax, eax
je 0x1000b2ec
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__strdup]
test eax, eax
je 0x1000b43e
mov dword [ebp - 0x2c], eax
mov ebx, eax
lea esi, [esi]
mov dword [esp + 4], 0x2c
xor esi, esi
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_strchr]
test eax, eax
je 0x1000b38d
mov byte [eax], 0
lea esi, [eax + 1]
mov dword [esp + 4], 0x100168c2
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_strcspn]
lea ecx, [ebx + eax]
movzx edx, byte [ecx]
test dl, dl
je 0x1000b3e0
cmp ebx, ecx
jae 0x1000b5a0
cmp eax, 5
je 0x1000b5b0
cmp eax, 3
je 0x1000b5d4
cmp eax, 4
jne 0x1000b3d8
cmp dword [ebx], 0x6e726177
je 0x1000b614
lea esi, cs:[esi]
test esi, esi
je 0x1000b432
mov ebx, esi
jmp 0x1000b370
movzx edx, byte [ebx]
cmp dl, 0x2d
je 0x1000b450
lea eax, [edx - 0x2b]
and eax, 0xfd
mov byte [ebp - 0x10], al
je 0x1000b590
mov byte [ebp - 0x18], 0xff
mov byte [ebp - 0x10], 0
test dl, dl
je 0x1000b3d8
mov dword [esp + 4], 0x100168d5
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_strcmp]
test eax, eax
jne 0x1000b468
movzx eax, byte [ebp - 0x10]
not eax
and al, byte [0x1000c04c]
or al, byte [ebp - 0x18]
mov byte [0x1000c04c], al
test esi, esi
jne 0x1000b3dc
mov esi, dword [ebp - 0x2c]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
mov edx, dword [0x1000c048]
jmp 0x1000b288
mov byte [ebp - 0x10], 0xff
mov byte [ebp - 0x18], 0
mov ecx, ebx
movzx edx, byte [ecx + 1]
lea ebx, [ecx + 1]
jmp 0x1000b401
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [ebp - 0x28], eax
cmp eax, 0xe
ja 0x1000b3d8
mov eax, dword [0x1000c048]
mov ecx, dword [0x1001c0a8]
mov dword [ebp - 0x24], eax
sub eax, 1
mov dword [ebp - 0x1c], ecx
mov ecx, eax
js 0x1000b6fc
mov dword [ebp - 0x30], esi
xor edx, edx
mov dword [ebp - 0x20], ebx
mov ebx, edx
lea esi, cs:[esi]
lea eax, [ecx + ebx]
mov dword [ebp - 0x14], ecx
mov esi, eax
shr esi, 0x1f
add esi, eax
mov eax, dword [ebp - 0x1c]
sar esi, 1
mov edi, esi
shl edi, 4
add edi, eax
lea eax, [edi + 1]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strcmp]
mov ecx, dword [ebp - 0x14]
test eax, eax
je 0x1000b626
js 0x1000b580
lea ebx, [esi + 1]
cmp ecx, ebx
jge 0x1000b4a8
mov edx, ebx
mov esi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x20]
mov edi, edx
mov dword [ebp - 0x14], edx
mov eax, dword [0x1001c0ac]
shl edi, 4
cmp dword [ebp - 0x24], eax
jge 0x1000b688
mov eax, dword [ebp - 0x1c]
add edi, eax
cmp dword [ebp - 0x24], edx
jle 0x1000b53a
mov ecx, eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], edi
sub eax, edx
shl eax, 4
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x14]
add eax, 1
shl eax, 4
add ecx, eax
mov dword [esp], ecx
call dword [sym.imp.ucrtbase.dll_memmove]
mov eax, dword [ebp - 0x28]
lea edx, [edi + 1]
add eax, 1
cmp eax, 4
jae 0x1000b63b
test eax, eax
je 0x1000b55d
movzx ecx, byte [ebx]
mov byte [edx], cl
test al, 2
jne 0x1000b738
movzx eax, byte [ebp - 0x10]
not eax
and al, byte [0x1000c04c]
or al, byte [ebp - 0x18]
mov byte [edi], al
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [0x1000c048], eax
jmp 0x1000b3d8
lea ecx, [esi - 1]
cmp ebx, ecx
jle 0x1000b4a8
jmp 0x1000b4ec
mov byte [ebp - 0x18], 0xff
mov ecx, ebx
jmp 0x1000b45a
mov ebx, ecx
jmp 0x1000b3e3
cmp dword [ebx], 0x6d786966
je 0x1000b61a
cmp dword [ebx], 0x63617274
jne 0x1000b3d8
cmp byte [ebx + 4], 0x65
jne 0x1000b3d8
mov byte [ebp - 0x10], 8
jmp 0x1000b5ed
cmp word [ebx], 0x7265
jne 0x1000b3d8
cmp byte [ebx + 2], 0x72
jne 0x1000b3d8
mov byte [ebp - 0x10], 2
cmp dl, 0x2b
je 0x1000b6ea
sub edx, 0x2b
mov eax, edx
and eax, 0xfd
mov byte [ebp - 0x18], al
je 0x1000b45a
mov byte [ebp - 0x18], 0
mov ebx, ecx
jmp 0x1000b405
mov byte [ebp - 0x10], 4
jmp 0x1000b5ed
cmp byte [ebx + 4], 0x65
jne 0x1000b5b8
mov byte [ebp - 0x10], 1
jmp 0x1000b5ed
movzx eax, byte [ebp - 0x10]
mov esi, dword [ebp - 0x30]
not eax
and al, byte [edi]
or al, byte [ebp - 0x18]
mov byte [edi], al
jmp 0x1000b3d8
mov ecx, dword [ebx]
mov dword [edi + 1], ecx
mov ecx, dword [ebx + eax - 4]
mov dword [edx + eax - 4], ecx
lea ecx, [edi + 5]
and ecx, 0xfffffffc
sub edx, ecx
add eax, edx
sub ebx, edx
and eax, 0xfffffffc
cmp eax, 4
jb 0x1000b55d
mov dword [ebp - 0x14], esi
and eax, 0xfffffffc
xor edx, edx
mov esi, dword [ebx + edx]
mov dword [ecx + edx], esi
add edx, 4
cmp edx, eax
jb 0x1000b668
mov esi, dword [ebp - 0x14]
jmp 0x1000b55d
mov dword [ebp - 0x14], 0
xor edi, edi
xor edx, edx
mov ecx, 0x10
add eax, eax
mov dword [ebp - 0x20], edx
cmp eax, ecx
cmovl eax, ecx
mov dword [0x1001c0ac], eax
shl eax, 4
mov ecx, eax
mov eax, dword fs:[0x18]
cmp dword [ebp - 0x1c], 0
je 0x1000b712
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapReAlloc]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
sub esp, 0x10
mov dword [0x1001c0a8], eax
mov eax, dword [0x1000c048]
mov dword [ebp - 0x24], eax
jmp 0x1000b50a
movzx eax, byte [ebp - 0x10]
mov ebx, ecx
mov byte [ebp - 0x10], 0
mov byte [ebp - 0x18], al
jmp 0x1000b458
mov eax, dword [0x1001c0ac]
cmp dword [ebp - 0x24], eax
jge 0x1000b67d
mov edi, dword [ebp - 0x1c]
jmp 0x1000b53a
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
sub esp, 0xc
jmp 0x1000b6d8
movzx ecx, word [ebx + eax - 2]
mov word [edx + eax - 2], cx
jmp 0x1000b55d