Function at 0x402fa6
Capabilities:
Check if file exists
Get file attributes
Read .ini file
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xbc
push esi
mov esi, str.C:DATARASATMCOPY.RAS
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4032cd
push ebx
push edi
push 0x14
xor ebx, ebx
lea eax, [ebp - 8]
push ebx
push eax
call sub.MSVCR71.dll_memset
push ebx
push 0x40000000
push 3
push ebx
push 1
push 0x80000000
push esi
call fcn.004016ab
add esp, 0x28
push 0x4028e6
push 0x4072d0
mov esi, eax
push 0x14
lea eax, [ebp - 8]
push eax
push esi
mov dword [0x4072d8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
push 1
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_SleepEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 8]
push eax
call sub.MSVCR71.dll_strlen
pop ecx
mov esi, eax
xor ecx, ecx
cmp esi, ebx
jle 0x40304a
mov al, byte [ebp + ecx - 8]
cmp al, 0x30
jl 0x403045
cmp al, 0x39
jg 0x403045
inc ecx
cmp ecx, esi
jl 0x403032
jmp 0x40304a
mov byte [ebp + ecx - 8], 0
mov edi, str.ATMINST.INF
push edi
push ebx
push str.RasCount
mov esi, str.ATMCOPYRAS
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 0xa
mov dword [ebp + 0x6c], eax
jne 0x403071
mov dword [ebp + 0x6c], 9
mov eax, dword [ebp + 0x6c]
cmp eax, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov dword [ebp + 0x70], eax
jle 0x4031c3
push 0xa
lea eax, [ebp + 0x74]
push eax
push dword [ebp + 0x70]
call dword [sym.imp.MSVCR71.dll__itoa]
lea eax, [ebp + 0x30]
push str.RASINF
push eax
call sub.MSVCR71.dll_strcpy
lea eax, [ebp + 0x74]
push eax
lea eax, [ebp + 0x30]
push eax
call sub.MSVCR71.dll_strcat
lea eax, [ebp + 0x58]
push str.TIME
push eax
call sub.MSVCR71.dll_strcpy
lea eax, [ebp + 0x74]
push eax
lea eax, [ebp + 0x58]
push eax
call sub.MSVCR71.dll_strcat
lea eax, [ebp + 0x44]
push 0x405a44
push eax
call sub.MSVCR71.dll_strcpy
lea eax, [ebp + 0x74]
push eax
lea eax, [ebp + 0x44]
push eax
call sub.MSVCR71.dll_strcat
add esp, 0x3c
push edi
push 0x14
lea eax, [ebp - 0x1c]
push eax
push 0x4055ab
lea eax, [ebp + 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edi
push 0x14
lea eax, [ebp - 0x30]
push eax
push 0x4055ab
lea eax, [ebp + 0x58]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edi
push 0x14
lea eax, [ebp - 0x44]
push eax
push 0x4055ab
lea eax, [ebp + 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xa
lea eax, [ebp + 0x74]
push eax
mov eax, dword [ebp + 0x70]
inc eax
push eax
call dword [sym.imp.MSVCR71.dll__itoa]
lea eax, [ebp + 0x30]
push str.RASINF
push eax
call sub.MSVCR71.dll_strcpy
lea eax, [ebp + 0x74]
push eax
lea eax, [ebp + 0x30]
push eax
call sub.MSVCR71.dll_strcat
lea eax, [ebp + 0x58]
push str.TIME
push eax
call sub.MSVCR71.dll_strcpy
lea eax, [ebp + 0x74]
push eax
lea eax, [ebp + 0x58]
push eax
call sub.MSVCR71.dll_strcat
lea eax, [ebp + 0x44]
push 0x405a44
push eax
call sub.MSVCR71.dll_strcpy
lea eax, [ebp + 0x74]
push eax
lea eax, [ebp + 0x44]
push eax
call sub.MSVCR71.dll_strcat
add esp, 0x3c
push edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x30]
push eax
push esi
call ebx
push edi
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 0x58]
push eax
push esi
call ebx
push edi
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp + 0x44]
push eax
push esi
call ebx
dec dword [ebp + 0x70]
cmp dword [ebp + 0x70], 0
jg 0x403085
lea eax, [ebp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x14
lea eax, [ebp + 0xc]
push 0
push eax
call sub.MSVCR71.dll_memset
push 4
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x20]
call fcn.004028f2
push 2
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x22]
call fcn.004028f2
push 2
lea eax, [ebp + 0x12]
push eax
push dword [ebp + 0x26]
call fcn.004028f2
push 2
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x28]
call fcn.004028f2
push 2
lea eax, [ebp + 0x16]
push eax
push dword [ebp + 0x2a]
call fcn.004028f2
add esp, 0x48
push 0xa
lea eax, [ebp + 0x74]
push eax
push 1
call dword [sym.imp.MSVCR71.dll__itoa]
lea eax, [ebp + 0x30]
push str.RASINF
push eax
call sub.MSVCR71.dll_strcpy
lea eax, [ebp + 0x74]
push eax
lea eax, [ebp + 0x30]
push eax
call sub.MSVCR71.dll_strcat
lea eax, [ebp + 0x58]
push str.TIME
push eax
call sub.MSVCR71.dll_strcpy
lea eax, [ebp + 0x74]
push eax
lea eax, [ebp + 0x58]
push eax
call sub.MSVCR71.dll_strcat
lea eax, [ebp + 0x44]
push 0x405a44
push eax
call sub.MSVCR71.dll_strcpy
lea eax, [ebp + 0x74]
push eax
lea eax, [ebp + 0x44]
push eax
call sub.MSVCR71.dll_strcat
add esp, 0x3c
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0x30]
push eax
push esi
call ebx
push edi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 0x58]
push eax
push esi
call ebx
push edi
push 0x405a40
lea eax, [ebp + 0x44]
push eax
push esi
call ebx
push 0xa
lea eax, [ebp + 0x74]
push eax
mov eax, dword [ebp + 0x6c]
inc eax
push eax
call dword [sym.imp.MSVCR71.dll__itoa]
add esp, 0xc
push edi
lea eax, [ebp + 0x74]
push eax
push str.RasCount
push esi
call ebx
pop edi
pop ebx
pop esi
add ebp, 0x78
leave
ret