Function at 0x175133f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
sub esp, 0x18
cmp dword [0x1753c288], 0
mov edi, edi
jne 0x1751343f
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1751342a
mov dword [0x1753c288], 1
jmp 0x1751343f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1751343f
mov dword [0x1753c288], 2
cmp dword [0x1753c288], 1
jne 0x1751353f
cmp dword [ebp - 8], 0
jne 0x17513468
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x17513468
xor eax, eax
jmp 0x175135ff
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
test edx, edx
je 0x17513496
mov eax, dword [ebp - 0xc]
add eax, 2
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
test edx, edx
jne 0x17513494
mov eax, dword [ebp - 0xc]
add eax, 2
mov dword [ebp - 0xc], eax
jmp 0x1751346e
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 8]
sar ecx, 1
add ecx, 1
mov dword [ebp - 0x14], ecx
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x175134e5
push 0x61
push str.f:dd_vctoolscrt_bld_self_x86crt_src_a_env.c
push 2
mov ecx, dword [ebp - 4]
push ecx
call fcn.1750a890
mov dword [ebp - 0x18], eax
add esp, 0x10
cmp dword [ebp - 0x18], 0
jne 0x175134f6
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x175135ff
push 0
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1751352d
push 2
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.1750b510
mov dword [ebp - 0x18], 0
add esp, 8
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, dword [ebp - 0x18]
jmp 0x175135ff
cmp dword [0x1753c288], 2
je 0x17513555
cmp dword [0x1753c288], 0
jne 0x175135fd
cmp dword [ebp - 0x18], 0
jne 0x17513571
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x17513571
xor eax, eax
jmp 0x175135ff
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
movsx edx, byte [ecx]
test edx, edx
je 0x1751359f
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
movsx edx, byte [ecx]
test edx, edx
jne 0x1751359d
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x17513577
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 4], ecx
push 0x8c
push str.f:dd_vctoolscrt_bld_self_x86crt_src_a_env.c
push 2
mov edx, dword [ebp - 4]
push edx
call fcn.1750a890
mov dword [ebp - 0x10], eax
add esp, 0x10
cmp dword [ebp - 0x10], 0
jne 0x175135da
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x175135ff
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.175084e0
mov ecx, dword [ebp - 0x18]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [ebp - 0x10]
jmp 0x175135ff
xor eax, eax
mov esp, ebp
pop ebp
ret