Function at 0x408c30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x45b5ef
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push ebp
push esi
mov ebp, ecx
push edi
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
xor ebx, ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x68], ebx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov dword [esp + 0x24], ebx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x68], 2
call fcn.00433f40
mov dword [esp + 0x10], ebx
push ebx
lea eax, [esp + 0x24]
push eax
push 4
mov byte [esp + 0x74], 4
call fcn.0040b4d0
mov eax, dword [ebp + 0xa0]
mov esi, dword [esp + 0x1c]
add esp, 0xc
cmp eax, ebx
mov dword [esp + 0x10], ebx
je 0x408cb4
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x466300
push eax
call dword [ecx]
cmp esi, ebx
je 0x408cbe
mov eax, dword [esi]
push esi
call dword [eax + 8]
cmp dword [esp + 0x10], ebx
jne 0x408d02
lea ecx, [esp + 0x3c]
mov byte [esp + 0x68], 2
call fcn.00433fc0
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor al, al
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
mov ecx, dword [ebp + 0x98]
add ecx, 0xe34
call fcn.00416910
mov esi, eax
imul esi, esi, 0x320
add esi, 0x9c
push esi
call sub.MFC71.DLL_operator_new_1
mov edi, eax
mov ecx, esi
mov edx, ecx
shr ecx, 2
mov dword [ebp + 0x94], edi
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x98]
add esp, 4
add ecx, 0xe34
call fcn.00416920
mov ecx, dword [ebp + 0x98]
mov esi, eax
call fcn.00420c60
cmp eax, esi
mov ecx, dword [ebp + 0x98]
jle 0x408d73
call fcn.00420c60
jmp 0x408d7e
add ecx, 0xe34
call fcn.00416920
mov ecx, dword [ebp + 0x98]
mov dword [ebp + 0x100], eax
lea eax, [esp + 0x28]
push eax
add ecx, 0xe34
call fcn.00416830
push 0xb9
lea ecx, [esp + 0x34]
mov edi, eax
mov dword [ebp + 0xfc], ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov ecx, eax
mov byte [esp + 0x68], 5
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push 0
mov esi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test esi, esi
je 0x408e36
call dword [0x482070]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
lea eax, [ebx - 1]
push eax
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x408e58
mov ecx, dword [esp + 0x18]
push ebx
push eax
push 0xffffffffffffffff
push esi
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x408e58
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esp + 0x24]
call fcn.00402480
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x18]
test eax, eax
mov dword [esp + 0x24], eax
jne 0x408e6f
test esi, esi
je 0x408e6f
push 0x8007000e
call fcn.00402330
lea ecx, [esp + 0x24]
call fcn.00402480
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
jmp 0x408e3e
lea ecx, [esp + 0x30]
mov byte [esp + 0x68], 4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x3c]
push 0xbb
lea ecx, [esp + 0x38]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov ecx, eax
mov byte [esp + 0x68], 6
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
mov esi, eax
mov eax, dword [esp + 0x18]
push eax
mov dword [esp + 0x20], esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test esi, esi
je 0x408f26
call dword [0x482070]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
lea eax, [esi - 1]
push eax
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov ebx, eax
test ebx, ebx
je 0x408f48
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
push esi
push ebx
push 0xffffffffffffffff
push ecx
push 0
push edx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x408f48
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esp + 0x24]
call fcn.00402480
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x18]
test eax, eax
mov dword [esp + 0x24], eax
jne 0x408f5f
test esi, esi
je 0x408f5f
push 0x8007000e
call fcn.00402330
lea ecx, [esp + 0x24]
call fcn.00402480
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x14]
jmp 0x408f2e
lea ecx, [esp + 0x34]
mov byte [esp + 0x68], 4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push edx
push 0
push eax
call dword [ecx + 0x38]
mov eax, dword [ebp + 0x74]
cmp eax, 2
jne 0x408fb6
mov ecx, dword [ebp + 0x98]
call fcn.00420c60
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
push 0
call fcn.00433f60
mov ecx, dword [ebp + 0x98]
call fcn.00426680
fstp dword [ebp + 0xf8]
jmp 0x408fc4
test eax, eax
jne 0x408fc4
mov dword [ebp + 0xf8], 0x3f800000
test edi, edi
je 0x4091ea
lea esp, [esp]
mov eax, dword [ebp + 0x9c]
test eax, eax
jne 0x4091ea
cmp ebx, 0x62
jge 0x4091ea
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov ecx, dword [ebp + 0x94]
mov eax, ebx
imul eax, eax, 0x320
test ebx, ebx
mov byte [esp + 0x68], 7
lea esi, [eax + ecx + 0x9c]
jne 0x409017
mov dword [esi], 0x96
jmp 0x40902d
mov ecx, dword [edi + 0x14]
mov eax, 0x6f74ae27
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esi], eax
lea ecx, [edi + 4]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
lea ecx, [edi + 8]
mov dword [esi + 0x190], eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push str._track_d.wav
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x3c]
push edx
mov dword [esi + 0x194], eax
mov dword [esi + 0x198], 0
mov dword [esi + 0x2a0], 1
call fcn.004082b0
add esp, 0xc
inc ebx
push ebx
mov ecx, eax
mov byte [esp + 0x6c], 8
mov dword [esp + 0x34], ebx
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0xc
lea ecx, [esp + 0x34]
mov byte [esp + 0x68], 7
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
lea ecx, [esi + 0x19c]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x4090b7
mov ebx, dword [edi + 0x10]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [ebp + 0x98]
add ecx, 0xe34
call fcn.00416870
mov edi, eax
test edi, edi
je 0x409126
mov eax, dword [edi + 0xc]
test eax, eax
je 0x409275
cmp eax, 1
jne 0x40910a
mov eax, dword [esi + 4]
cmp eax, 0x62
jae 0x40910a
mov edx, dword [edi + 0x10]
sub edx, ebx
shl edx, 2
mov dword [esi + eax*4 + 8], edx
inc dword [esi + 4]
mov ebx, dword [edi + 0x10]
mov ecx, dword [ebp + 0x98]
lea eax, [esp + 0x28]
push eax
add ecx, 0xe34
call fcn.00416870
mov edi, eax
test edi, edi
jne 0x4090e0
mov eax, dword [ebp + 0x100]
mov ecx, dword [ebp + 0xfc]
push eax
push ecx
lea ecx, [esp + 0x5c]
call fcn.00433f60
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x6c], 0xa
call fcn.00434060
lea ecx, [esp + 0x54]
mov byte [esp + 0x68], 7
call fcn.00433fc0
cmp dword [ebp + 0x74], 1
jne 0x409184
sub esp, 0xc
lea edx, [esp + 0x48]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.00433fa0
mov ecx, dword [ebp + 0x98]
call fcn.00426680
fstp dword [ebp + 0xf8]
sub esp, 0xc
lea eax, [esp + 0x48]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.00433fa0
push ecx
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
mov byte [esp + 0x7c], 0xb
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_4]
mov ecx, ebp
mov byte [esp + 0x78], 7
call fcn.00408850
test edi, edi
je 0x4091c7
mov eax, dword [edi + 0x10]
mov dword [ebp + 0xfc], eax
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x68], 4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
test edi, edi
mov ebx, dword [esp + 0x14]
jne 0x408fd0
push 0x119
lea ecx, [esp + 0x38]
mov dword [ebp + 0x8c], ebx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov ecx, eax
mov byte [esp + 0x68], 0xc
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
mov edx, dword [esp + 0x18]
push edx
mov ebx, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor edi, edi
cmp ebx, edi
je 0x4092aa
call dword [0x482070]
push edi
push edi
push 0xffffffffffffffff
push ebx
mov ebp, eax
push edi
push ebp
mov dword [esp + 0x3c], edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
lea eax, [esi - 1]
push eax
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov edi, eax
test edi, edi
je 0x4092a1
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x4092a1
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esp + 0x24]
call fcn.00402480
xor edi, edi
jmp 0x4092aa
mov ecx, dword [edi + 0x10]
mov edx, dword [ebp + 0xfc]
push ecx
push edx
lea ecx, [esp + 0x50]
call fcn.00433f60
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x6c], 9
call fcn.00434060
lea ecx, [esp + 0x48]
jmp 0x409150
lea ecx, [esp + 0x24]
call fcn.00402480
test edi, edi
mov dword [esp + 0x24], edi
jne 0x4092c0
test ebx, ebx
je 0x4092c0
push 0x8007000e
call fcn.00402330
lea ecx, [esp + 0x34]
mov byte [esp + 0x68], 4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push edi
push 0
push eax
call dword [ecx + 0x38]
mov eax, dword [esp + 0x10]
test eax, eax
mov byte [esp + 0x68], 3
je 0x4092ef
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x68], 2
call fcn.00433fc0
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x5c
ret