Function at 0x438730
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x45c19d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x144
mov eax, dword [0x47b258]
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.00437940
mov byte [esi + 4], 0
mov dword [ebx], 0
mov dword [esi + 0xc], 0
call fcn.00402330
mov eax, dword [0x47c170]
mov ecx, dword [eax + 4]
push ecx
call fcn.0041fde0
add esp, 0x10
mov ecx, esi
mov byte [esi + 4], 0
call fcn.00437940
push str.._ChickenInvaders2Xmas.cfg
push 0x100
lea edx, [esp + 0x58]
push edx
push 0x45d66d
mov ebp, eax
mov eax, dword [ebp]
push str.bMute
push eax
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
test eax, eax
jle 0x4387e9
cmp byte [esp + 0x50], 0x59
sete cl
mov byte [esi + 4], cl
mov al, byte [esi + 4]
test al, al
mov eax, 0x468f0c
jne 0x4387fa
mov eax, 0x468f08
mov edx, dword [ebp]
push str.._ChickenInvaders2Xmas.cfg
push eax
push str.bMute
push edx
call dword [sym.imp.kernel32.dll_WritePrivateProfileStringA]
mov al, byte [esi + 4]
test al, al
je 0x43883f
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.00402330
mov eax, dword [0x47c170]
mov ecx, dword [eax + 4]
push ecx
jmp 0x438cf7
push 0
push ebx
push 0
call sub.dsound.dll_DirectSoundCreate
test eax, eax
jge 0x438857
push str.Could_not_create_DirectSound._Disabling_sound...
jmp 0x438cd7
call fcn.0045673c
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 0x4388f3
mov edx, dword [0x47c170]
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.0040f8c0
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.00402330
mov ecx, dword [0x47c170]
mov edx, dword [ecx + 0x10]
push edx
call fcn.00413050
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 0x4388f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push esi
push 0x4379b0
call sub.dsound.dll_DirectSoundEnumerateA
test eax, eax
jge 0x438980
mov ecx, dword [0x47c170]
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.0040f8c0
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.00402330
mov eax, dword [0x47c170]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.00413050
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 0x438980
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, esi
call fcn.00437a70
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 0x438a3a
push 0x2f
push str.engineUveSound.cpp
push str.UveSound::UveSound
push str.dxSound__CreateSoundBuffer_dsbdesc__dxPrimaryBuffer__NULL_
push eax
mov eax, dword [0x47c170]
mov ecx, dword [eax + 0x10]
lea edx, [esp + 0x24]
push edx
call fcn.0040f8c0
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.00402330
mov edx, dword [0x47c170]
mov eax, dword [edx + 0x10]
push eax
call fcn.00413050
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 0x438a3a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, esi
call fcn.004381e0
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
push str.._ChickenInvaders2Xmas.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.0044bd3a
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 0x45dd4c
push ecx
mov dword [esp + 0x168], 3
call fcn.0041af90
mov ebx, dword [esp + 0x1c]
mov edx, dword [ebp]
add esp, 0xc
push str.._ChickenInvaders2Xmas.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 0x438af5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push str.._ChickenInvaders2Xmas.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.0044bd3a
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 0x45dd4c
push ecx
mov dword [esp + 0x168], 4
call fcn.0041af90
mov ebx, dword [esp + 0x1c]
mov edx, dword [ebp]
add esp, 0xc
push str.._ChickenInvaders2Xmas.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 0x438b89
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push str.._ChickenInvaders2Xmas.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.0044bd3a
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 0x45dd4c
push ecx
mov dword [esp + 0x168], 5
call fcn.0041af90
mov edi, dword [esp + 0x1c]
mov edx, dword [ebp]
add esp, 0xc
push str.._ChickenInvaders2Xmas.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 0x438c19
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 0x438cc3
mov ecx, dword [0x47c170]
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.0040f8c0
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.00402330
mov eax, dword [0x47c170]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.00413050
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 0x438cc3
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.00402330
mov edx, dword [0x47c170]
mov eax, dword [edx + 4]
push eax
call fcn.0041fde0
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.0043eeae