Function at 0x421b30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4581f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
mov eax, dword [0x476a54]
xor eax, dword [esp + 0x6c]
push ebx
push ebp
push esi
mov ebp, ecx
mov dword [esp + 0x68], eax
push edi
mov dword [esp + 0x1c], ebp
mov edi, dword [esp + 0x80]
push ecx
lea eax, [edi - 0x10]
mov dword [esp + 0x24], esp
mov esi, esp
push eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x28], eax
call fcn.00406ba0
add eax, 0x10
add esp, 4
lea ecx, [esp + 0x2c]
mov dword [esi], eax
call fcn.0041a260
mov esi, dword [esp + 0x2c]
cmp dword [esi + 0x24], 0x61746164
mov ebx, 1
mov byte [esp + 0x78], bl
je 0x421be4
push 0x3b
push str.engineSound.cpp
push str.Sound::loadWAV
push str.header__dIdMAKEFOURCC_d_a_t_a_
push str.Assertion_failed.
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
call fcn.004022f0
mov eax, dword [0x477970]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.00413110
add esp, 0x1c
mov cx, word [esi + 0x16]
cmp cx, bx
mov eax, str.mono
je 0x421bf7
mov eax, str.stereo
push eax
movzx eax, word [esi + 0x20]
movzx ecx, cx
cdq
idiv ecx
mov edx, dword [esi + 0x18]
shl eax, 3
push eax
push edx
push edi
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.Loading_file__s___d_Hz___d_bit__s_.
call fcn.004022f0
mov ecx, dword [0x477970]
lea eax, [esp + 0x28]
push eax
push ecx
call fcn.004250e0
add esp, 0x1c
mov edx, dword [eax]
push edx
push str.Sound::loadWAV
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str._s__:__s
mov byte [esp + 0x88], 2
call fcn.004022f0
mov eax, dword [0x477970]
mov ecx, dword [eax + 4]
push ecx
call fcn.00419450
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x78], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x421c84
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
mov ecx, 9
lea edi, [esp + 0x48]
rep stosd dword es:[edi], eax
mov dword [esp + 0x48], 0x24
mov dword [esp + 0x4c], 0x10042
mov eax, dword [esi + 0x28]
mov dword [esp + 0x50], eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x58], ecx
lea edx, [esi + 0x14]
mov eax, dword [edx]
mov dword [esp + 0x34], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x38], ecx
mov eax, dword [edx + 8]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x3c], eax
mov ax, word [edx + 0xc]
mov word [esp + 0x40], ax
movzx eax, ax
cdq
shr ecx, 0x10
idiv ecx
add ebp, 0x10
mov word [esp + 0x44], 0
shl eax, 3
mov word [esp + 0x42], ax
mov al, byte [esp + 0x84]
test al, al
je 0x421e4f
mov edx, dword [0x477970]
mov eax, dword [edx + 0x8c]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
push 0
push ebp
lea edx, [esp + 0x50]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
jge 0x421e90
push 0x40
push ecx
mov ecx, esp
mov dword [esp + 0x8c], esp
push str.Warning__Could_not_create_sound_buffer_with_extraFlags0x_08x._Removing_flags_and_retrying...
call fcn.004022f0
mov ecx, dword [0x477970]
lea eax, [esp + 0x8c]
push eax
push ecx
call fcn.004250e0
add esp, 0x10
mov edx, dword [eax]
push edx
push str.Sound::loadWAV
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str._s__:__s
mov byte [esp + 0x88], 3
call fcn.004022f0
mov eax, dword [0x477970]
mov ecx, dword [eax + 4]
push ecx
call fcn.00419450
mov eax, dword [esp + 0x94]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x78], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x421da7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [0x477970]
mov dword [esp + 0x4c], 0
mov ecx, dword [eax + 0x8c]
mov eax, dword [ecx + 8]
mov edx, dword [eax]
push 0
push ebp
lea ecx, [esp + 0x50]
push ecx
push eax
call dword [edx + 0xc]
test eax, eax
jge 0x421e90
push 0x58
push str.engineSound.cpp
push str.Sound::loadWAV
push str.uve__pUveSound__dxSound__CreateSoundBuffer_dsbdesc__dxSoundBuffer__NULL_
push eax
mov eax, dword [0x477970]
mov ecx, dword [eax + 0x10]
lea edx, [esp + 0x98]
push edx
call fcn.0040f980
mov ecx, dword [eax]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push str.Error:__s_n_Statement:__s_n_Function:__s___n_File:__s_n_Line:__d
mov byte [esp + 0x94], 4
call fcn.004022f0
mov edx, dword [0x477970]
mov eax, dword [edx + 0x10]
push eax
call fcn.00413110
mov eax, dword [esp + 0xa0]
add eax, 0xfffffff0
add esp, 0x1c
mov byte [esp + 0x78], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421e90
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x421e90
cmp dword [ebp], 0
jne 0x421e90
push 0x5d
push str.engineSound.cpp
push str.Sound::loadWAV
push str.dxSoundBuffer_NULL
push str.Assertion_failed.
push ecx
mov ecx, esp
mov dword [esp + 0x9c], esp
push str.Error:__s_n_Statement:__s_n_Function:__s___n_File:__s_n_Line:__d
call fcn.004022f0
mov eax, dword [0x477970]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.00413110
add esp, 0x1c
mov eax, dword [ebp]
mov edx, dword [eax]
push 2
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push eax
call dword [edx + 0x2c]
test eax, eax
jge 0x421f2b
push 0x63
push str.engineSound.cpp
push str.Sound::loadWAV
push str.dxSoundBuffer__Lock_0_0_pointerToData1_sizeOfData1_NULL_NULL_DSBLOCK_ENTIREBUFFER_
push eax
mov eax, dword [0x477970]
mov ecx, dword [eax + 0x10]
lea edx, [esp + 0x98]
push edx
call fcn.0040f980
mov ecx, dword [eax]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push str.Error:__s_n_Statement:__s_n_Function:__s___n_File:__s_n_Line:__d
mov byte [esp + 0x94], 5
call fcn.004022f0
mov edx, dword [0x477970]
mov eax, dword [edx + 0x10]
push eax
call fcn.00413110
mov eax, dword [esp + 0xa0]
add eax, 0xfffffff0
add esp, 0x1c
mov byte [esp + 0x78], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421f2b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esi + 0x28]
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x10]
mov eax, ecx
shr ecx, 2
add esi, 0x2c
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x1c]
mov eax, dword [ebp]
mov ecx, dword [eax]
push 0
push edx
mov edx, dword [esp + 0x1c]
push edx
push eax
call dword [ecx + 0x4c]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x80]
add ecx, 0x14
push eax
call fcn.00413af0
lea ecx, [esp + 0x28]
mov byte [esp + 0x78], 0
call fcn.0041a210
mov eax, dword [esp + 0x20]
mov dword [esp + 0x78], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421fa3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x6c]
xor ecx, dword [esp + 0x7c]
call fcn.0043c4b6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 8