Function at 0x42ff10
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x458a4d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x144
mov eax, dword [0x476a54]
xor eax, dword [esp + 0x150]
push ebx
push ebp
push esi
push edi
push str.Starting...
mov esi, ecx
push str.UveSound::UveSound
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
lea ebx, [esi + 8]
push str._s__:__s
mov dword [esp + 0x160], eax
mov dword [esi], fcn.0042f120
mov byte [esi + 4], 0
mov dword [ebx], 0
mov dword [esi + 0xc], 0
call fcn.004022f0
mov eax, dword [0x477970]
mov ecx, dword [eax + 4]
push ecx
call fcn.00419450
add esp, 0x10
mov ecx, esi
mov byte [esi + 4], 0
call fcn.0042f120
push str.._ChickenInvaders2.cfg
push pe_nt_image_headers32
lea edx, [esp + 0x58]
push edx
push 0x45a67d
mov ebp, eax
mov eax, dword [ebp]
push str.bMute
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jle 0x42ffc9
cmp byte [esp + 0x50], 0x59
sete cl
mov byte [esi + 4], cl
mov al, byte [esi + 4]
test al, al
mov eax, 0x4683f4
jne 0x42ffda
mov eax, 0x4683f0
mov edx, dword [ebp]
push str.._ChickenInvaders2.cfg
push eax
push str.bMute
push edx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov al, byte [esi + 4]
test al, al
je 0x43001f
push str.Sound_has_been_muted.
push str.UveSound::UveSound
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str._s__:__s
call fcn.004022f0
mov eax, dword [0x477970]
mov ecx, dword [eax + 4]
push ecx
jmp 0x4304d7
push 0
push ebx
push 0
call sub.DSOUND.dll_DirectSoundCreate
test eax, eax
jge 0x430037
push str.Could_not_create_DirectSound._Disabling_sound...
jmp 0x4304b7
call fcn.004537d5
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 0x1c]
mov ecx, dword [ebx]
mov edx, dword [ecx]
push 2
push eax
push ecx
call dword [edx + 0x18]
test eax, eax
jge 0x4300d3
mov edx, dword [0x477970]
push 0x22
push str.engineUveSound.cpp
push str.UveSound::UveSound
push str.dxSound__SetCooperativeLevel_FASTWINDOWHANDLE__DSSCL_PRIORITY_
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [edx + 0x10]
call fcn.0040f980
mov eax, dword [eax]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.Error:__s_n_Statement:__s_n_Function:__s___n_File:__s_n_Line:__d
mov dword [esp + 0x178], 0
call fcn.004022f0
mov ecx, dword [0x477970]
mov edx, dword [ecx + 0x10]
push edx
call fcn.00413110
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x1c
mov dword [esp + 0x15c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4300d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push esi
push 0x42f190
call sub.DSOUND.dll_DirectSoundEnumerateA
test eax, eax
jge 0x430160
mov ecx, dword [0x477970]
mov ecx, dword [ecx + 0x10]
push 0x25
push str.engineUveSound.cpp
push str.UveSound::UveSound
push str.DirectSoundEnumerate_UveSound::enumerateCallback_this_
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0040f980
mov edx, dword [eax]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.Error:__s_n_Statement:__s_n_Function:__s___n_File:__s_n_Line:__d
mov dword [esp + 0x178], 1
call fcn.004022f0
mov eax, dword [0x477970]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.00413110
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x1c
mov dword [esp + 0x15c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x430160
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, esi
call fcn.0042f250
xor eax, eax
mov ecx, 9
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov eax, dword [ebx]
push 0
lea ecx, [esi + 0xc]
push ecx
lea ecx, [esp + 0x34]
mov edi, 1
push ecx
mov dword [esp + 0x38], 0x24
mov dword [esp + 0x3c], edi
mov edx, dword [eax]
push eax
call dword [edx + 0xc]
test eax, eax
jge 0x43021a
push 0x2f
push str.engineUveSound.cpp
push str.UveSound::UveSound
push str.dxSound__CreateSoundBuffer_dsbdesc__dxPrimaryBuffer__NULL_
push eax
mov eax, dword [0x477970]
mov ecx, dword [eax + 0x10]
lea edx, [esp + 0x24]
push edx
call fcn.0040f980
mov ecx, dword [eax]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.Error:__s_n_Statement:__s_n_Function:__s___n_File:__s_n_Line:__d
mov dword [esp + 0x178], 2
call fcn.004022f0
mov edx, dword [0x477970]
mov eax, dword [edx + 0x10]
push eax
call fcn.00413110
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x1c
mov dword [esp + 0x15c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43021a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, esi
call fcn.0042f9c0
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
push str.._ChickenInvaders2.cfg
mov dword [esp + 0x28], eax
push 2
mov word [esp + 0x20], di
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov word [esp + 0x30], ax
mov word [esp + 0x22], 2
mov ecx, dword [ebp]
push str.format.nChannels
push ecx
call edi
mov word [esp + 0x1a], ax
call fcn.0044922a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
movzx eax, word [esp + 0x1a]
push eax
lea ecx, [esp + 0x14]
push 0x45af18
push ecx
mov dword [esp + 0x168], 3
call fcn.00414f70
mov ebx, dword [esp + 0x1c]
mov edx, dword [ebp]
add esp, 0xc
push str.._ChickenInvaders2.cfg
push ebx
push str.format.nChannels
push edx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea eax, [ebx - 0x10]
mov dword [esp + 0x15c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4302d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push str.._ChickenInvaders2.cfg
push 0x5622
mov dword [esp + 0x24], 0x5622
mov eax, dword [ebp]
push str.format.nSamplesPerSec
push eax
call edi
mov dword [esp + 0x1c], eax
call fcn.0044922a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push 0x45af18
push ecx
mov dword [esp + 0x168], 4
call fcn.00414f70
mov ebx, dword [esp + 0x1c]
mov edx, dword [ebp]
add esp, 0xc
push str.._ChickenInvaders2.cfg
push ebx
push str.format.nSamplesPerSec
push edx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea eax, [ebx - 0x10]
mov dword [esp + 0x15c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x430369
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push str.._ChickenInvaders2.cfg
push 0x10
mov word [esp + 0x2e], 0x10
mov eax, dword [ebp]
push str.format.wBitsPerSample
push eax
call edi
mov word [esp + 0x26], ax
call fcn.0044922a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
movzx eax, word [esp + 0x26]
push eax
lea ecx, [esp + 0x14]
push 0x45af18
push ecx
mov dword [esp + 0x168], 5
call fcn.00414f70
mov edi, dword [esp + 0x1c]
mov edx, dword [ebp]
add esp, 0xc
push str.._ChickenInvaders2.cfg
push edi
push str.format.wBitsPerSample
push edx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
or ebx, 0xffffffff
lea eax, [edi - 0x10]
mov dword [esp + 0x15c], ebx
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4303f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
mov ax, word [esp + 0x26]
shr ax, 3
lea edx, [esp + 0x18]
push edx
imul eax, dword [esp + 0x1e]
mov word [esp + 0x28], ax
movzx eax, ax
imul eax, dword [esp + 0x20]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x38]
test eax, eax
jge 0x4304a3
mov ecx, dword [0x477970]
mov ecx, dword [ecx + 0x10]
push 0x3d
push str.engineUveSound.cpp
push str.UveSound::UveSound
push str.dxPrimaryBuffer__SetFormat_format_
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0040f980
mov edx, dword [eax]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.Error:__s_n_Statement:__s_n_Function:__s___n_File:__s_n_Line:__d
mov dword [esp + 0x178], 6
call fcn.004022f0
mov eax, dword [0x477970]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.00413110
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0x1c
mov dword [esp + 0x15c], ebx
lea edx, [eax + 0xc]
lock xadd dword [edx], ebx
dec ebx
test ebx, ebx
jg 0x4304a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
push 1
push 0
push 0
push eax
call dword [ecx + 0x30]
push str.Started...
push str.UveSound::UveSound
push ecx
mov dword [esp + 0x1c], esp
mov ecx, esp
push str._s__:__s
call fcn.004022f0
mov edx, dword [0x477970]
mov eax, dword [edx + 4]
push eax
call fcn.00419450
mov ecx, dword [esp + 0x164]
add esp, 0x10
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x148]
xor ecx, dword [esp + 0x158]
pop ebp
pop ebx
add esp, 0x150
jmp fcn.0043c4b6