Function at 0x1000d4c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
je 0x1000d4ce
jmp 0x1000d4f8
push 0x100d378c
push 0x444
push 0x100d37a0
push 0x100d37b8
push 8
push 0x100d37e0
call sym.glib_2.0.dll_g_log
add esp, 0x18
xor eax, eax
jmp 0x1000d6ae
xor eax, eax
jne 0x1000d4c6
push 0
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
push ecx
call sym.glib_2.0.dll_g_utf8_validate
add esp, 0xc
test eax, eax
je 0x1000d512
jmp 0x1000d53c
push 0x100d37e8
push 0x445
push 0x100d3810
push 0x100d3828
push 8
push 0x100d3850
call sym.glib_2.0.dll_g_log
add esp, 0x18
xor eax, eax
jmp 0x1000d6ae
xor edx, edx
jne 0x1000d4fc
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
push eax
call sym.glib_2.0.dll_g_utf8_to_utf16
add esp, 0x14
mov dword [ebp - 0x18], eax
push 2
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x1000d585
mov eax, dword [ebp - 0x18]
push eax
call sym.glib_2.0.dll_g_free
add esp, 4
xor eax, eax
jmp 0x1000d6ae
cmp dword [ebp - 0x10], 1
jne 0x1000d592
mov dword [ebp - 0x10], 2
mov ecx, dword [ebp - 0x10]
shl ecx, 1
push ecx
call sym.glib_2.0.dll_g_malloc
add esp, 4
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edx, dword [ebp - 0x10]
sub edx, 1
cmp eax, edx
je 0x1000d5de
mov eax, dword [ebp - 0x18]
push eax
call sym.glib_2.0.dll_g_free
add esp, 4
mov ecx, dword [ebp - 4]
push ecx
call sym.glib_2.0.dll_g_free
add esp, 4
xor eax, eax
jmp 0x1000d6ae
push 0x25
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR90.dll_wcschr]
add esp, 8
test eax, eax
je 0x1000d658
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
push 2
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x1000d658
mov eax, dword [ebp - 0x10]
shl eax, 1
push eax
call sym.glib_2.0.dll_g_malloc
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, dword [ebp - 0x10]
je 0x1000d64c
mov ecx, dword [ebp - 4]
push ecx
call sym.glib_2.0.dll_g_free
add esp, 4
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 4], edx
jmp 0x1000d658
mov eax, dword [ebp - 0x1c]
push eax
call sym.glib_2.0.dll_g_free
add esp, 4
push 0
push 0
push 0
push 0xffffffffffffffff
mov ecx, dword [ebp - 4]
push ecx
call sym.glib_2.0.dll_g_utf16_to_utf8
add esp, 0x14
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x18]
push edx
call sym.glib_2.0.dll_g_free
add esp, 4
mov eax, dword [ebp - 4]
push eax
call sym.glib_2.0.dll_g_free
add esp, 4
mov ecx, dword [ebp - 8]
push ecx
call sym.glib_2.0.dll_g_quark_from_string
add esp, 4
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
push edx
call sym.glib_2.0.dll_g_free
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
call sym.glib_2.0.dll_g_quark_to_string
add esp, 4
mov esp, ebp
pop ebp
ret