Function at 0x54bb70
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57dcd5
mov eax, dword fs:[0]
push eax
sub esp, 0x680
mov eax, dword [0x5b107c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov esi, 3
mov dword [ebp - 0x66c], eax
mov dword [ebp - 0x664], ecx
cmp dword [0x6573f0], esi
je 0x54bbcf
mov edx, dword [0x6573b4]
push edx
call ebx
mov dword [0x6573f0], esi
lea eax, [ebp - 0x528]
mov dword [ebp - method.CMHFile.virtual_0], vtable.CMHFile.0
call fcn.004061b0
xor eax, eax
xor esi, esi
push 0x104
mov dword [ebp - 0x644], eax
mov dword [ebp - 0x640], eax
mov dword [ebp - 0x63c], eax
mov word [ebp - 0x638], ax
lea eax, [ebp - 0x62c]
push esi
push eax
mov dword [ebp - 0x658], esi
mov dword [ebp - 0x634], esi
mov dword [ebp - 0x648], esi
mov dword [ebp - 0x630], esi
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [ebp - 0x650], esi
mov dword [ebp - 0x64c], esi
push 0x10
push str.SoundList.bin
mov ecx, 0x587394
lea edi, [ebp - 0x65c]
mov dword [ebp - 4], esi
call fcn.00528720
cmp dword [0x6573f0], esi
je 0x54bc6b
mov ecx, dword [0x6573a8]
push ecx
call ebx
mov dword [0x6573f0], esi
push 0x69d3c8
lea esi, [ebp - 0x65c]
call fcn.00528970
mov ebx, dword [sym.imp.MSVCR100.dll_atoi]
push 0x69d3c8
call ebx
mov edx, dword [ebp - 0x664]
mov esi, eax
xor ecx, ecx
mov dword [edx], esi
add esp, 4
mov edx, 0x24
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.00576240
add esp, 4
mov dword [ebp - 0x668], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x54bce2
push 0x54c130
push 0x54c100
push esi
lea edi, [eax + 4]
push 0x24
push edi
mov dword [eax], esi
call fcn.00576426
jmp 0x54bce4
xor edi, edi
mov ecx, dword [ebp - 0x66c]
mov byte [ebp - 4], 0
mov dword [ecx], edi
mov eax, dword [0x596a70]
mov edx, dword [str.NULL.WAV]
mov cl, byte [0x596a74]
mov dword [ebp - 0x674], eax
lea eax, [ebp - 0x678]
mov dword [ebp - 0x678], edx
mov byte [ebp - 0x670], cl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x54bd20
sub eax, edx
mov edx, dword [ebp - 0x664]
cmp dword [edx], 0
mov dword [ebp - 0x684], eax
mov dword [ebp - 0x660], 0
jle 0x54bf00
jmp 0x54bd56
mov ebx, dword [sym.imp.MSVCR100.dll_atoi]
push 0x69d3c8
lea esi, [ebp - 0x65c]
call fcn.00528970
push 0x69d3c8
call ebx
movzx eax, ax
add esp, 4
push 0x69d3c8
mov dword [ebp - 0x688], eax
call fcn.00528970
xor eax, eax
jmp 0x54bd90
mov cl, byte [eax + 0x69d3c8]
mov byte [ebp + eax - 0x114], cl
inc eax
test cl, cl
jne 0x54bd90
push 0x69d3c8
lea esi, [ebp - 0x65c]
call fcn.00528970
push 0x69d3c8
call ebx
add esp, 4
push 0x69d3c8
mov edi, eax
call fcn.00528970
push 0x69d3c8
call ebx
add esp, 4
push 0x69d3c8
mov ebx, eax
call fcn.00528970
push 0x69d3c8
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [ebp - 0x668]
add esp, 4
push 0x69d3c8
call fcn.00528970
push 0x69d3c8
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [ebp - 0x680]
add esp, 4
push 0x69d3c8
call fcn.00528970
push 0x69d3c8
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [ebp - 0x67c]
lea eax, [ebp - 0x114]
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x54be37
sub eax, edx
sub eax, dword [ebp - 0x684]
lea esi, [ebp - 0x678]
lea eax, [ebp + eax - 0x114]
push eax
call dword [sym.imp.MSVCR100.dll__strupr]
add esp, 4
lea ecx, [ecx]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x54be80
test cl, cl
je 0x54be7c
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x54be80
add eax, 2
add esi, 2
test cl, cl
jne 0x54be60
xor eax, eax
jmp 0x54be85
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x54bee5
movzx esi, word [ebp - 0x688]
cmp esi, dword [ebp - 0x660]
je 0x54beaa
xor ecx, ecx
push str.AudioSoundFileManager.cpp
lea edx, [ecx + 0x5a]
call fcn.0052cb10
add esp, 4
fld dword [ebp - 0x67c]
mov edx, dword [ebp - 0x66c]
mov eax, dword [edx]
sub esp, 0xc
fstp dword [esp + 8]
lea ecx, [esi + esi*8]
fld dword [ebp - 0x680]
lea esi, [eax + ecx*4]
fstp dword [esp + 4]
fld dword [ebp - 0x668]
fstp dword [esp]
push ebx
push edi
lea edi, [ebp - 0x114]
call fcn.0054c1b0
mov eax, dword [ebp - 0x660]
mov ecx, dword [ebp - 0x664]
inc eax
mov dword [ebp - 0x660], eax
cmp eax, dword [ecx]
jl 0x54bd50
mov ecx, dword [ebp - 0x658]
mov esi, dword [sym.imp.MSVCR100.dll_fclose]
test ecx, ecx
je 0x54bf1e
push ecx
call esi
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x658], ecx
mov edx, dword [ebp - 0x634]
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
test edx, edx
je 0x54bf46
push edx
call edi
mov ecx, dword [ebp - 0x658]
add esp, 4
xor ebx, ebx
xor edx, edx
mov dword [ebp - 0x634], edx
jmp 0x54bf48
xor ebx, ebx
mov eax, dword [ebp - 0x64c]
mov dword [ebp - 0x648], ebx
mov dword [ebp - 0x630], ebx
cmp eax, ebx
je 0x54bf95
mov ecx, dword [ebp - 0x650]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x54]
push ecx
call eax
mov eax, dword [ebp - 0x650]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov edx, dword [ebp - 0x634]
mov ecx, dword [ebp - 0x658]
xor eax, eax
mov dword [ebp - 0x64c], eax
mov dword [ebp - 0x650], ebx
mov dword [ebp - method.CMHFile.virtual_0], vtable.CMHFile.0
mov dword [ebp - 4], 2
cmp ecx, ebx
je 0x54bfc2
push ecx
call esi
mov edx, dword [ebp - 0x634]
mov eax, dword [ebp - 0x64c]
add esp, 4
mov dword [ebp - 0x658], ebx
cmp edx, ebx
je 0x54bfd8
push edx
call edi
mov eax, dword [ebp - 0x64c]
add esp, 4
mov dword [ebp - 0x634], ebx
mov dword [ebp - 0x648], ebx
mov dword [ebp - 0x630], ebx
cmp eax, ebx
je 0x54c005
mov ecx, dword [ebp - 0x650]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x54]
push ecx
call eax
mov eax, dword [ebp - 0x650]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005762ee
mov esp, ebp
pop ebp
ret 4