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

Disassembly:
push 0xffffffffffffffff
push 0x45cc5f
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.00434690
mov dword [esp + 0x10], ebx
push ebx
lea eax, [esp + 0x24]
push eax
push 4
mov byte [esp + 0x74], 4
call fcn.0040b560
mov eax, dword [ebp + 0xa0]
mov esi, dword [esp + 0x1c]
add esp, 0xc
cmp eax, ebx
mov dword [esp + 0x10], ebx
je 0x408d24
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x467328
push eax
call dword [ecx]
cmp esi, ebx
je 0x408d2e
mov eax, dword [esi]
push esi
call dword [eax + 8]
cmp dword [esp + 0x10], ebx
jne 0x408d72
lea ecx, [esp + 0x3c]
mov byte [esp + 0x68], 2
call fcn.00434710
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, 0xe70
call fcn.00416a00
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, 0xe70
call fcn.00416a10
mov ecx, dword [ebp + 0x98]
mov esi, eax
call fcn.00421080
cmp eax, esi
mov ecx, dword [ebp + 0x98]
jle 0x408de3
call fcn.00421080
jmp 0x408dee
add ecx, 0xe70
call fcn.00416a10
mov ecx, dword [ebp + 0x98]
mov dword [ebp + 0x100], eax
lea eax, [esp + 0x28]
push eax
add ecx, 0xe70
call fcn.00416920
mov ecx, dword [ebp + 0x98]
mov edi, eax
mov dword [ebp + 0xfc], ebx
mov eax, dword [ecx + 0x8c]
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x14], ebx
je 0x408e37
mov edx, dword [eax + 8]
mov dword [edx + 0xdc], ecx
mov eax, dword [eax]
cmp eax, ecx
jne 0x408e28
push 0xb9
lea ecx, [esp + 0x34]
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_]
mov esi, eax
push 0
mov dword [esp + 0x20], esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test esi, esi
je 0x408ec9
call dword [0x484070]
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 esi, eax
lea eax, [esi - 1]
push eax
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov ebx, eax
test ebx, ebx
je 0x408ee5
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push esi
push ebx
push 0xffffffffffffffff
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x408ee5
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esp + 0x24]
call fcn.004024a0
mov ebx, dword [esp + 0x14]
xor esi, esi
test esi, esi
mov dword [esp + 0x24], esi
jne 0x408ef6
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x408ef6
push 0x8007000e
call fcn.00402310
lea ecx, [esp + 0x24]
call fcn.004024a0
mov esi, ebx
mov ebx, dword [esp + 0x14]
jmp 0x408ecb
lea ecx, [esp + 0x30]
mov byte [esp + 0x68], 4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push esi
push eax
call dword [edx + 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_]
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, dword [esp + 0x18]
test esi, esi
je 0x408fa3
call dword [0x484070]
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 0x408fc9
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
push esi
push ebx
push 0xffffffffffffffff
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x408fc9
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esp + 0x24]
call fcn.004024a0
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x1c], 0
mov esi, dword [esp + 0x1c]
test esi, esi
mov dword [esp + 0x24], esi
jne 0x408fdc
mov eax, dword [esp + 0x18]
test eax, eax
je 0x408fdc
push 0x8007000e
call fcn.00402310
lea ecx, [esp + 0x24]
call fcn.004024a0
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x14]
jmp 0x408fab
lea ecx, [esp + 0x34]
mov byte [esp + 0x68], 4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push esi
push 0
push eax
call dword [edx + 0x38]
mov eax, dword [ebp + 0x74]
cmp eax, 2
jne 0x40902f
mov ecx, dword [ebp + 0x98]
call fcn.00421080
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
push 0
call fcn.004346b0
mov ecx, dword [ebp + 0x98]
call fcn.00426ab0
fstp dword [ebp + 0xf8]
jmp 0x40903d
test eax, eax
jne 0x40903d
mov dword [ebp + 0xf8], 0x3f800000
test edi, edi
je 0x40926a
jmp 0x409050
mov eax, dword [ebp + 0x9c]
test eax, eax
jne 0x40926a
cmp ebx, 0x62
jge 0x40926a
lea ecx, [esp + 0x18]
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 0x409097
mov dword [esi], 0x96
jmp 0x4090ad
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.00408320
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 + 0x20]
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 + 0x18]
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 0x409137
mov ebx, dword [edi + 0x10]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [ebp + 0x98]
add ecx, 0xe70
call fcn.00416960
mov edi, eax
test edi, edi
je 0x4091a6
mov eax, dword [edi + 0xc]
test eax, eax
je 0x4092f5
cmp eax, 1
jne 0x40918a
mov eax, dword [esi + 4]
cmp eax, 0x62
jae 0x40918a
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, 0xe70
call fcn.00416960
mov edi, eax
test edi, edi
jne 0x409160
mov eax, dword [ebp + 0x100]
mov ecx, dword [ebp + 0xfc]
push eax
push ecx
lea ecx, [esp + 0x5c]
call fcn.004346b0
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x6c], 0xa
call fcn.004347b0
lea ecx, [esp + 0x54]
mov byte [esp + 0x68], 7
call fcn.00434710
cmp dword [ebp + 0x74], 1
jne 0x409204
sub esp, 0xc
lea edx, [esp + 0x48]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.004346f0
mov ecx, dword [ebp + 0x98]
call fcn.00426ab0
fstp dword [ebp + 0xf8]
sub esp, 0xc
lea eax, [esp + 0x48]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.004346f0
push ecx
lea edx, [esp + 0x28]
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.004088c0
test edi, edi
je 0x409247
mov eax, dword [edi + 0x10]
mov dword [ebp + 0xfc], eax
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
test edi, edi
mov ebx, dword [esp + 0x14]
jne 0x409050
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 + 0x1c]
push edx
mov ebx, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor edi, edi
cmp ebx, edi
je 0x40932a
call dword [0x484070]
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 0x409321
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x409321
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esp + 0x24]
call fcn.004024a0
xor edi, edi
jmp 0x40932a
mov ecx, dword [edi + 0x10]
mov edx, dword [ebp + 0xfc]
push ecx
push edx
lea ecx, [esp + 0x50]
call fcn.004346b0
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x6c], 9
call fcn.004347b0
lea ecx, [esp + 0x48]
jmp 0x4091d0
lea ecx, [esp + 0x24]
call fcn.004024a0
test edi, edi
mov dword [esp + 0x24], edi
jne 0x409340
test ebx, ebx
je 0x409340
push 0x8007000e
call fcn.00402310
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 0x40936f
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x68], 2
call fcn.00434710
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