Function at 0x507c6d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc3c
mov dword [ebp - 0xc2c], eax
mov ebx, edx
mov edx, 0x5f8195
call fcn.00427968
test eax, eax
je 0x507eed
mov edi, eax
call fcn.00507b89
mov dword [esp + 0xc], edi
dec eax
jle 0x507cef
mov dword [esp + 8], 0x3ff
mov dword [esp + 4], 1
lea esi, [ebp - 0xc18]
mov dword [esp], esi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov edx, eax
test eax, eax
jns 0x507cce
mov eax, edi
call fcn.00425b84
jmp 0x507d11
mov byte [ebp + eax - 0xc18], 0
mov dword [ebp - 0xc1c], esi
lea ecx, [ebp - 0xc1c]
lea eax, [ebp - 0x818]
call fcn.0042ff6c
jmp 0x507d23
mov dword [esp + 8], 0x400
mov dword [esp + 4], 1
lea eax, [ebp - 0x818]
mov dword [esp], eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
test eax, eax
jns 0x507d1b
mov eax, 0xfffffffd
jmp 0x507ef2
mov byte [ebp + eax - 0x818], 0
lea esi, [ebp - 0x818]
mov dword [esp], esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
test eax, eax
je 0x507d6a
lea edx, [eax - 1]
mov dword [ebp - 0xc30], edx
movsx eax, byte [ebp + eax - 0x819]
mov dword [esp + 4], eax
mov dword [esp], 0x5f8198
call sub.api_ms_win_crt_private_l1_1_0.dll_strchr
test eax, eax
je 0x507d6a
mov edx, dword [ebp - 0xc30]
mov byte [ebp + edx - 0x818], 0
jmp 0x507d29
xor eax, eax
mov dword [ebx], eax
mov al, byte [ebp - 0x818]
cmp al, 0x7b
jne 0x507d9b
mov dword [esp + 4], 0x5f819d
mov dword [esp], esi
call sub.api_ms_win_crt_private_l1_1_0.dll_strstr
test eax, eax
je 0x507eac
mov dword [ebx], 2
jmp 0x507ee2
cmp al, 0x3c
jne 0x507eac
mov dword [esp + 4], 0x2e
mov eax, dword [ebp - 0xc2c]
mov dword [esp], eax
call sub.api_ms_win_crt_private_l1_1_0.dll_strrchr
mov dword [esp + 8], 5
mov dword [esp + 4], 0x5f81a0
mov dword [esp], eax
mov dword [ebp - 0xc2c], eax
call sub.api_ms_win_crt_string_l1_1_0.dll__strnicmp
test eax, eax
mov edx, dword [ebp - 0xc2c]
jne 0x507de9
mov dword [ebx], 3
jmp 0x507e0b
mov dword [esp + 8], 5
mov dword [esp + 4], str..ttml
mov dword [esp], edx
call sub.api_ms_win_crt_string_l1_1_0.dll__strnicmp
test eax, eax
jne 0x507e0b
mov dword [ebx], 6
mov dword [esp + 4], 0x5f81ac
mov dword [esp], esi
call sub.api_ms_win_crt_private_l1_1_0.dll_strstr
test eax, eax
je 0x507e44
cmp byte [eax + 2], 0
jne 0x507e44
mov dword [esp + 8], edi
mov dword [esp + 4], 0x800
mov dword [esp], esi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fgets
test eax, eax
jne 0x507e44
mov byte [ebp - 0x818], 0
mov dword [esp + 4], 0x5f81af
mov dword [esp], esi
call sub.api_ms_win_crt_private_l1_1_0.dll_strstr
test eax, eax
jne 0x507e6c
mov dword [esp + 4], str.text3GTrack
mov dword [esp], esi
call sub.api_ms_win_crt_private_l1_1_0.dll_strstr
test eax, eax
je 0x507e74
mov dword [ebx], 4
jmp 0x507ee2
mov dword [esp + 4], str.TextStream
mov dword [esp], esi
call sub.api_ms_win_crt_private_l1_1_0.dll_strstr
test eax, eax
je 0x507e90
mov dword [ebx], 3
jmp 0x507ee2
mov dword [esp + 4], 0x5f81d7
mov dword [esp], esi
call sub.api_ms_win_crt_private_l1_1_0.dll_strstr
test eax, eax
je 0x507ee2
mov dword [ebx], 6
jmp 0x507ee2
mov dword [esp + 4], 0x5f81da
mov dword [esp], esi
call sub.api_ms_win_crt_private_l1_1_0.dll_strstr
test eax, eax
je 0x507ec8
mov dword [ebx], 5
jmp 0x507ee2
mov dword [esp + 4], 0x5f81e1
mov dword [esp], esi
call sub.api_ms_win_crt_private_l1_1_0.dll_strstr
test eax, eax
je 0x507ee2
mov dword [ebx], 1
mov eax, edi
call fcn.00425b84
xor eax, eax
jmp 0x507ef2
mov eax, 0xfffffff4
add esp, 0xc3c
pop ebx
pop esi
pop edi
pop ebp
ret