Function at 0x409180
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432b65
mov eax, dword fs:[0]
push eax
sub esp, 0xe54
mov eax, dword [0x4430a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x840]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
push eax
call fcn.00408a40
push esi
lea ecx, [ebp - 0x828]
mov dword [ebp - 4], 0
call fcn.00408a40
lea eax, [ebp - 0xe44]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x840]
call fcn.0040a330
cmp dword [edi + 0x14], 0x10
jb 0x4091f7
mov edi, dword [edi]
push edi
call fcn.00409e40
mov ecx, dword [ebp - 0x844]
mov edi, eax
lea eax, [ebp - 0x948]
mov dword [ebp - 0xe60], ecx
mov ecx, dword [ebp - 0x848]
add esp, 4
mov dword [ebp - 0xe54], eax
lea eax, [ebp - 0xc46]
mov dword [ebp - 0xe5c], eax
lea eax, [ebp - 0xe60]
mov dword [ebp - 0xe50], ecx
mov ecx, edi
push eax
mov dword [ebp - 0xe58], 0x3e8
mov dword [ebp - 0xe4c], 0
call fcn.0040a0f0
mov esi, eax
test esi, esi
je 0x409274
lea eax, [ebp - 0xe60]
mov dword [ebp - 0xe50], str.PROJECT_VOICeVIO_SFE
push eax
mov ecx, edi
call fcn.0040a0f0
mov esi, eax
push esi
push str.init__d_n
call fcn.004084b0
add esp, 8
test esi, esi
jne 0x409607
lea eax, [ebp - 0xe44]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov esi, eax
lea eax, [ebp - 0xe44]
push eax
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryA]
xor ecx, ecx
test esi, esi
setne cl
push ecx
push 0x433cf4
call fcn.004084b0
push 0x7d0
lea eax, [ebp - 0x7e0]
push 0
push eax
call fcn.0040ff90
add esp, 0x14
lea eax, [ebp - 0x7e0]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x7e0]
push eax
push 0x433d9c
call fcn.00409d50
add esp, 8
lea eax, [ebp - 0xa47]
mov ecx, edi
push eax
call fcn.0040a100
mov esi, eax
lea eax, [ebp - 0xa47]
push eax
lea eax, [ebp - 0xe44]
push eax
push str._s__s__n
call fcn.004084b0
push esi
push str.loadvoice__d_n
call fcn.004084b0
add esp, 0x14
lea eax, [ebp - 0xb47]
mov ecx, edi
push eax
call fcn.0040a140
mov esi, eax
lea eax, [ebp - 0xb47]
push esi
push eax
push str.loadvoice__s__d_n
call fcn.004084b0
add esp, 0xc
test esi, esi
jne 0x40967a
lea eax, [ebp - 0xe48]
mov dword [ebp - 0xe48], esi
push eax
push esi
mov ecx, edi
call fcn.0040a0e0
mov esi, eax
cmp esi, 0xffffffec
jne 0x4096ed
push dword [ebp - 0xe48]
push str.param__size__d_n
call fcn.004084b0
mov eax, dword [ebp - 0xe48]
add esp, 8
cmp eax, 0x1f4
jne 0x40951f
push eax
call fcn.0040e540
mov ecx, dword [ebp - 0xe48]
add esp, 4
mov esi, eax
lea eax, [ebp - 0xe48]
push eax
mov dword [esi], ecx
mov ecx, edi
push esi
call fcn.0040a0e0
mov ebx, eax
push ebx
push str.GetParam
push str._s__d_n
call fcn.004084b0
add esp, 0xc
test ebx, ebx
jne 0x409760
movss xmm0, dword [ebp + 0x14]
push 0x433cd8
mov dword [esi + 0x24], 0x11
mov dword [esi + 4], 0x409090
mov dword [esi + 8], 0x409ba0
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], 0x158880
movss dword [esi + 0x18], xmm0
call fcn.004084b0
movss xmm0, dword [ebp + 0x18]
sub esp, 0xc
movss xmm1, dword [ebp + 0x14]
movss dword [esi + 0x18c], xmm0
cvtps2pd xmm0, xmm0
movss dword [esi + 0x188], xmm1
movsd qword [esp + 8], xmm0
cvtps2pd xmm0, xmm1
movsd qword [esp], xmm0
push str.2__d__d_n
call fcn.004084b0
add esp, 0x14
mov ecx, edi
push esi
call fcn.0040a110
mov ebx, eax
push ebx
push str.3__d_n
call fcn.004084b0
add esp, 8
test ebx, ebx
jne 0x4097dc
push 0x433cec
call fcn.004084b0
push esi
call fcn.0040e549
add esp, 8
push str.setparam_all_ok
push str._s___n
call fcn.004084b0
mov ecx, dword [ebp - 0x814]
add esp, 8
cmp ecx, 0x10
jb 0x4094c7
mov edx, dword [ebp - 0x828]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4094bd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409858
push ecx
push edx
call fcn.0040e532
add esp, 8
mov ecx, dword [ebp - 0x82c]
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x814], 0xf
mov byte [ebp - 0x828], 0
cmp ecx, 0x10
jb 0x4095e9
mov edx, dword [ebp - 0x840]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4095df
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409858
jmp 0x4095df
cmp eax, 0x1a0
jne 0x40947b
push eax
call fcn.0040e540
mov ecx, dword [ebp - 0xe48]
add esp, 4
mov ebx, eax
lea eax, [ebp - 0xe48]
push eax
mov dword [ebx], ecx
mov ecx, edi
push ebx
call fcn.0040a0e0
mov esi, eax
test esi, esi
jne 0x40985d
push dword [ebx + 0x12c]
push str.numSpeakers__d_n
call fcn.004084b0
movss xmm0, dword [ebp + 0x14]
push 0x433c40
push str.C:Userswcy_source_reposConsoleApplication1Release2.txt
mov dword [ebx + 4], 0x409090
mov dword [ebx + 8], 0x409ba0
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x14], 0x158880
movss dword [ebx + 0x18], xmm0
call fcn.0041a111
mov esi, eax
push esi
push dword [ebp - 0xe48]
push 1
push ebx
call fcn.00414f09
push esi
call fcn.00413ecc
add esp, 0x24
mov ecx, edi
push ebx
call fcn.0040a110
mov esi, eax
push esi
push str.SetParam_ok__d_n
call fcn.004084b0
add esp, 8
push ebx
call fcn.0040e549
add esp, 4
test esi, esi
jne 0x4098d9
jmp 0x40947b
push ecx
push edx
call fcn.0040e532
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e54e
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x409614
push 1
mov ecx, edi
call fcn.00408cd0
push str.API_initialization_failed_with_code
lea ecx, [ebp - 0x810]
call fcn.00408af0
lea eax, [ebp - 0x7f8]
mov byte [ebp - 4], 2
push esi
push eax
call fcn.00409ca0
add esp, 8
push eax
lea ecx, [ebp - 0x810]
mov byte [ebp - 4], 3
call fcn.00408cb0
lea ecx, [ebp - 0x7f8]
mov byte [ebp - 4], 2
call fcn.00401f70
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x7ec]
call fcn.00408b30
push 0x440f20
lea eax, [ebp - 0x7ec]
push eax
call fcn.0040f5e8
test edi, edi
je 0x409687
push 1
mov ecx, edi
call fcn.00408cd0
push str.API_Load_Voice_failed__Could_not_load_voice_data__with_code
lea ecx, [ebp - 0x810]
call fcn.00408af0
lea eax, [ebp - 0x7f8]
mov byte [ebp - 4], 4
push esi
push eax
call fcn.00409ca0
add esp, 8
push eax
lea ecx, [ebp - 0x810]
mov byte [ebp - 4], 5
call fcn.00408cb0
lea ecx, [ebp - 0x7f8]
mov byte [ebp - 4], 4
call fcn.00401f70
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x7ec]
call fcn.00408b30
push 0x440f20
lea eax, [ebp - 0x7ec]
push eax
call fcn.0040f5e8
test edi, edi
je 0x4096fa
push 1
mov ecx, edi
call fcn.00408cd0
push str.API_Get_Param_failed__Could_not_acquire_the_size__with_code
lea ecx, [ebp - 0x810]
call fcn.00408af0
lea eax, [ebp - 0x7f8]
mov byte [ebp - 4], 6
push esi
push eax
call fcn.00409ca0
add esp, 8
push eax
lea ecx, [ebp - 0x810]
mov byte [ebp - 4], 7
call fcn.00408cb0
lea ecx, [ebp - 0x7f8]
mov byte [ebp - 4], 6
call fcn.00401f70
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x7ec]
call fcn.00408b30
push 0x440f20
lea eax, [ebp - 0x7ec]
push eax
call fcn.0040f5e8
push esi
call fcn.0040e549
add esp, 4
test edi, edi
je 0x409776
push 1
mov ecx, edi
call fcn.00408cd0
push str.API_Get_Param_failed_with_code
lea ecx, [ebp - 0x810]
call fcn.00408af0
lea eax, [ebp - 0x7f8]
mov byte [ebp - 4], 8
push ebx
push eax
call fcn.00409ca0
add esp, 8
push eax
lea ecx, [ebp - 0x810]
mov byte [ebp - 4], 9
call fcn.00408cb0
lea ecx, [ebp - 0x7f8]
mov byte [ebp - 4], 8
call fcn.00401f70
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x7ec]
call fcn.00408b30
push 0x440f20
lea eax, [ebp - 0x7ec]
push eax
call fcn.0040f5e8
push esi
call fcn.0040e549
add esp, 4
test edi, edi
je 0x4097f2
push 1
mov ecx, edi
call fcn.00408cd0
push str.API_Set_Param_failed_with_code
lea ecx, [ebp - 0x810]
call fcn.00408af0
lea eax, [ebp - 0x7f8]
mov byte [ebp - 4], 0xa
push ebx
push eax
call fcn.00409ca0
add esp, 8
push eax
lea ecx, [ebp - 0x810]
mov byte [ebp - 4], 0xb
call fcn.00408cb0
lea ecx, [ebp - 0x7f8]
mov byte [ebp - 4], 0xa
call fcn.00401f70
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x7ec]
call fcn.00408b30
push 0x440f20
lea eax, [ebp - 0x7ec]
push eax
call fcn.0040f5e8
call fcn.004130cf
push ebx
call fcn.0040e549
add esp, 4
test edi, edi
je 0x409873
push 1
mov ecx, edi
call fcn.00408cd0
push str.API_Get_Param_failed_with_code
lea ecx, [ebp - 0x810]
call fcn.00408af0
lea eax, [ebp - 0x7f8]
mov byte [ebp - 4], 0xc
push esi
push eax
call fcn.00409ca0
add esp, 8
push eax
lea ecx, [ebp - 0x810]
mov byte [ebp - 4], 0xd
call fcn.00408cb0
lea ecx, [ebp - 0x7f8]
mov byte [ebp - 4], 0xc
call fcn.00401f70
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x7ec]
call fcn.00408b30
push 0x440f20
lea eax, [ebp - 0x7ec]
push eax
call fcn.0040f5e8
test edi, edi
je 0x4098e6
push 1
mov ecx, edi
call fcn.00408cd0
push str.API_Set_Param_failed_with_code
lea ecx, [ebp - 0x810]
call fcn.00408af0
lea eax, [ebp - 0x7f8]
mov byte [ebp - 4], 0xe
push esi
push eax
call fcn.00409ca0
add esp, 8
push eax
lea ecx, [ebp - 0x810]
mov byte [ebp - 4], 0xf
call fcn.00408cb0
lea ecx, [ebp - 0x7f8]
mov byte [ebp - 4], 0xe
call fcn.00401f70
lea ecx, [ebp - 0x810]
call fcn.00409c90
push eax
push 0x43378c
call fcn.004084b0
add esp, 8
lea eax, [ebp - 0x810]
lea ecx, [ebp - 0x7ec]
push eax
call fcn.00408b30
push 0x440f20
lea eax, [ebp - 0x7ec]
push eax
call fcn.0040f5e8
int3