Function at 0x40a9a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x4a8b70]
xor eax, ebp
mov dword [ebp - 4], eax
push str.SMYRNA_PATH
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
mov dword [0x4b38f8], eax
cmp dword [0x4b38f8], 0
jne 0x40ab69
push 0x1c
lea eax, [ebp - 0x42c]
push eax
push fcn.0040a9a0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x40aa0d
push str.failed_to_get_handle_for_executable._n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 8
mov eax, 1
jmp 0x40ac9b
push 0x400
lea ecx, [ebp - 0x408]
push ecx
mov edx, dword [ebp - 0x428]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x410], eax
cmp dword [ebp - 0x410], 0
je 0x40aa41
cmp dword [ebp - 0x410], 0x400
jne 0x40aa63
push str.failed_to_get_path_for_executable._n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 8
mov eax, 1
jmp 0x40ac9b
push 0x5c
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.MSVCR90.dll_strrchr]
add esp, 8
mov dword [ebp - 0x40c], eax
cmp dword [ebp - 0x40c], 0
jne 0x40aaad
lea ecx, [ebp - 0x408]
push ecx
push 0x4930fc
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
mov eax, 1
jmp 0x40ac9b
mov edx, dword [ebp - 0x40c]
lea eax, [ebp - 0x408]
cmp edx, eax
je 0x40aadc
mov ecx, dword [ebp - 0x40c]
sub ecx, 1
mov dword [ebp - 0x40c], ecx
mov edx, dword [ebp - 0x40c]
movsx eax, byte [edx]
cmp eax, 0x5c
je 0x40aadc
jmp 0x40aaad
mov ecx, dword [ebp - 0x40c]
lea edx, [ebp - 0x408]
cmp ecx, edx
jne 0x40ab15
lea eax, [ebp - 0x408]
push eax
push str.no_backslash_in_path__s._n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
mov eax, 1
jmp 0x40ac9b
mov ecx, dword [ebp - 0x40c]
mov byte [ecx], 0
lea edx, [ebp - 0x408]
push edx
call sub.MSVCR90.dll_strlen
add esp, 4
add eax, 0x17
push eax
call dword [sym.imp.gvc.dll_zmalloc]
add esp, 4
mov dword [0x4b38f8], eax
lea eax, [ebp - 0x408]
push eax
mov ecx, dword [0x4b38f8]
push ecx
call sub.MSVCR90.dll_strcpy
add esp, 8
push str._sharegraphviz_smyrna
mov edx, dword [0x4b38f8]
push edx
call sub.MSVCR90.dll_strcat
add esp, 8
call fcn.00409110
push 0
push 0
call sub.libglib_2.0_0.dll_g_win32_get_package_installation_directory_utf8
add esp, 8
mov dword [0x4b8088], eax
push 0
push 0x49314c
mov eax, dword [0x4b8088]
push eax
call sub.libglib_2.0_0.dll_g_build_filename
add esp, 0xc
mov dword [0x4b8090], eax
push 0
push str.locale
push str.share
mov ecx, dword [0x4b8088]
push ecx
call sub.libglib_2.0_0.dll_g_build_filename
add esp, 0x10
mov dword [0x4b8084], eax
push 0x39c
call dword [sym.imp.gvc.dll_zmalloc]
add esp, 4
mov dword [0x4b8070], eax
mov edx, dword [0x4b8070]
push edx
call fcn.00414ff0
add esp, 4
mov eax, dword [0x4b8070]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040acb0
add esp, 0xc
mov ecx, dword [0x4b8070]
mov dword [ecx + 0x31c], eax
mov edx, dword [0x4b8070]
cmp dword [edx + 0x31c], 0
je 0x40ac1b
mov eax, dword [0x4b8070]
mov dword [eax + 0x320], 1
mov ecx, dword [0x4b8070]
cmp dword [ecx + 0x394], 1
jne 0x40ac5d
mov edx, dword [0x4b8070]
mov eax, dword [edx + 0x398]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp + 8]
push edx
push 1
push 0x4b
push 0x20
push 0x258
push 0x320
push 0
push 0
call fcn.00408a60
add esp, 0x28
jmp 0x40ac6d
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040ae60
add esp, 8
mov edx, dword [0x4b8088]
push edx
call sub.libglib_2.0_0.dll_g_free
add esp, 4
mov eax, dword [0x4b8090]
push eax
call sub.libglib_2.0_0.dll_g_free
add esp, 4
mov ecx, dword [0x4b8084]
push ecx
call sub.libglib_2.0_0.dll_g_free
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044283e
mov esp, ebp
pop ebp
ret