Function at 0x44f880
Capabilities:
Get common file path

Disassembly:
sub esp, 0x36c
mov eax, dword [0x5c5bf0]
xor eax, esp
mov dword [esp + 0x368], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x37c]
xor ebp, ebp
mov esi, ecx
mov dword [esp + 0x24], edi
cmp dword [0x5c8dec], ebp
jne 0x44f8b5
xor eax, eax
jmp 0x44fc16
push ebp
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jge 0x44f8e4
push 0x30
push str.Sound_error_
push str.COM_initialize_failed_
call fcn.0043d970
add esp, 0xc
mov dword [0x5c8dec], ebp
mov eax, 0x80004005
jmp 0x44fc16
push ebp
push esi
push ebp
call sub.DSOUND.dll_DirectSoundCreate8
test eax, eax
jge 0x44f8fe
push 0x30
push str.Sound_error_
push str.DirectSoundCreate8___failed_
jmp 0x44f8cc
mov eax, dword [esi]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push 2
push edi
push eax
call edx
test eax, eax
jge 0x44f91d
push 0x30
push str.Sound_error_
push str.SetCooperativeLevel___failed_
jmp 0x44f8cc
mov eax, dword [esi]
pxor xmm0, xmm0
movq qword [esp + 0x28], xmm0
movq qword [esp + 0x40], xmm0
movq qword [esp + 0x38], xmm0
push ebp
movq qword [esp + 0x34], xmm0
movq xmm0, qword [0x59289c]
lea edx, [esp + 0x10]
push edx
movq qword [esp + 0x44], xmm0
movq xmm0, qword [0x5928a4]
mov dword [esp + 0x50], ebp
lea edx, [esp + 0x30]
mov dword [esp + 0x30], 0x24
mov dword [esp + 0x34], 0x95
movq qword [esp + 0x4c], xmm0
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jge 0x44f9b4
mov eax, dword [esi]
push ebp
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x30]
mov dword [esp + 0x34], 0x91
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jge 0x44f9b4
push 0x30
push str.Sound_error_
push str.Creating_primary_buffer_failed_
jmp 0x44f8cc
pxor xmm0, xmm0
movq qword [esp + 0x10], xmm0
mov ecx, 1
mov word [esp + 0x10], cx
movq qword [esp + 0x18], xmm0
mov eax, 0x10
mov ecx, 4
mov word [esp + 0x1e], ax
mov eax, dword [esp + 0xc]
mov word [esp + 0x1c], cx
mov edx, 2
mov word [esp + 0x12], dx
lea ecx, [esp + 0x10]
mov word [esp + 0x20], bp
mov dword [esp + 0x14], 0x5622
mov dword [esp + 0x18], 0x15888
mov edx, dword [eax]
mov edx, dword [edx + 0x38]
push ecx
push eax
call edx
test eax, eax
jge 0x44fa27
push 0x30
push str.Sound_error_
push str.Setting_primary_buffer_format_failed_
jmp 0x44f8cc
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
lea edi, [esi + 4]
push edi
push 0x59287c
push eax
call edx
mov eax, dword [edi]
cmp eax, ebp
jne 0x44fa52
push 0x30
push str.Sound_error_
push str.Init_direct_sound_listener_failed_
jmp 0x44f8cc
fld dword [0x565fe4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x38]
push 1
sub esp, 0xc
fst dword [esp + 8]
fst dword [esp + 4]
fstp dword [esp]
push eax
call edx
fldz
mov eax, dword [edi]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x40]
push 1
sub esp, 0xc
fst dword [esp + 8]
fst dword [esp + 4]
fstp dword [esp]
push eax
call edx
fld1
mov edi, dword [edi]
mov eax, dword [edi]
push 1
push ecx
mov ecx, dword [eax + 0x30]
fstp dword [esp]
push edi
call ecx
mov eax, dword [esp + 0xc]
cmp eax, ebp
je 0x44fab2
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0xc], ebp
push ebx
push 0x1000
lea ecx, [esi + 0x24]
push ebp
push ecx
call fcn.005479b0
add esp, 0xc
lea ebx, [esi + 0x18]
push ebx
push 0x59280c
push 3
push ebp
mov dword [esi + 0x1024], ebp
mov ebp, dword [sym.imp.ole32.dll_CoCreateInstance]
push 0x59282c
call ebp
cmp dword [ebx], 0
je 0x44fbe5
lea edi, [esi + 0x1c]
push edi
push 0x5927fc
push 3
push 0
push 0x59284c
call ebp
cmp dword [edi], 0
je 0x44fbe5
lea edx, [esp + 0x78]
push edx
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x100
lea eax, [esp + 0x17c]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x84]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebx]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push 0
lea ecx, [esp + 0x17c]
push ecx
push 0x59281c
push eax
call edx
mov eax, dword [edi]
lea edx, [esp + 0x50]
push edx
mov edx, dword [esp + 0x2c]
push 0
push 0x40
push 8
pxor xmm0, xmm0
push edx
movq qword [esp + 0x64], xmm0
movq qword [esp + 0x6c], xmm0
movq qword [esp + 0x74], xmm0
push esi
movq qword [esp + 0x80], xmm0
movq qword [esp + 0x88], xmm0
mov dword [esp + 0x68], 0x28
mov dword [esp + 0x6c], 1
mov dword [esp + 0x70], 7
mov dword [esp + 0x74], 0x3f
mov dword [esp + 0x78], 0x40
mov dword [esp + 0x7c], 0x5622
mov ecx, dword [eax]
push 0
push eax
mov eax, dword [ecx + 0xb0]
call eax
test eax, eax
jl 0x44fbe5
mov edi, dword [edi]
mov ecx, dword [edi]
mov eax, dword [ecx + 0xcc]
lea edx, [esi + 0x20]
push edx
push edi
call eax
test eax, eax
jge 0x44fbec
mov eax, 0x80004005
jmp 0x44fc15
mov ebx, dword [ebx]
mov ecx, dword [ebx]
mov edx, dword [ecx + 0x28]
push 0
push 0x59281c
push ebx
call edx
mov ecx, esi
call fcn.0044f190
call fcn.0044f3c0
mov dword [esi + 0x4048], 0
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x374]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00547aa7
add esp, 0x36c
ret 4