Function at 0x1000db30
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x440
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x1003c400
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
mov esi, dword fs:[0]
mov dword [ebp - 0x18], esi
mov dword fs:[0], ecx
lea ecx, [ebp - 0x44c]
push eax
call fcn.10038170
add esp, 4
mov eax, dword [ebp - 0x44c]
cmp eax, 0x80000000
jne 0x1000db9c
lea ecx, [ebp - 0x44c]
call fcn.10004ed0
mov dword [edi], closesocket
jmp 0x1000dd56
mov ecx, dword [ebp - 0x448]
mov esi, 0x200
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 2
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x30], ecx
cmp esi, 0x201
jae 0x1000dc00
jmp 0x1000dbee
jbe 0x1000dc89
cmp esi, 0x201
jae 0x1000dc00
mov dword [ebp - 0x20], 0x200
lea ebx, [ebp - 0x44c]
mov edi, esi
jmp 0x1000dc31
mov edi, dword [ebp - 0x24]
sub esi, edi
je 0x1000dc25
mov dword [ebp - 0x10], 2
lea ecx, [ebp - 0x3c]
mov edx, edi
push esi
call fcn.1007b250
add esp, 4
mov edi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
push ebx
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x1000dc58
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1000dd6c
cmp esi, edi
jne 0x1000dbe0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1000dd8b
lea esi, [edi + edi]
test edi, edi
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x1000dbee
jmp 0x1000dc00
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], 2
cmp esi, eax
ja 0x1000dda8
lea eax, [ebp - 0x4c]
push esi
push ebx
push eax
call sym.kso.dll___std::ffi::os_str::OsString_as_std::os::windows::ffi::OsStringExt_::from_wide::hd1f87d65064ecb80
add esp, 0xc
mov eax, dword [ebp - 0x40]
mov esi, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1000dcd3
add eax, eax
push 2
push eax
push dword [ebp - 0x28]
mov edi, ecx
call sym.kso.dll___rust_dealloc
mov ecx, edi
add esp, 0xc
mov edi, dword [ebp + 8]
cmp esi, 0x80000000
jne 0x1000dd31
cmp bl, 3
mov dword [edi], closesocket
jne 0x1000dd3f
mov eax, dword [ecx]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x28], eax
push eax
mov dword [ebp - 0x24], ecx
call dword [ecx]
add esp, 4
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx + 4]
test eax, eax
je 0x1000dd1d
push dword [ecx + 8]
push eax
push dword [ebp - 0x28]
call sym.kso.dll___rust_dealloc
add esp, 0xc
push 4
push 0xc
push dword [ebp - 0x20]
call sym.kso.dll___rust_dealloc
add esp, 0xc
mov edi, dword [ebp + 8]
jmp 0x1000dd3f
mov eax, dword [ebp - 0x20]
mov dword [edi], esi
mov dword [edi + 4], ebx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x1000dd56
add eax, eax
push 2
push eax
push dword [ebp - 0x30]
call sym.kso.dll___rust_dealloc
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edi
add esp, 0x440
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
mov esi, closesocket
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x1000dcbf
jmp 0x1000dcd3
mov dword [ebp - 0x10], 2
push 0x100815a8
push 0x28
push str.internal_error:_entered_unreachable_codel
call sym.kso.dll_core::panicking::panic::hd53872080d8d36e0
add esp, 0xc
jmp 0x1000ddb7
push 0x10081598
push eax
push esi
call sym.kso.dll_core::slice::index::slice_end_index_len_fail::h3099cda8f6e1d372
add esp, 0xc
ud2