Function at 0x10206720
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
lea eax, [ebp - 0x1c]
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
push eax
mov edx, esi
mov ecx, edi
call fcn.10205c80
add esp, 4
cmp dword [eax], 0
je 0x10206752
movups xmm0, xmmword [eax]
mov eax, dword [ebp + 8]
movups xmmword [eax], xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x10]
lea ebx, [esi + 0x1c]
mov dword [esi + 8], eax
mov ecx, dword [edi + 0x14]
push str.PYTHONLEGACYWINDOWSFSENCODING
mov dword [esi + 0xc], ecx
mov eax, dword [edi + 0x18]
push ebx
push ecx
mov dword [esi + 0x24], eax
call sym.python310.dll__Py_get_env_flag
mov eax, dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 0xc
cmp dword [esi + 0x10], 0
mov dword [ebp - 8], eax
jne 0x10206790
mov dword [esi + 0x14], 0
jmp 0x10206860
cmp dword [esi + 0xc], 0
je 0x10206847
push str.PYTHONCOERCECLOCALE
call eax
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x10206847
cmp byte [ecx], 0
je 0x10206847
mov edx, 0x1036b6c0
nop dword [eax]
mov bl, byte [eax]
cmp bl, byte [edx]
jne 0x102067e0
test bl, bl
je 0x102067dc
mov bl, byte [eax + 1]
cmp bl, byte [edx + 1]
jne 0x102067e0
add eax, 2
add edx, 2
test bl, bl
jne 0x102067c0
xor eax, eax
jmp 0x102067e5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x102067f6
lea ebx, [esi + 0x1c]
cmp dword [esi + 0x14], eax
jge 0x10206847
mov dword [esi + 0x14], eax
jmp 0x10206847
mov eax, str.warn
nop dword [eax + eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x10206820
test dl, dl
je 0x1020681c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x10206820
add ecx, 2
add eax, 2
test dl, dl
jne 0x10206800
xor eax, eax
jmp 0x10206825
sbb eax, eax
or eax, 1
lea ebx, [esi + 0x1c]
test eax, eax
jne 0x1020683a
cmp dword [esi + 0x18], eax
jge 0x10206847
mov dword [esi + 0x18], 1
jmp 0x10206847
cmp dword [esi + 0x14], 0
jge 0x10206847
mov dword [esi + 0x14], 1
mov eax, dword [esi + 0x14]
test eax, eax
js 0x10206853
cmp eax, 1
jne 0x1020685a
mov dword [esi + 0x14], 0
cmp dword [esi + 0x18], 0
jge 0x10206867
mov dword [esi + 0x18], 0
cmp dword [ebx], 0
je 0x102068e7
mov dword [esi + 0x20], 0
mov edi, dword [ebp - 8]
cmp dword [esi + 0x28], 0
jne 0x10206a8c
cmp dword [esi + 0xc], 0
je 0x10206a8c
push str.PYTHONMALLOC
call edi
add esp, 4
test eax, eax
je 0x10206a8c
cmp byte [eax], 0
je 0x10206a8c
lea ecx, [ebp - 8]
push ecx
push eax
call sym.python310.dll__PyMem_GetAllocatorName
add esp, 8
test eax, eax
jns 0x10206a86
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], str.preconfig_init_allocator
mov dword [ebp - 0x14], str.PYTHONMALLOC:_unknown_allocator
mov dword [ebp - 0x10], 0
movups xmm0, xmmword [ebp - 0x1c]
movups xmmword [eax], xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x20], 0
jge 0x10206873
lea eax, [edi + 8]
push str.utf8
push eax
call sym.python310.dll__Py_get_xoption
add esp, 8
test eax, eax
je 0x102069a8
push 0x3d
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
add esp, 8
test eax, eax
je 0x1020699b
lea edx, [eax + 2]
mov ecx, 0x1038f3ac
mov eax, edx
mov di, word [eax]
cmp di, word [ecx]
jne 0x1020694a
test di, di
je 0x10206946
mov di, word [eax + 2]
cmp di, word [ecx + 2]
jne 0x1020694a
add eax, 4
add ecx, 4
test di, di
jne 0x10206924
xor eax, eax
jmp 0x1020694f
sbb eax, eax
or eax, 1
test eax, eax
je 0x1020699b
mov eax, 0x1038f3b0
mov cx, word [edx]
cmp cx, word [eax]
jne 0x1020697e
test cx, cx
je 0x1020697a
mov cx, word [edx + 2]
cmp cx, word [eax + 2]
jne 0x1020697e
add edx, 4
add eax, 4
test cx, cx
jne 0x10206958
xor eax, eax
jmp 0x10206983
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1020698f
mov dword [esi + 0x20], eax
jmp 0x10206873
mov dword [ebp - 0x14], str.invalid__X_utf8_option_value
jmp 0x10206a4a
mov eax, 1
mov dword [esi + 0x20], eax
jmp 0x10206873
cmp dword [esi + 0xc], 0
mov edi, dword [ebp - 8]
je 0x10206a70
push str.PYTHONUTF8
call edi
add esp, 4
test eax, eax
je 0x10206a70
cmp byte [eax], 0
je 0x10206a70
mov edx, 0x1038f3c0
mov ecx, eax
mov bl, byte [ecx]
cmp bl, byte [edx]
jne 0x102069f7
test bl, bl
je 0x102069f3
mov bl, byte [ecx + 1]
cmp bl, byte [edx + 1]
jne 0x102069f7
add ecx, 2
add edx, 2
test bl, bl
jne 0x102069d7
xor ecx, ecx
jmp 0x102069fc
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jne 0x10206a0d
mov eax, 1
mov dword [esi + 0x20], eax
jmp 0x10206876
mov ecx, 0x1036b6c0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10206a32
test dl, dl
je 0x10206a2e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10206a32
add eax, 2
add ecx, 2
test dl, dl
jne 0x10206a12
xor eax, eax
jmp 0x10206a37
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10206a43
mov dword [esi + 0x20], eax
jmp 0x10206876
mov dword [ebp - 0x14], str.invalid_PYTHONUTF8_environment_variable_value
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], str.preconfig_init_utf8_mode
mov dword [ebp - 0x1c], 1
movups xmm0, xmmword [ebp - 0x1c]
movups xmmword [eax], xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x20], 0
jge 0x10206876
mov dword [esi + 0x20], 0
jmp 0x10206876
mov eax, dword [ebp - 8]
mov dword [esi + 0x28], eax
cmp dword [esi + 0x24], 0
je 0x10206a9f
cmp dword [esi + 0x28], 0
jne 0x10206a9f
mov dword [esi + 0x28], 2
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov esp, ebp
pop ebp
ret