Function at 0x498e39
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x53b57e
call fcn.0050bac0
sub esp, 0x250
push esi
push edi
mov dword [ebp - 0x2c], ecx
call fcn.004991b6
push 5
mov esi, str.ini_MusicRegion.ini
pop ecx
lea edi, [ebp - 0x5c]
lea eax, [ebp - 0x5c]
push 0x581900
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 0x498e9a
push 0x9a8
lea eax, [ebp - 0x5c]
push str.D:CQ2ClientCn_15.3.53DGameMap3DGameMap.cpp
push eax
push str.ERROR:_file__s_not_found_at__s___d
call fcn.005079e3
add esp, 0x10
jmp 0x4991a8
and byte [ebp - 0x5d], 0
mov esi, dword [sym.imp.MSVCRT.dll_fscanf]
push ebx
push 1
pop ebx
jmp 0x498ead
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x15c]
push eax
push 0x5818e8
push edi
call esi
add esp, 0xc
cmp eax, 0xffffffff
je 0x49919f
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 0x498ead
lea eax, [ebp - 0x40]
push eax
push str.Mapid_u_n
push edi
call esi
add esp, 0xc
cmp eax, ebx
jne 0x498ead
lea eax, [ebp - 0x3c]
push eax
push str.Bound_X_d_n
push edi
call esi
add esp, 0xc
cmp eax, ebx
jne 0x498ead
lea eax, [ebp - 0x30]
push eax
push str.Bound_Y_d_n
push edi
call esi
add esp, 0xc
cmp eax, ebx
jne 0x498ead
lea eax, [ebp - 0x44]
push eax
push str.Bound_CX_d_n
push edi
call esi
add esp, 0xc
cmp eax, ebx
jne 0x498ead
lea eax, [ebp - 0x28]
push eax
push str.Bound_CY_d_n
push edi
call esi
add esp, 0xc
cmp eax, ebx
jne 0x498ead
lea eax, [ebp - 0x15c]
push eax
push str.TitleMusic_s_n
push edi
call esi
add esp, 0xc
cmp eax, ebx
jne 0x498ead
lea eax, [ebp - 0x20]
push eax
push str.TitleMusicTime_d_n
push edi
call esi
add esp, 0xc
cmp eax, ebx
jne 0x498ead
lea eax, [ebp - 0x1c]
push eax
push str.Amount_d_n
push edi
call esi
add esp, 0xc
cmp eax, ebx
jne 0x498ead
push 0x2c
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
test eax, eax
je 0x498fb0
mov ecx, eax
call fcn.0049c4bb
jmp 0x498fb2
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10], eax
test eax, eax
je 0x498ead
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 0x499010
mov ecx, eax
call fcn.0049c46c
mov edi, eax
jmp 0x499012
xor edi, edi
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
test edi, edi
mov dword [eax + 0x1c], edi
je 0x49905b
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.0040253b
mov eax, dword [ebp - 0x10]
and dword [eax + 0x10], 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x2c]
lea ecx, [eax + 0x4d4]
call fcn.004996a8
cmp dword [ebp - 0x1c], 0
jle 0x498eaa
and byte [ebp - 0x15d], 0
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x1c], 0
jle 0x499178
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 0x499169
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 0x499169
push 0x14
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x48], eax
test eax, eax
mov dword [ebp - 4], 2
je 0x49911f
mov ecx, eax
call fcn.0049c46c
jmp 0x499121
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x24], eax
test eax, eax
je 0x499169
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.0040253b
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x20]
call fcn.00434588
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x1c]
jl 0x499093
lea eax, [ebp - 0x34]
push eax
push str.DelayTime_d
push dword [ebp - 0x18]
call esi
add esp, 0xc
cmp eax, ebx
jne 0x498eaa
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x34]
mov dword [eax + 0x10], ecx
jmp 0x498eaa
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