Function at 0x419af0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x18]
push edi
push 3
push ebx
mov dword [ebp - 4], 0xffffffff
call fcn.0041cbd0
add esp, 8
test eax, eax
je 0x419b3c
mov eax, dword [ebp + 0x14]
push 3
push eax
call fcn.0041cbd0
add esp, 8
test eax, eax
jne 0x419b33
mov edi, dword [ebp + 0x10]
push 3
push edi
call fcn.0041cbd0
add esp, 8
test eax, eax
je 0x419b3f
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0x10]
cmp dword [0x437fac], 0
je 0x419b77
push 0xc9
push 0x20
push 0x551558
call sub.MSVCR100.dll_memset
push 0x437fb0
push 2
push 0x551628
call fcn.0041e9d0
add esp, 0x18
mov dword [0x437fac], 0
movsx ecx, byte [0x551598]
push esi
push ecx
call dword [sym.imp.MSVCR100.dll_toupper]
mov esi, dword [sym.imp.MSVCR100.dll_strncmp]
add esp, 4
cmp eax, 0x59
jne 0x419c35
mov edx, dword [ebp + 0xc]
push 8
push edx
push 0x551558
call esi
add esp, 0xc
test eax, eax
jne 0x419c35
mov eax, dword [ebp + 0x14]
push 3
push eax
push 0x551576
call esi
add esp, 0xc
test eax, eax
jne 0x419c35
push 3
push edi
push 0x551573
call esi
add esp, 0xc
test eax, eax
jne 0x419bf5
push 3
push ebx
push 0x551579
call esi
add esp, 0xc
test eax, eax
je 0x419c15
push 3
push ebx
call fcn.0041cbd0
add esp, 8
test eax, eax
jne 0x419c15
push 3
push ebx
push 0x551579
call esi
add esp, 0xc
test eax, eax
jne 0x419c35
push 3
push edi
call fcn.0041cbd0
add esp, 8
test eax, eax
je 0x419c35
mov ecx, dword [ebp + 8]
push 8
push 0x551560
push ecx
call dword [sym.imp.MSVCR100.dll_strncpy]
add esp, 0xc
pop esi
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push 0x40
push 0x437fc0
push 0x551628
call dword [sym.imp.MSVCR100.dll__fsopen]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x419c5a
pop esi
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 1
push 0xc9
push 0x551558
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x419d81
lea esp, [esp]
movsx edx, byte [0x551598]
push edx
call dword [sym.imp.MSVCR100.dll_toupper]
add esp, 4
cmp eax, 0x59
jne 0x419d33
mov eax, dword [ebp + 0xc]
push 8
push eax
push 0x551558
call esi
add esp, 0xc
test eax, eax
jne 0x419d33
mov ecx, dword [ebp + 0x14]
push 3
push ecx
push 0x551576
call esi
add esp, 0xc
test eax, eax
jne 0x419d33
mov edx, dword [ebp + 0x10]
push 3
push edx
push 0x551573
call esi
add esp, 0xc
test eax, eax
jne 0x419cfa
push 3
push ebx
push 0x551579
call esi
add esp, 0xc
test eax, eax
je 0x419d1d
push 3
push ebx
call fcn.0041cbd0
add esp, 8
test eax, eax
jne 0x419d1d
push 3
push ebx
push 0x551579
call esi
add esp, 0xc
test eax, eax
jne 0x419d33
mov eax, dword [ebp + 0x10]
push 3
push eax
call fcn.0041cbd0
add esp, 8
test eax, eax
je 0x419d33
mov ecx, dword [ebp + 0xc]
push 0x551560
push ecx
call dword [sym.imp.ESC.SV.ISAMFacade.Interface.dll_isRataParameter]
add esp, 8
test eax, eax
jne 0x419d66
push edi
push 1
push 0xc9
push 0x551558
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x419c80
push edi
call dword [sym.imp.MSVCR100.dll_fclose]
mov eax, dword [ebp - 4]
add esp, 4
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
push 8
push 0x551560
push edx
call dword [sym.imp.MSVCR100.dll_strncpy]
add esp, 0xc
mov dword [ebp - 4], 1
push edi
call dword [sym.imp.MSVCR100.dll_fclose]
mov eax, dword [ebp - 4]
add esp, 4
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret