Function at 0x482a4f
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x51bbfe
call fcn.004edf30
sub esp, 0x250
push ebx
push esi
push edi
mov dword [ebp - 0x2c], ecx
call fcn.00482db7
push 5
mov esi, str.ini_MusicRegion.ini
pop ecx
lea edi, [ebp - 0x5c]
lea eax, [ebp - 0x5c]
push 0x55c338
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 0x482abb
push 0x9a8
lea eax, [ebp - 0x5c]
push str.D:CQ2ClientRelease_11.17.103DGameMap3DGameMap.cpp
push eax
push str.ERROR:_file__s_not_found_at__s___d
call fcn.004e9e6f
add esp, 0x10
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
and byte [ebp - 0x5d], 0
mov esi, dword [sym.imp.MSVCRT.dll_fscanf]
push 1
pop ebx
jmp 0x482acd
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x15c]
push eax
push 0x55c560
push edi
call esi
add esp, 0xc
cmp eax, 0xffffffff
je 0x482aac
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 0x482acd
lea eax, [ebp - 0x40]
push eax
push str.Mapid_u_n
push edi
call esi
add esp, 0xc
cmp eax, ebx
jne 0x482acd
lea eax, [ebp - 0x3c]
push eax
push str.Bound_X_d_n
push edi
call esi
add esp, 0xc
cmp eax, ebx
jne 0x482acd
lea eax, [ebp - 0x30]
push eax
push str.Bound_Y_d_n
push edi
call esi
add esp, 0xc
cmp eax, ebx
jne 0x482acd
lea eax, [ebp - 0x44]
push eax
push str.Bound_CX_d_n
push edi
call esi
add esp, 0xc
cmp eax, ebx
jne 0x482acd
lea eax, [ebp - 0x28]
push eax
push str.Bound_CY_d_n
push edi
call esi
add esp, 0xc
cmp eax, ebx
jne 0x482acd
lea eax, [ebp - 0x15c]
push eax
push str.TitleMusic_s_n
push edi
call esi
add esp, 0xc
cmp eax, ebx
jne 0x482acd
lea eax, [ebp - 0x20]
push eax
push str.TitleMusicTime_d_n
push edi
call esi
add esp, 0xc
cmp eax, ebx
jne 0x482acd
lea eax, [ebp - 0x1c]
push eax
push str.Amount_d_n
push edi
call esi
add esp, 0xc
cmp eax, ebx
jne 0x482acd
push 0x2c
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
test eax, eax
je 0x482bc8
mov ecx, eax
call fcn.004860dd
jmp 0x482bca
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10], eax
test eax, eax
je 0x482acd
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 0x482c28
mov ecx, eax
call fcn.0048608e
mov edi, eax
jmp 0x482c2a
xor edi, edi
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
test edi, edi
mov dword [eax + 0x1c], edi
je 0x482c73
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.0040928f
mov eax, dword [ebp - 0x10]
and dword [eax + 0x10], 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x2c]
lea ecx, [eax + 0x4cc]
call fcn.00483262
cmp dword [ebp - 0x1c], 0
jle 0x482aca
and byte [ebp - 0x15d], 0
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x1c], 0
jle 0x482d90
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 0x482d81
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 0x482d81
push 0x14
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x48], eax
test eax, eax
mov dword [ebp - 4], 2
je 0x482d37
mov ecx, eax
call fcn.0048608e
jmp 0x482d39
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x24], eax
test eax, eax
je 0x482d81
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.0040928f
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x20]
call fcn.004c5d97
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x1c]
jl 0x482cab
lea eax, [ebp - 0x34]
push eax
push str.DelayTime_d
push dword [ebp - 0x18]
call esi
add esp, 0xc
cmp eax, ebx
jne 0x482aca
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x34]
mov dword [eax + 0x10], ecx
jmp 0x482aca