Function at 0x1004b470
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1040
call fcn.10093340
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x103c], 0
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.MSVCR90.dll__fstat64i32]
add esp, 8
test eax, eax
jge 0x1004b4e3
call dword [sym.imp.MSVCR90.dll__errno]
mov edx, dword [eax]
push edx
call sym.glib_2.0.dll_g_strerror
add esp, 4
push eax
call dword [sym.imp.MSVCR90.dll__errno]
mov eax, dword [eax]
push eax
call sym.glib_2.0.dll_g_file_error_from_errno
add esp, 4
push eax
call sym.glib_2.0.dll_g_file_error_quark
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call sym.glib_2.0.dll_g_set_error_literal
add esp, 0x10
xor eax, eax
jmp 0x1004b682
movzx edx, word [ebp - 0x2a]
and edx, 0x8000
jne 0x1004b518
push str.Not_a_regular_file
call sym.glib_2.0.dll_glib_gettext
add esp, 4
push eax
push 1
call sym.glib_2.0.dll_g_key_file_error_quark
push eax
mov eax, dword [ebp + 0x14]
push eax
call sym.glib_2.0.dll_g_set_error_literal
add esp, 0x10
xor eax, eax
jmp 0x1004b682
cmp dword [ebp - 0x1c], 0
jne 0x1004b547
push str.File_is_empty
call sym.glib_2.0.dll_glib_gettext
add esp, 4
push eax
push 1
call sym.glib_2.0.dll_g_key_file_error_quark
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call sym.glib_2.0.dll_g_set_error_literal
add esp, 0x10
xor eax, eax
jmp 0x1004b682
mov edx, dword [ebp + 8]
cmp dword [edx + 0x14], 0
jbe 0x1004b568
mov eax, dword [ebp + 8]
push eax
call fcn.1004ac70
add esp, 4
mov ecx, dword [ebp + 8]
push ecx
call fcn.1004ad40
add esp, 4
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [edx + 0x1c], eax
push 0x1000
lea ecx, [ebp - 0x1038]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCR90.dll__read]
add esp, 0xc
mov dword [ebp - 0x1040], eax
cmp dword [ebp - 0x1040], 0
jne 0x1004b59e
jmp 0x1004b62a
cmp dword [ebp - 0x1040], 0
jge 0x1004b5fc
call dword [sym.imp.MSVCR90.dll__errno]
cmp dword [eax], 4
je 0x1004b5bd
call dword [sym.imp.MSVCR90.dll__errno]
cmp dword [eax], 0xb
jne 0x1004b5bf
jmp 0x1004b61d
call dword [sym.imp.MSVCR90.dll__errno]
mov eax, dword [eax]
push eax
call sym.glib_2.0.dll_g_strerror
add esp, 4
push eax
call dword [sym.imp.MSVCR90.dll__errno]
mov ecx, dword [eax]
push ecx
call sym.glib_2.0.dll_g_file_error_from_errno
add esp, 4
push eax
call sym.glib_2.0.dll_g_file_error_quark
push eax
mov edx, dword [ebp + 0x14]
push edx
call sym.glib_2.0.dll_g_set_error_literal
add esp, 0x10
xor eax, eax
jmp 0x1004b682
lea eax, [ebp - 0x103c]
push eax
mov ecx, dword [ebp - 0x1040]
push ecx
lea edx, [ebp - 0x1038]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.1004b150
add esp, 0x10
cmp dword [ebp - 0x103c], 0
je 0x1004b571
cmp dword [ebp - 0x103c], 0
je 0x1004b64a
mov ecx, dword [ebp - 0x103c]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call sym.glib_2.0.dll_g_propagate_error
add esp, 8
xor eax, eax
jmp 0x1004b682
lea eax, [ebp - 0x103c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1004b0b0
add esp, 8
cmp dword [ebp - 0x103c], 0
je 0x1004b67d
mov edx, dword [ebp - 0x103c]
push edx
mov eax, dword [ebp + 0x14]
push eax
call sym.glib_2.0.dll_g_propagate_error
add esp, 8
xor eax, eax
jmp 0x1004b682
mov eax, 1
mov ecx, dword [ebp - 0x34]
xor ecx, ebp
call fcn.10001000
mov esp, ebp
pop ebp
ret