Function at 0x101fcf70
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
cmp dword [esi + 0x1c], 0
jge 0x101fcfbc
cmp dword [esi + 8], 0
je 0x101fcfa0
push str.PYTHONFAULTHANDLER
call edi
add esp, 4
test eax, eax
je 0x101fcfa0
cmp byte [eax], 0
jne 0x101fcfb5
lea eax, [esi + 0x54]
push str.faulthandler
push eax
call sym.python310.dll__Py_get_xoption
add esp, 8
test eax, eax
je 0x101fcfbc
mov dword [esi + 0x1c], 1
cmp dword [esi + 8], 0
je 0x101fcfda
push str.PYTHONPROFILEIMPORTTIME
call edi
add esp, 4
test eax, eax
je 0x101fcfda
cmp byte [eax], 0
je 0x101fcfda
lea ebx, [esi + 0x54]
jmp 0x101fcfef
lea ebx, [esi + 0x54]
push str.importtime
push ebx
call sym.python310.dll__Py_get_xoption
add esp, 8
test eax, eax
je 0x101fcff6
mov dword [esi + 0x24], 1
cmp dword [esi + 0x20], 0
jge 0x101fd0e6
cmp dword [esi + 8], 0
je 0x101fd06b
push str.PYTHONTRACEMALLOC
call edi
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
je 0x101fd06b
cmp byte [eax], 0
je 0x101fd06b
mov dword [ebp - 8], eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push 0xa
mov dword [eax], 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
mov ecx, dword [ebp - 8]
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp byte [ecx], 0
jne 0x101fd0d5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 0x22
je 0x101fd0d5
mov ecx, dword [ebp - 0xc]
xor eax, eax
test ecx, ecx
mov dword [ebp - 0xc], ecx
setns al
test eax, eax
je 0x101fd0d5
mov dword [esi + 0x20], ecx
push str.tracemalloc
push ebx
call sym.python310.dll__Py_get_xoption
add esp, 8
test eax, eax
je 0x101fd0e6
push 0x3d
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
add esp, 8
test eax, eax
je 0x101fd0de
lea ecx, [eax + 2]
lea edx, [ebp - 0xc]
call fcn.101fcc20
test eax, eax
jne 0x101fd0a8
mov ecx, dword [ebp - 0xc]
test ecx, ecx
setns al
test eax, eax
jne 0x101fd0e3
mov dword [ebp - 0x14], str._X_tracemallocNFRAME:_invalid_number_of_frames
mov dword [ebp - 0x18], str.config_init_tracemalloc
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], 1
movups xmm0, xmmword [ebp - 0x1c]
mov eax, dword [ebp + 8]
movups xmmword [eax], xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x14], str.PYTHONTRACEMALLOC:_invalid_number_of_frames
jmp 0x101fd0af
mov ecx, 1
mov dword [esi + 0x20], ecx
cmp dword [0x103bf1dc], 0
jge 0x101fd1b3
cmp dword [esi + 8], 0
je 0x101fd163
push str.PYTHONINTMAXSTRDIGITS
call edi
mov edi, eax
add esp, 4
test edi, edi
je 0x101fd163
cmp byte [edi], 0
je 0x101fd163
mov dword [ebp - 0xc], edi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push 0xa
mov dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov edi, eax
cmp byte [ecx], 0
jne 0x101fd22d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 0x22
je 0x101fd22d
mov dword [ebp - 8], edi
test edi, edi
je 0x101fd15d
cmp edi, 0x280
jl 0x101fd22d
mov dword [0x103bf1dc], edi
push 0x1038e614
push ebx
call sym.python310.dll__Py_get_xoption
add esp, 8
test eax, eax
je 0x101fd1b3
push 0x3d
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
add esp, 8
test eax, eax
je 0x101fd240
lea ecx, [eax + 2]
lea edx, [ebp - 8]
call fcn.101fcc20
test eax, eax
jne 0x101fd240
mov eax, dword [ebp - 8]
test eax, eax
je 0x101fd1ae
cmp eax, 0x280
jl 0x101fd240
mov dword [0x103bf1dc], eax
cmp dword [esi + 0x3c], 0
lea edi, [esi + 0x3c]
jne 0x101fd2a2
push str.pycache_prefix
push ebx
call sym.python310.dll__Py_get_xoption
add esp, 8
test eax, eax
je 0x101fd25b
push 0x3d
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
mov edx, eax
add esp, 8
test edx, edx
je 0x101fd253
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x101fd1f0
sub ecx, esi
sar ecx, 1
cmp ecx, 1
jbe 0x101fd253
lea eax, [edx + 2]
push eax
call sym.python310.dll__PyMem_RawWcsdup
add esp, 4
mov dword [edi], eax
test eax, eax
jne 0x101fd2a2
mov dword [ebp - 0x18], str.config_init_pycache_prefix
mov dword [ebp - 0x14], str.memory_allocation_failed
jmp 0x101fd0b6
mov dword [ebp - 0x14], str.PYTHONINTMAXSTRDIGITS:_invalid_limit__must_be___640_or_0_for_unlimited.
mov dword [ebp - 0x18], str.config_init_int_max_str_digits
jmp 0x101fd0b6
mov dword [ebp - 0x14], str._X_int_max_str_digits:_invalid_limit__must_be___640_or_0_for_unlimited.
mov dword [ebp - 0x18], str.config_init_int_max_str_digits
jmp 0x101fd0b6
mov dword [edi], 0
jmp 0x101fd2a2
cmp dword [esi + 8], 0
je 0x101fd28d
push str.PYTHONPYCACHEPREFIX
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wgetenv]
add esp, 4
test eax, eax
je 0x101fd28d
cmp word [eax], 0
je 0x101fd28d
push eax
push edi
lea eax, [ebp - 0x1c]
push esi
push eax
call sym.python310.dll_PyConfig_SetString
add esp, 0x10
movups xmm0, xmmword [eax]
jmp 0x101fd296
mov dword [edi], 0
xorps xmm0, xmm0
movd eax, xmm0
test eax, eax
jne 0x101fd0c8
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