Function at 0x10058980
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
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 - 4], eax
cmp dword [ebp - 4], 0
jne 0x100589aa
xor eax, eax
jmp 0x10058bb0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
call sym.glib_2.0.dll_g_free
add esp, 4
cmp dword [ebp - 8], 0xffffffff
jne 0x100589d0
xor eax, eax
jmp 0x10058bb0
mov eax, dword [ebp + 0xc]
and eax, 0x10
je 0x100589e2
mov eax, 1
jmp 0x10058bb0
mov ecx, dword [ebp + 0xc]
and ecx, 1
je 0x100589fc
mov edx, dword [ebp - 8]
and edx, 0x50
jne 0x100589fc
mov eax, 1
jmp 0x10058bb0
mov eax, dword [ebp + 0xc]
and eax, 4
je 0x10058a16
mov ecx, dword [ebp - 8]
and ecx, 0x10
je 0x10058a16
mov eax, 1
jmp 0x10058bb0
mov edx, dword [ebp + 0xc]
and edx, 8
je 0x10058bae
push 0x2e
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR90.dll_strrchr]
add esp, 8
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x18], 0
jne 0x10058a46
jmp 0x10058bae
push str..exe
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.MSVCR90.dll__stricmp]
add esp, 8
test eax, eax
je 0x10058a9e
push str..cmd
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.MSVCR90.dll__stricmp]
add esp, 8
test eax, eax
je 0x10058a9e
push str..bat
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.MSVCR90.dll__stricmp]
add esp, 8
test eax, eax
je 0x10058a9e
push str..com
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.MSVCR90.dll__stricmp]
add esp, 8
test eax, eax
jne 0x10058aa8
mov eax, 1
jmp 0x10058bb0
push str.PATHEXT
call sym.glib_2.0.dll_g_getenv_utf8
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x10058ac3
jmp 0x10058bae
push 0xffffffffffffffff
mov edx, dword [ebp - 0x14]
push edx
call sym.glib_2.0.dll_g_utf8_casefold
add esp, 8
mov dword [ebp - 0x14], eax
push 0xffffffffffffffff
mov eax, dword [ebp - 0x18]
push eax
call sym.glib_2.0.dll_g_utf8_casefold
add esp, 8
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call sub.MSVCR90.dll_strlen
add esp, 4
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0xc], edx
mov eax, 1
test eax, eax
je 0x10058b8f
push 0x3b
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.MSVCR90.dll_strchr]
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x10058b31
mov edx, dword [ebp - 0xc]
push edx
call sub.MSVCR90.dll_strlen
add esp, 4
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0xc]
cmp dword [ebp - 0x10], eax
jne 0x10058b73
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x18]
push eax
call sub.MSVCR90.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x10058b73
mov ecx, dword [ebp - 0x14]
push ecx
call sym.glib_2.0.dll_g_free
add esp, 4
mov edx, dword [ebp - 0x18]
push edx
call sym.glib_2.0.dll_g_free
add esp, 4
mov eax, 1
jmp 0x10058bb0
mov eax, dword [ebp - 0x1c]
movsx ecx, byte [eax]
test ecx, ecx
je 0x10058b88
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0xc], edx
jmp 0x10058b8a
jmp 0x10058b8f
jmp 0x10058afa
mov eax, dword [ebp - 0x14]
push eax
call sym.glib_2.0.dll_g_free
add esp, 4
mov ecx, dword [ebp - 0x18]
push ecx
call sym.glib_2.0.dll_g_free
add esp, 4
jmp 0x10058bae
xor eax, eax
mov esp, ebp
pop ebp
ret