Function at 0x4384c0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x45bf1d
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.004376d0
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.0041fdb0
add esp, 0x10
mov ecx, esi
mov byte [esi + 4], 0
call fcn.004376d0
push str.._ChickenInvaders2.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 0x438579
cmp byte [esp + 0x50], 0x59
sete cl
mov byte [esi + 4], cl
mov al, byte [esi + 4]
test al, al
mov eax, 0x468f44
jne 0x43858a
mov eax, 0x468f40
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 0x4385cf
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 0x438a87
push 0
push ebx
push 0
call sub.dsound.dll_DirectSoundCreate
test eax, eax
jge 0x4385e7
push str.Could_not_create_DirectSound._Disabling_sound...
jmp 0x438a67
call fcn.004564cc
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 0x438683
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.0040f950
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.004130e0
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 0x438683
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push esi
push 0x437740
call sub.dsound.dll_DirectSoundEnumerateA
test eax, eax
jge 0x438710
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.0040f950
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.004130e0
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 0x438710
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, esi
call fcn.00437800
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 0x4387ca
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.0040f950
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.004130e0
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 0x4387ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, esi
call fcn.00437f70
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.0044baca
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 0x45dd8c
push ecx
mov dword [esp + 0x168], 3
call fcn.0041b020
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 0x438885
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.0044baca
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 0x45dd8c
push ecx
mov dword [esp + 0x168], 4
call fcn.0041b020
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 0x438919
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.0044baca
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 0x45dd8c
push ecx
mov dword [esp + 0x168], 5
call fcn.0041b020
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 0x4389a9
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 0x438a53
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.0040f950
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.004130e0
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 0x438a53
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.0041fdb0
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.0043ec3e