Function at 0x413a40
Capabilities:
Extract resource via kernel32 functions
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x5846d8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5e95e0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00414500
call fcn.0041b520
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
xor edi, edi
push 2
mov dword [0x5f2608], edi
mov dword [0x5f260c], edi
mov dword [0x5f2600], edi
mov dword [0x5f2604], edi
mov dword [0x5f2610], edi
mov dword [0x5f2614], edi
mov dword [0x5f2638], edi
call ebx
push 3
mov dword [0x5f2850], eax
call ebx
mov dword [0x5f2854], eax
mov eax, dword [0x5f2218]
mov dword [0x5f2850], 0x10
mov dword [0x5f21d0], 0xf697e
mov eax, dword [eax - 0xc]
cmp eax, edi
jne 0x413aed
push 1
push 1
push str._d._.2d
push 0x5f2218
call fcn.00405480
add esp, 0x10
push 0x595d54
push 0xa1
push edi
mov dword [0x5f2820], edi
mov dword [0x5f2858], edi
mov dword [0x5f285c], edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebp, eax
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebp
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 3
push eax
call fcn.004ec6f0
add esp, 8
push 8
push str.templ300
mov ecx, 0x5f28cc
mov dword [esi], eax
call fcn.00402250
call fcn.0041c970
push str._binwmdll3.dll
lea ecx, [esp + 0x20]
call fcn.00402390
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push 0x5f2878
push edx
mov dword [esp + 0x34], edi
call fcn.00401ae0
mov eax, dword [esp + 0x24]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, edi
mov dword [0x5f2a7c], eax
je 0x413c38
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateReader
push eax
call esi
mov ecx, dword [0x5f2a7c]
push str.DeleteReader
push ecx
mov dword [0x5f2a80], eax
call esi
mov edx, dword [0x5f2a7c]
push str.OpenAudioFile
push edx
mov dword [0x5f2a84], eax
call esi
mov dword [0x5f2a88], eax
mov eax, dword [0x5f2a7c]
push str.GetInfo
push eax
call esi
mov ecx, dword [0x5f2a7c]
push str.ReadPCMBlock
push ecx
mov dword [0x5f2a8c], eax
call esi
mov edx, dword [0x5f2a7c]
push str.GetCurPos
push edx
mov dword [0x5f2a90], eax
call esi
mov dword [0x5f2a94], eax
mov eax, dword [0x5f2a7c]
push str.SetCurPos
push eax
call esi
mov ecx, dword [0x5f2a7c]
push str.IsOpened
push ecx
mov dword [0x5f2a98], eax
call esi
mov edx, dword [0x5f2a7c]
push str.SetCallBack
push edx
mov dword [0x5f2a9c], eax
call esi
mov dword [0x5f2aa0], eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413c58
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413c80
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret