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

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
mov eax, 0x10
xor ebx, ebx
mov dword [esi + 4], 0xac44
mov dword [esi + 8], eax
mov byte [esi + 0xc], 1
mov ecx, dword [0x7d97e8]
mov dword [esi + 0x10], ecx
mov edx, dword [0x7d97ec]
mov dword [esi + 0x14], edx
mov ecx, dword [0x7d97e8]
mov dword [esi + 0x18], ecx
mov edx, dword [0x7d97ec]
mov dword [esi + 0x1c], edx
push edi
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], 0x4e20
mov dword [esi + 0x34], 0x186a0
mov dword [esi + 0x38], 0xffffffff
mov byte [esi + 0x3c], 1
mov byte [esi + 0x3d], 1
mov byte [esi + 0x3e], 1
mov byte [esi + 0x3f], 1
mov byte [esi + 0x40], 1
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov eax, dword [0x809d38]
lea edi, [esi + 0x4c]
push ebx
push ebx
mov ecx, edi
mov dword [edi], eax
call fcn.005dcfa0
mov ecx, dword [edi]
mov dl, byte [0x83ec0c]
lea edi, [esi + 0x54]
push ebx
mov byte [ecx], dl
mov ecx, edi
mov byte [esi + 0x50], 1
mov byte [esi + 0x51], 1
mov byte [esi + 0x52], 1
mov byte [esi + 0x53], 1
call fcn.00519d20
mov dword [edi + 0xc], ebx
mov dword [edi], 0x7d98ac
lea edi, [esi + 0x64]
push ebx
mov ecx, edi
call fcn.00519dc0
mov dword [edi + 0xc], ebx
mov dword [edi], 0x7d98a0
lea edi, [esi + 0x7c]
push ebx
push ebx
mov ecx, edi
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
call fcn.00519e60
mov ebp, 0xa
mov dword [edi], 0x7d9888
mov dword [edi + 0x14], ebp
mov dword [edi + 0x10], ebx
lea edi, [esi + 0xa4]
push ebx
push ebx
mov ecx, edi
mov dword [esi + 0x94], ebx
mov dword [esi + 0x98], ebx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa0], 0xffffffff
call fcn.00519eb0
mov dword [edi], 0x7d9870
mov dword [edi + 0x14], ebp
mov dword [edi + 0x10], ebx
mov eax, dword [0x809d38]
lea edi, [esi + 0xbc]
push ebx
push ebx
mov ecx, edi
mov dword [edi], eax
call fcn.005dcfa0
mov ecx, dword [edi]
mov dl, byte [0x83ec0c]
lea edi, [esi + 0xc4]
push ebx
mov byte [ecx], dl
push ebx
mov ecx, edi
mov dword [esi + 0xc0], ebx
call fcn.00519f00
mov dword [edi], 0x7d9858
mov dword [edi + 0x14], ebp
mov dword [edi + 0x10], ebx
lea edi, [esi + 0xdc]
push ebx
push ebx
mov ecx, edi
call fcn.00519f50
mov dword [edi], 0x7d9840
mov dword [edi + 0x14], ebp
mov dword [edi + 0x10], ebx
lea edi, [esi + 0xf4]
mov dword [esp + 0x10], 3
push ebx
push ebx
mov ecx, edi
call fcn.00519fa0
mov eax, dword [esp + 0x10]
mov dword [edi], 0x7d9828
mov dword [edi + 0x14], ebp
mov dword [edi + 0x10], ebx
add edi, 0x18
dec eax
mov dword [esp + 0x10], eax
jne 0x5118de
lea edi, [esi + 0x13c]
push ebx
push ebx
mov ecx, edi
call fcn.00519fa0
mov dword [edi + 0x14], ebp
lea ebp, [esi + 0x154]
push ebx
push ebx
mov ecx, ebp
mov dword [edi], 0x7d9828
mov dword [edi + 0x10], ebx
call fcn.00519fa0
mov dword [ebp], 0x7d9828
mov dword [ebp + 0x14], 0xa
mov dword [ebp + 0x10], ebx
lea edi, [esi + 0x16c]
mov dword [esp + 0x10], 0x100
push ebx
push ebx
mov ecx, edi
call fcn.00519ff0
mov eax, dword [esp + 0x10]
mov dword [edi], 0x7d9810
mov dword [edi + 0x14], 0xa
mov dword [edi + 0x10], ebx
add edi, 0x18
dec eax
mov dword [esp + 0x10], eax
jne 0x51194a
lea edi, [esi + 0x1974]
push ebx
push ebx
mov ecx, edi
mov dword [esi + 0x196c], 0x100000
mov dword [esi + 0x1970], ebx
call fcn.0051a090
mov dword [edi], 0x7d97f8
mov dword [edi + 0x14], 0xa
mov dword [edi + 0x10], ebx
mov dword [esi + 0x198c], ebx
mov dword [esi + 0x1990], ebx
mov eax, dword [0x7d97f0]
push 0x8302c0
mov dword [esi + 0x1994], eax
mov dword [esi + 0x1998], ebx
mov dword [esi + 0x199c], ebx
mov dword [esi + 0x19a0], ebx
mov dword [esi], 0x7d97f4
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov al, byte [esp + 0x18]
cmp al, bl
mov byte [esi + 0x19a4], al
jne 0x5119f3
call fcn.005254d0
call dword [sym.imp.mss32.dll__AIL_startup_0]
push str.WWAUDIO_TIMER_SYNC
push ebx
push 1
push ebx
mov dword [0x830294], esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
fld dword [0x7d97ec]
mov dword [0x830298], eax
fst dword [esi + 0x1c]
fld dword [0x7cd794]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x511a2d
fstp st(0)
fld dword [0x7cd794]
fst dword [esi + 0x1c]
fld dword [0x7cd7b4]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x511a47
fstp st(0)
fld dword [0x7cd7b4]
fst dword [esi + 0x1c]
fst dword [esi + 0x14]
fld dword [0x7cd794]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x511a64
fstp st(0)
fld dword [0x7cd794]
fst dword [esi + 0x14]
fld dword [0x7cd7b4]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x511a7e
fstp st(0)
fld dword [0x7cd7b4]
mov eax, dword [esi + 0x78]
xor edi, edi
fstp dword [esi + 0x14]
lea ecx, [eax + eax*2]
lea eax, [esi + ecx*8]
mov ecx, dword [esi + ecx*8 + 0x104]
cmp ecx, ebx
jle 0x511ad2
mov edx, dword [eax + 0xf8]
mov ecx, dword [edx + edi*4]
mov dword [esp + 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 0x8c]
cmp eax, 1
jne 0x511abd
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
call dword [edx + 0xd8]
mov eax, dword [esi + 0x78]
inc edi
lea eax, [eax + eax*2]
mov ecx, dword [esi + eax*8 + 0x104]
lea eax, [esi + eax*8]
cmp edi, ecx
jl 0x511a97
fld dword [0x7d97e8]
fst dword [esi + 0x18]
fld dword [0x7cd794]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x511af2
fstp st(0)
fld dword [0x7cd794]
fst dword [esi + 0x18]
fld dword [0x7cd7b4]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x511b0c
fstp st(0)
fld dword [0x7cd7b4]
fst dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
fstp dword [esi + 0x18]
push ecx
mov ecx, esi
call fcn.00515110
mov edi, 0x64
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
cmp eax, ecx
jl 0x511b4e
cmp byte [ebp + 0xd], bl
jne 0x511b37
cmp ecx, ebx
jne 0x511b5d
mov eax, dword [ebp + 0x14]
cmp eax, ebx
jle 0x511b5d
mov edx, dword [ebp]
add eax, ecx
push ebx
push eax
mov ecx, ebp
call dword [edx + 8]
test al, al
je 0x511b5d
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 4]
lea ecx, [eax + 1]
mov dword [ebp + 0x10], ecx
mov dword [edx + eax*4], ebx
dec edi
jne 0x511b24
cmp byte [esp + 0x18], bl
jne 0x511b85
push 0x218
call fcn.00672b70
add esp, 4
cmp eax, ebx
je 0x511b80
mov ecx, eax
call fcn.0051a1f0
jmp 0x511b82
xor eax, eax
mov dword [esi + 0x74], eax
fild dword [esi + 0x34]
fadd st(0), st(0)
call fcn.0078c320
mov dword [esi + 0x34], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4