Function at 0x4a1839
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x56f50a
call fcn.0051f140
sub esp, 0x250
push esi
push edi
mov dword [ebp - 0x2c], ecx
call fcn.004a1bb6
push 5
mov esi, str.ini_MusicRegion.ini
pop ecx
lea edi, [ebp - 0x5c]
lea eax, [ebp - 0x5c]
push 0x5c8eec
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
pop ecx
test edi, edi
pop ecx
mov dword [ebp - 0x18], edi
jne 0x4a189a
push 0x9c8
lea eax, [ebp - 0x5c]
push str.E:CQ2ClientRelease_17.1.93DGameMap3DGameMap.cpp
push eax
push str.ERROR:_file__s_not_found_at__s___d
call fcn.005185c3
add esp, 0x10
jmp 0x4a1ba8
and byte [ebp - 0x5d], 0
mov esi, dword [sym.imp.MSVCRT.dll_fscanf]
push ebx
push 1
pop ebx
jmp 0x4a18ad
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x15c]
push eax
push 0x5c8ed4
push edi
call esi
add esp, 0xc
cmp eax, 0xffffffff
je 0x4a1b9f
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x15c]
push str._MusicRegion_d_
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0xc
cmp eax, ebx
jne 0x4a18ad
lea eax, [ebp - 0x40]
push eax
push str.Mapid_u_n
push edi
call esi
add esp, 0xc
cmp eax, ebx
jne 0x4a18ad
lea eax, [ebp - 0x3c]
push eax
push str.Bound_X_d_n
push edi
call esi
add esp, 0xc
cmp eax, ebx
jne 0x4a18ad
lea eax, [ebp - 0x30]
push eax
push str.Bound_Y_d_n
push edi
call esi
add esp, 0xc
cmp eax, ebx
jne 0x4a18ad
lea eax, [ebp - 0x44]
push eax
push str.Bound_CX_d_n
push edi
call esi
add esp, 0xc
cmp eax, ebx
jne 0x4a18ad
lea eax, [ebp - 0x28]
push eax
push str.Bound_CY_d_n
push edi
call esi
add esp, 0xc
cmp eax, ebx
jne 0x4a18ad
lea eax, [ebp - 0x15c]
push eax
push str.TitleMusic_s_n
push edi
call esi
add esp, 0xc
cmp eax, ebx
jne 0x4a18ad
lea eax, [ebp - 0x20]
push eax
push str.TitleMusicTime_d_n
push edi
call esi
add esp, 0xc
cmp eax, ebx
jne 0x4a18ad
lea eax, [ebp - 0x1c]
push eax
push str.Amount_d_n
push edi
call esi
add esp, 0xc
cmp eax, ebx
jne 0x4a18ad
push 0x2c
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
test eax, eax
je 0x4a19b0
mov ecx, eax
call fcn.004a4e57
jmp 0x4a19b2
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4a18ad
mov ecx, dword [ebp - 0x3c]
push 0x14
mov dword [eax], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x30]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x28]
mov dword [eax + 8], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x38]
mov dword [eax + 0xc], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x44]
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x40]
mov dword [ecx + 0x18], eax
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
mov dword [ebp - 4], ebx
je 0x4a1a10
mov ecx, eax
call fcn.004a4e08
mov edi, eax
jmp 0x4a1a12
xor edi, edi
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
test edi, edi
mov dword [eax + 0x1c], edi
je 0x4a1a5b
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
inc eax
neg eax
sbb eax, eax
and eax, dword [ebp - 0x20]
mov dword [edi], eax
lea eax, [ebp - 0x15c]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [ebp + eax - 0x15c]
push eax
lea eax, [ebp - 0x15c]
push eax
lea ecx, [edi + 8]
call fcn.00402557
mov eax, dword [ebp - 0x10]
and dword [eax + 0x10], 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x2c]
lea ecx, [eax + 0x4dc]
call fcn.004a20a8
cmp dword [ebp - 0x1c], 0
jle 0x4a18aa
and byte [ebp - 0x15d], 0
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x1c], 0
jle 0x4a1b78
push dword [ebp - 0x14]
mov edi, dword [sym.imp.MSVCRT.dll__snprintf]
lea eax, [ebp - 0x25c]
push str.Music_d__s_n
push 0xff
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x18]
call esi
add esp, 0xc
cmp eax, ebx
jne 0x4a1b69
push dword [ebp - 0x14]
lea eax, [ebp - 0x25c]
push str.MusicTime_d__d_n
push 0xff
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x18]
call esi
add esp, 0xc
cmp eax, ebx
jne 0x4a1b69
push 0x14
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x48], eax
test eax, eax
mov dword [ebp - 4], 2
je 0x4a1b1f
mov ecx, eax
call fcn.004a4e08
jmp 0x4a1b21
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x24], eax
test eax, eax
je 0x4a1b69
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov eax, dword [ebp - 0x24]
lea edi, [eax + 8]
lea eax, [ebp - 0x15c]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [ebp + eax - 0x15c]
push eax
lea eax, [ebp - 0x15c]
push eax
mov ecx, edi
call fcn.00402557
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x20]
call fcn.004a5cc9
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x1c]
jl 0x4a1a93
lea eax, [ebp - 0x34]
push eax
push str.DelayTime_d
push dword [ebp - 0x18]
call esi
add esp, 0xc
cmp eax, ebx
jne 0x4a18aa
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x34]
mov dword [eax + 0x10], ecx
jmp 0x4a18aa
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret