Function at 0x10052d80
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 0x10052da0
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 0x10052e16
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
jne 0x10052e52
xor esi, esi
mov dword [esp + 0x18], esi
nop dword [eax + eax]
xor edx, edx
test esi, esi
je 0x10052f83
movzx eax, word [esi]
test ax, ax
je 0x10052f83
cmp eax, 0x22
jne 0x10052e6c
movzx eax, word [esi + 2]
lea edi, [edx + 0x22]
add esi, 2
mov dword [esp + 0x10], esi
mov ecx, esi
test ax, ax
je 0x10052e9c
jmp 0x10052e75
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 [0x101182f8]
call esi
mov esi, eax
add esp, 0xc
mov dword [esp + 0x18], esi
test esi, esi
je 0x10052e61
push edi
push esi
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x10052de0
push str.could_not_load_PATH
push 2
call fcn.10028180
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 0x10052e96
movzx eax, word [ebp + 2]
lea esi, [ebp + 2]
inc edx
mov ecx, esi
mov ebp, esi
test ax, ax
jne 0x10052e80
cmp di, 0x22
jne 0x10052ea5
cmp word [esi], 0
je 0x10052ea5
lea esi, [ecx + 2]
cmp word [esi], 0x3b
jne 0x10052eb9
nop dword [eax + eax]
add esi, 2
cmp word [esi], 0x3b
je 0x10052eb0
mov ecx, dword [esp + 0x10]
xor edi, edi
test edx, edx
je 0x10052ed5
test ebx, ebx
je 0x10052ed5
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 0x10052f01
push str.path_too_long
push 3
call fcn.10028180
mov ebp, dword [esp + 0x1c]
add esp, 8
jmp 0x10052de0
lea ebp, [edx + edx]
push ebp
push ecx
push dword [esp + 0x1c]
call fcn.100f5f90
add esp, 0xc
test edi, edi
je 0x10052f23
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.100f5f90
mov eax, dword [esp + 0x2c]
add esp, 0xc
xor ecx, ecx
push ecx
push ebp
mov word [ebp + eax*2], cx
call fcn.10101291
add esp, 8
test eax, eax
jne 0x10052de0
push dword [esp + 0x18]
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
mov ecx, esi
call dword [0x101182f8]
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 [0x101182f8]
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