Function at 0x10052e00
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x14
push ebx
mov eax, edx
push ebp
mov ebx, eax
mov dword [esp + 0x14], eax
push esi
mov ebp, ecx
push edi
mov dword [esp + 0x14], ebp
lea esi, [ebx + 2]
nop dword [eax + eax]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x10052e20
push 0
push 0
sub ebx, esi
push str.PATH
sar ebx, 1
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test edi, edi
jne 0x10052e96
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
jne 0x10052ed2
xor esi, esi
mov dword [esp + 0x18], esi
nop dword [eax + eax]
xor edx, edx
test esi, esi
je 0x10053003
movzx eax, word [esi]
test ax, ax
je 0x10053003
cmp eax, 0x22
jne 0x10052eec
movzx eax, word [esi + 2]
lea edi, [edx + 0x22]
add esi, 2
mov dword [esp + 0x10], esi
mov ecx, esi
test ax, ax
je 0x10052f1c
jmp 0x10052ef5
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_52]
lea eax, [edi + edi]
push 0xc8
push str.D:DevelopmentMillennium_vendor_vcpkg_buildtreeslibgit2_src_v1.4.2_3f39c3e750.clean_srcwin32path_w32.c
push eax
mov ecx, esi
call dword [0x1012f318]
call esi
mov esi, eax
add esp, 0xc
mov dword [esp + 0x18], esi
test esi, esi
je 0x10052ee1
push edi
push esi
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x10052e60
push str.could_not_load_PATH
push 2
call fcn.10028220
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov edi, 0x3b
mov dword [esp + 0x10], esi
movzx eax, word [esi]
mov ebp, esi
mov ecx, esi
nop dword [eax]
cmp ax, di
je 0x10052f16
movzx eax, word [ebp + 2]
lea esi, [ebp + 2]
inc edx
mov ecx, esi
mov ebp, esi
test ax, ax
jne 0x10052f00
cmp di, 0x22
jne 0x10052f25
cmp word [esi], 0
je 0x10052f25
lea esi, [ecx + 2]
cmp word [esi], 0x3b
jne 0x10052f39
nop dword [eax + eax]
add esi, 2
cmp word [esi], 0x3b
je 0x10052f30
mov ecx, dword [esp + 0x10]
xor edi, edi
test edx, edx
je 0x10052f55
test ebx, ebx
je 0x10052f55
cmp word [ecx + edx*2 - 2], 0x5c
mov eax, 1
cmovne edi, eax
lea eax, [edi + edx]
mov dword [esp + 0x10], eax
add eax, ebx
mov dword [esp + 0x20], eax
cmp eax, 0x104
jbe 0x10052f81
push str.path_too_long
push 3
call fcn.10028220
mov ebp, dword [esp + 0x1c]
add esp, 8
jmp 0x10052e60
lea ebp, [edx + edx]
push ebp
push ecx
push dword [esp + 0x1c]
call fcn.10109350
add esp, 0xc
test edi, edi
je 0x10052fa3
mov eax, dword [esp + 0x14]
mov ecx, 0x5c
mov word [eax + ebp], cx
mov ebp, dword [esp + 0x14]
lea eax, [ebx + ebx]
push eax
mov eax, dword [esp + 0x14]
push dword [esp + 0x20]
lea eax, [eax*2]
add eax, ebp
push eax
call fcn.10109350
mov eax, dword [esp + 0x2c]
add esp, 0xc
xor ecx, ecx
push ecx
push ebp
mov word [ebp + eax*2], cx
call fcn.101159d8
add esp, 8
test eax, eax
jne 0x10052e60
push dword [esp + 0x18]
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
mov ecx, esi
call dword [0x1012f318]
call esi
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
push dword [esp + 0x18]
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
mov ecx, esi
call dword [0x1012f318]
call esi
add esp, 4
xor eax, eax
mov word [ebp], ax
mov eax, 0xfffffffd
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret