Function at 0x414340
Capabilities:
Create thread

Disassembly:
sub esp, 0x110
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x128]
push 0x3a
push edi
call fcn.00444fd0
mov esi, dword [esp + 0x12c]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x414401
mov eax, dword [esp + 0x12c]
push ebx
push eax
lea ecx, [esp + 0x18]
push ecx
push ebx
push DirectSoundCreate
push edi
push 0x4b3e14
call fcn.00404e20
add esp, 0x1c
cmp eax, 0xffffffff
je 0x414401
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x4143c0
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], ebx
mov dword [esi], ebx
push 0x4b3e14
lea eax, [esi + 0x20]
push eax
mov dword [esi + 4], ebx
call ebp
push edi
lea ecx, [esi + 0x124]
push ecx
call ebp
lea edx, [esi + 0x10]
push edx
push ebx
push esi
push 0x414190
push ebx
push ebx
mov dword [esi], 1
mov dword [esi + 4], ebx
call fcn.004452ce
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x414667
cmp byte [0x13b4b38], bl
je 0x4144b2
mov edx, dword [esp + 0x12c]
push ebx
push edx
lea eax, [esp + 0x18]
push eax
push ebx
push DirectSoundCreate
push edi
push 0x13b4b38
call fcn.00404e20
add esp, 0x1c
cmp eax, 0xffffffff
je 0x4144b2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x41445a
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], ebx
mov dword [esi], ebx
push 0x13b4b38
lea edx, [esi + 0x20]
push edx
mov dword [esi + 4], ebx
call ebp
push edi
lea eax, [esi + 0x124]
push eax
call ebp
lea ecx, [esi + 0x10]
push ecx
push ebx
push esi
push 0x414190
push ebx
push ebx
mov dword [esi], 1
mov dword [esi + 4], ebx
call fcn.004452ce
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0xc], eax
je 0x4144b2
mov edx, dword [esi + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x110
ret
cmp dword [0x13b4d40], ebx
mov dword [esp + 0x10], ebx
jle 0x414567
mov dword [esp + 0x14], 0xbccf04
mov eax, dword [esp + 0x12c]
mov edx, dword [esp + 0x14]
push ebx
push eax
lea ecx, [esp + 0x20]
push ecx
push ebx
push DirectSoundCreate
push edi
push edx
call fcn.00404e20
add esp, 0x1c
cmp eax, 0xffffffff
je 0x414542
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00414220
mov eax, dword [esp + 0x18]
add esp, 4
push eax
lea ecx, [esi + 0x20]
push ecx
mov dword [esi + 4], ebx
call ebp
push edi
lea edx, [esi + 0x124]
push edx
call ebp
lea eax, [esi + 0x10]
push eax
push ebx
push esi
push 0x414190
push ebx
push ebx
mov dword [esi], 1
mov dword [esi + 4], ebx
call fcn.004452ce
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x414667
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [0x13b4d40]
inc eax
add edx, 0x104
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
jl 0x4144ca
cmp byte [0x13b4518], bl
je 0x4145e7
mov edx, dword [esp + 0x12c]
push ebx
push edx
lea eax, [esp + 0x20]
push eax
push ebx
push DirectSoundCreate
push edi
push 0x13b4518
call fcn.00404e20
add esp, 0x1c
cmp eax, 0xffffffff
je 0x4145e7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00414220
add esp, 4
push 0x13b4518
lea ecx, [esi + 0x20]
push ecx
mov dword [esi + 4], ebx
call ebp
push edi
lea edx, [esi + 0x124]
push edx
call ebp
lea eax, [esi + 0x10]
push eax
push ebx
push esi
push 0x414190
push ebx
push ebx
mov dword [esi], 1
mov dword [esi + 4], ebx
call fcn.004452ce
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x414667
cmp byte [0x13b4824], bl
je 0x414682
mov edx, dword [esp + 0x12c]
push ebx
push edx
lea eax, [esp + 0x20]
push eax
push ebx
push DirectSoundCreate
push edi
push 0x13b4824
call fcn.00404e20
add esp, 0x1c
cmp eax, 0xffffffff
je 0x414682
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00414220
add esp, 4
push 0x13b4824
lea ecx, [esi + 0x20]
push ecx
mov dword [esi + 4], ebx
call ebp
push edi
lea edx, [esi + 0x124]
push edx
call ebp
lea eax, [esi + 0x10]
push eax
push ebx
push esi
push 0x414190
push ebx
push ebx
mov dword [esi], 1
mov dword [esi + 4], ebx
call fcn.004452ce
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0xc], eax
je 0x414682
mov ecx, dword [esi + 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x110
ret
mov edx, dword [esp + 0x12c]
push edx
push edi
push 0x13b461c
push esi
call fcn.00414270
add esp, 0x10
cmp eax, ebx
jne 0x414753
cmp byte [0x13b4720], bl
je 0x4146c8
mov eax, dword [esp + 0x12c]
push eax
push edi
push 0x13b4720
push esi
call fcn.00414270
add esp, 0x10
cmp eax, ebx
jne 0x414753
cmp byte [0x13b492c], bl
je 0x4146eb
mov ecx, dword [esp + 0x12c]
push ecx
push edi
push 0x13b492c
push esi
call fcn.00414270
add esp, 0x10
cmp eax, ebx
jne 0x414753
cmp byte [0x13b4930], bl
je 0x41470e
mov edx, dword [esp + 0x12c]
push edx
push edi
push 0x13b4930
push esi
call fcn.00414270
add esp, 0x10
cmp eax, ebx
jne 0x414753
cmp byte [0x13b4a34], bl
je 0x414731
mov eax, dword [esp + 0x12c]
push eax
push edi
push 0x13b4a34
push esi
call fcn.00414270
add esp, 0x10
cmp eax, ebx
jne 0x414753
push edi
lea ecx, [esp + 0x20]
push str.File_Not_Found._n_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
push 0x13b41c4
call ebp
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret