Function at 0x6c9b37e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
call sym._GetLastError_0
cmp dword [0x6c9b603c], 0xffffffff
mov dword [ebp - 0x14], eax
je 0x6c9b3802
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], str.DEBUGCHANNEL
mov dword [0x6c9b603c], 0
call sym._GetEnvironmentVariableA_12
sub esp, 0xc
mov ebx, eax
test eax, eax
jne 0x6c9b3870
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], str.DEBUGFORMAT
call sym._GetEnvironmentVariableA_12
sub esp, 0xc
mov esi, eax
test eax, eax
jne 0x6c9b38c0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._SetLastError_4
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._LocalAlloc_8
sub esp, 8
mov dword [ebp - 0x24], eax
test eax, eax
je 0x6c9b3831
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], str.DEBUGCHANNEL
call sym._GetEnvironmentVariableA_12
sub esp, 0xc
cmp eax, ebx
jb 0x6c9b3930
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym._LocalFree_4
sub esp, 4
jmp 0x6c9b3831
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._LocalAlloc_8
sub esp, 8
mov ebx, eax
test eax, eax
je 0x6c9b3856
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], str.DEBUGFORMAT
call sym._GetEnvironmentVariableA_12
sub esp, 0xc
cmp eax, esi
jae 0x6c9b391d
mov edi, str.wine
mov ecx, 5
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
seta al
sbb al, 0
test al, al
jne 0x6c9b3b20
mov dword [sym._rosfmt_default_dbg_vlog], 0x6c9b3fd0
mov dword [esp], ebx
call sym._LocalFree_4
sub esp, 4
jmp 0x6c9b3856
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym._libwine__strdup
mov dword [ebp - 0x30], eax
test eax, eax
je 0x6c9b38a9
mov dword [ebp - 0x18], eax
lea esi, [esi]
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], 0x2c
mov dword [esp], eax
call sym._strchr
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x6c9b3977
lea edx, [eax + 1]
mov byte [eax], 0
mov dword [ebp - 0x1c], edx
mov edi, dword [ebp - 0x18]
mov dword [esp + 4], 0x6c9b8a46
mov dword [esp], edi
call sym._strcspn
mov edx, eax
lea esi, [edi + edx]
movzx ebx, byte [esi]
test bl, bl
je 0x6c9b39f2
cmp esi, edi
jbe 0x6c9b3a90
xor edi, edi
mov ecx, str.fixme
mov byte [ebp - 0x25], bl
mov eax, 5
mov ebx, edx
mov dword [ebp - 0x20], esi
mov esi, edi
mov edi, ecx
cmp ebx, eax
jne 0x6c9b39d5
mov eax, dword [ebp - 0x18]
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._memcmp
test eax, eax
je 0x6c9b3c00
add esi, 1
cmp esi, 4
je 0x6c9b3a47
mov edi, dword [esi*4 + 0x6c9b8ad0]
mov dword [esp], edi
call sym._strlen
cmp ebx, eax
je 0x6c9b39ba
jmp 0x6c9b39d5
mov eax, dword [ebp - 0x18]
movzx ebx, byte [eax]
cmp bl, 0x2d
je 0x6c9b3a70
lea eax, [ebx - 0x2b]
and eax, 0xfd
mov byte [ebp - 0x20], al
je 0x6c9b3aa0
mov byte [ebp - 0x25], 0xff
mov byte [ebp - 0x20], 0
test bl, bl
je 0x6c9b3a47
mov esi, dword [ebp - 0x18]
mov edi, 0x6c9b8a49
mov ecx, 4
repe cmpsb byte [esi], byte es:[edi]
seta al
sbb al, 0
test al, al
jne 0x6c9b3ab0
movzx ebx, byte [ebp - 0x20]
not ebx
and bl, byte [0x6c9b6040]
or bl, byte [ebp - 0x25]
mov byte [0x6c9b6040], bl
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x6c9b3950
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call sym._LocalFree_4
sub esp, 4
jmp 0x6c9b38a9
mov byte [ebp - 0x20], 0xff
mov byte [ebp - 0x25], 0
mov esi, dword [ebp - 0x18]
lea eax, [esi + 1]
movzx ebx, byte [esi + 1]
mov dword [ebp - 0x18], eax
jmp 0x6c9b3a16
mov dword [ebp - 0x18], esi
jmp 0x6c9b39f8
mov esi, dword [ebp - 0x18]
mov byte [ebp - 0x25], 0xff
jmp 0x6c9b3a7b
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._strlen
mov dword [ebp - 0x34], eax
cmp eax, 0xe
ja 0x6c9b3a47
mov eax, dword [0x6c9b603c]
xor edi, edi
mov esi, eax
mov dword [ebp - 0x38], eax
sub esi, 1
jns 0x6c9b3aeb
jmp 0x6c9b3b6f
lea edi, [ebx + 1]
cmp edi, esi
jg 0x6c9b3b6f
lea ebx, [esi + edi]
sar ebx, 1
mov eax, ebx
shl eax, 4
mov dword [ebp - 0x2c], eax
add eax, 0x6c9b90c1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._strcmp
test eax, eax
je 0x6c9b3be3
jns 0x6c9b3ae0
lea esi, [ebx - 1]
jmp 0x6c9b3ae3
mov edi, str.extended
mov ecx, 9
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
seta al
sbb al, 0
test al, al
je 0x6c9b3b60
mov edi, 0x6c9b8a67
mov ecx, 4
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
seta al
sbb al, 0
test al, al
je 0x6c9b3b60
mov dword [sym._rosfmt_default_dbg_vlog], 0x6c9b3d50
jmp 0x6c9b391d
mov dword [sym._rosfmt_default_dbg_vlog], 0x6c9b3e50
jmp 0x6c9b391d
mov eax, dword [ebp - 0x38]
cmp eax, 0xff
jg 0x6c9b3a47
mov ebx, edi
shl ebx, 4
cmp edi, eax
jl 0x6c9b3c82
mov edx, dword [ebp - 0x34]
lea eax, [ebx + 1]
lea ecx, [eax + 0x6c9b90c0]
add edx, 1
cmp edx, 4
jae 0x6c9b3c3c
test edx, edx
je 0x6c9b3bbb
mov esi, dword [ebp - 0x18]
movzx ebx, byte [esi]
mov byte [eax + 0x6c9b90c0], bl
test dl, 2
jne 0x6c9b3cb7
movzx ebx, byte [ebp - 0x20]
mov eax, dword [ebp - 0x38]
shl edi, 4
not ebx
add eax, 1
and bl, byte [0x6c9b6040]
or bl, byte [ebp - 0x25]
mov byte [edi + 0x6c9b90c0], bl
mov dword [0x6c9b603c], eax
jmp 0x6c9b3a47
mov ecx, dword [ebp - 0x2c]
movzx ebx, byte [ebp - 0x20]
not ebx
and bl, byte [ecx + 0x6c9b90c0]
or bl, byte [ebp - 0x25]
mov byte [ecx + 0x6c9b90c0], bl
jmp 0x6c9b3a47
mov edi, esi
mov eax, 1
movzx ebx, byte [ebp - 0x25]
mov esi, dword [ebp - 0x20]
mov ecx, edi
shl eax, cl
mov byte [ebp - 0x20], al
cmp bl, 0x2b
je 0x6c9b3ca8
sub ebx, 0x2b
and ebx, 0xfd
mov byte [ebp - 0x25], bl
je 0x6c9b3a7b
mov dword [ebp - 0x18], esi
mov byte [ebp - 0x25], 0
jmp 0x6c9b3a1a
mov esi, dword [ebp - 0x18]
mov ebx, dword [esi]
mov dword [eax + 0x6c9b90c0], ebx
mov eax, dword [esi + edx - 4]
lea ebx, [ecx + 4]
and ebx, 0xfffffffc
mov dword [ecx + edx - 4], eax
mov eax, ecx
mov ecx, esi
sub eax, ebx
add edx, eax
sub ecx, eax
and edx, 0xfffffffc
cmp edx, 4
jb 0x6c9b3bbb
and edx, 0xfffffffc
xor eax, eax
mov esi, dword [ecx + eax]
mov dword [ebx + eax], esi
add eax, 4
cmp eax, edx
jb 0x6c9b3c70
jmp 0x6c9b3bbb
sub eax, edi
shl eax, 4
mov dword [esp + 8], eax
lea eax, [ebx + 0x6c9b90c0]
mov dword [esp + 4], eax
lea eax, [ebx + 0x6c9b90d0]
mov dword [esp], eax
call sym._memmove
jmp 0x6c9b3b8a
mov dword [ebp - 0x18], esi
mov byte [ebp - 0x25], al
mov byte [ebp - 0x20], 0
jmp 0x6c9b3a78
movzx eax, word [esi + edx - 2]
mov word [ecx + edx - 2], ax
jmp 0x6c9b3bbb