Function at 0x4035ee
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4b8f65
call fcn.00485bb4
sub esp, 0x258
push ebx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 0x264]
xor ebx, ebx
push 0x104
push eax
push ebx
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov byte [edi + 8], bl
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004034fb
push 0xffffffffffffffff
push 0x4bdc64
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.00405db1
cmp eax, 0xffffffff
je 0x403673
lea ecx, [ebp - 0xd]
inc eax
push ecx
push eax
push ebx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00403484
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403f36
lea ecx, [ebp - 0x5c]
call fcn.004050a6
push str.milk3.ini
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0040250f
add esp, 0xc
cmp dword [ebp - 0x30], 7
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 1
cmova eax, dword [ebp - 0x44]
push eax
push 0x100
push 0x4e8980
push 0x4bdc80
push str.AudioDeviceSelected
push 0x4bdcac
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
dec eax
sub eax, 1
jne 0x403729
mov ebx, dword [ebp + 0xc]
push 0x4bdcc0
push dword [ebx + 4]
call fcn.0049261c
pop ecx
pop ecx
test eax, eax
je 0x403715
push 0x4bdcc8
push dword [ebx + 4]
call fcn.0049261c
pop ecx
pop ecx
test eax, eax
je 0x403715
push str.__list_devices
push dword [ebx + 4]
call fcn.0049261c
pop ecx
pop ecx
test eax, eax
jne 0x403729
call fcn.00406252
mov dword [esi], eax
test eax, eax
jne 0x403729
mov dword [esi], 1
jmp 0x40387d
mov eax, esi
mov dword [eax], 1
push dword [ebx]
call fcn.00406bbe
jmp 0x40387c
xor ebx, ebx
inc ebx
cmp dword [ebp + 8], ebx
jle 0x4037d4
mov eax, dword [ebp + 0xc]
push str.__device
push dword [eax + ebx*4]
call fcn.0049261c
pop ecx
pop ecx
test eax, eax
jne 0x403779
cmp dword [edi], eax
jne 0x40380c
mov eax, ebx
inc ebx
cmp eax, dword [ebp + 8]
je 0x4037f5
mov eax, dword [ebp + 0xc]
push edi
push dword [eax + ebx*4]
call fcn.00405f35
mov dword [esi], eax
pop ecx
pop ecx
test eax, eax
js 0x40387d
jmp 0x4037ca
mov eax, dword [ebp + 0xc]
push str.__file
push dword [eax + ebx*4]
call fcn.0049261c
pop ecx
pop ecx
test eax, eax
jne 0x4037ab
cmp dword [edi + 0x10], eax
jne 0x40381a
mov eax, ebx
inc ebx
cmp eax, dword [ebp + 8]
je 0x403813
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + ebx*4]
mov dword [edi + 0x10], eax
jmp 0x4037ca
mov eax, dword [ebp + 0xc]
push str.__int_16
push dword [eax + ebx*4]
call fcn.0049261c
pop ecx
pop ecx
test eax, eax
jne 0x403828
cmp byte [edi + 8], al
jne 0x403821
mov byte [edi + 8], 1
inc ebx
cmp ebx, dword [ebp + 8]
jl 0x403735
xor ebx, ebx
cmp dword [edi], ebx
jne 0x403868
push 0x4e8980
call fcn.004905ea
pop ecx
push edi
test eax, eax
jne 0x403835
call fcn.00405ead
jmp 0x403840
push str.__device_switch_requires_an_argument
push 0x4bc8fc
call fcn.00401954
mov dword [esi], 0x80070057
jmp 0x40387b
push str.Only_one___device_switch_is_allowed
jmp 0x4037fa
push str.__file_switch_requires_an_argument
jmp 0x4037fa
push str.Only_one___file_switch_is_allowed
jmp 0x4037fa
push str.Only_one___int_16_switch_is_allowed
jmp 0x4037fa
mov eax, dword [ebp + 0xc]
push dword [eax + ebx*4]
push str.Invalid_argument__ls
jmp 0x4037ff
push 0x4e8980
call fcn.00405f35
pop ecx
mov dword [esi], eax
pop ecx
test eax, eax
jns 0x403868
push edi
call fcn.00405ead
mov dword [esi], eax
pop ecx
test eax, eax
jns 0x40387d
push ebx
push 0x4bca54
push str.Error_selecting_the_audio_device
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40387d
cmp dword [edi + 0x10], ebx
je 0x40387d
lea eax, [edi + 4]
push eax
push dword [edi + 0x10]
call fcn.00406525
mov dword [esi], eax
pop ecx
pop ecx
lea ecx, [ebp - 0x44]
call fcn.004050a6
lea ecx, [ebp - 0x2c]
call fcn.004050a6
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc