Function at 0x51b1c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x5be03f
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
push ebx
push esi
push edi
mov eax, dword [0x69e298]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, dword [esi]
dec eax
cmp eax, 9
ja case.0x51b203.10
jmp dword [eax*4 + 0x51b758]
lea eax, [esi + 0xc]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0051a6b0
xor ebx, ebx
mov dword [esp + 0x100], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov ecx, dword [edi + 0x54]
mov byte [esp + 0x100], 1
cmp dword [esp + 0x1c], ebx
jne 0x51b2c7
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
lea eax, [esi + 0x28]
push eax
lea eax, [esp + 0x48]
push eax
call edx
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x104], 2
call fcn.00476790
lea ecx, [esp + 0x44]
mov byte [esp + 0x100], 1
call fcn.004e2360
mov eax, dword [esp + 0x24]
mov ebx, dword [eax]
mov ecx, dword [esi + 0x38]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x34]
push eax
add ebx, 4
call fcn.004922e0
mov ecx, dword [esp + 0x30]
mov edx, dword [ebx]
push eax
push 0
call edx
mov eax, dword [esp + 0x38]
mov ecx, dword [esi + 0x38]
push eax
push 0
call fcn.00492410
mov ecx, dword [esp + 0x38]
push eax
push ecx
call fcn.0058a7d0
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
add esp, 0xc
lea eax, [esp + 0x34]
push eax
call edx
xor ebx, ebx
jmp 0x51b2fb
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x50]
push edx
call eax
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x104], 3
call fcn.00476790
lea ecx, [esp + 0x4c]
mov byte [esp + 0x100], 1
call fcn.004e2360
push 0x14
call fcn.00589ab7
add esp, 4
cmp eax, ebx
je 0x51b31e
mov dword [eax + 4], 1
mov dword [eax], vtable.Maid::SoundObjectPCMStatic.0
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
jmp 0x51b320
xor eax, eax
push eax
lea ecx, [esp + 0x38]
call fcn.0051a620
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x38]
mov byte [esp + 0x104], 4
call fcn.00526b10
mov byte [esp + 0x2c], 0
mov edx, dword [esp + 0x2c]
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x34]
call fcn.0051a1d0
lea eax, [esi + 0xc]
push eax
lea ecx, [esp + 0x30]
push ecx
add esi, 4
push esi
mov ecx, edi
mov byte [esp + 0x10c], 5
call fcn.0051b0c0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x100], 4
call fcn.004e2360
lea ecx, [esp + 0x34]
mov byte [esp + 0x100], 1
call fcn.004e2360
lea ecx, [esp + 0x24]
mov byte [esp + 0x100], 0
call fcn.004e2360
lea ecx, [esp + 0x1c]
mov dword [esp + 0x100], 0xffffffff
call fcn.004e2360
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [edi + 0x54]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
lea eax, [esi + 0xc]
push eax
lea eax, [esp + 0x28]
push eax
call edx
cmp dword [esp + 0x24], 0
mov ebx, 6
mov dword [esp + 0x100], ebx
je 0x51b4d0
push 0x34
call fcn.00589ab7
add esp, 4
test eax, eax
je 0x51b414
mov ecx, eax
call fcn.0051a4e0
jmp 0x51b416
xor eax, eax
push eax
lea ecx, [esp + 0x20]
call fcn.0051a650
lea eax, [esi + 0x1c]
push eax
lea ecx, [esi + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x10c], 7
call fcn.00526e80
push 0x5d1c39
lea ecx, [esp + 0x74]
call fcn.00402290
mov byte [esp + 0x2c], 0
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x3c]
call fcn.0051a1d0
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x90]
push eax
mov byte [esp + 0x108], 9
call fcn.00495c50
add esp, 8
push eax
lea ecx, [esp + 0x38]
push ecx
add esi, 4
push esi
mov ecx, edi
mov byte [esp + 0x10c], 0xa
call fcn.0051b0c0
lea ecx, [esp + 0x8c]
call fcn.004176e0
lea ecx, [esp + 0x34]
mov byte [esp + 0x100], 8
call fcn.004e2360
lea ecx, [esp + 0x70]
call fcn.00401a50
lea ecx, [esp + 0x1c]
mov byte [esp + 0x100], bl
call fcn.004e2360
lea ecx, [esp + 0x24]
mov dword [esp + 0x100], 0xffffffff
call fcn.004e2360
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [edi + 0x54]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
lea eax, [esi + 0xc]
push eax
lea eax, [esp + 0x28]
push eax
call edx
cmp dword [esp + 0x24], 0
mov ebx, 0xb
mov dword [esp + 0x100], ebx
je 0x51b4d0
push 0x24
call fcn.00589ab7
add esp, 4
mov dword [esp + 0x2c], eax
mov byte [esp + 0x100], 0xc
test eax, eax
je 0x51b545
mov ecx, eax
call fcn.005270c0
jmp 0x51b547
xor eax, eax
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x104], bl
call fcn.0051a680
lea eax, [esi + 0x1c]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x108], 0xd
call fcn.00527510
push 0x5d1c39
lea ecx, [esp + 0x58]
call fcn.00402290
mov byte [esp + 0x2c], 0
mov edx, dword [esp + 0x2c]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x3c]
call fcn.0051a1d0
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0xac]
push edx
mov byte [esp + 0x108], 0xf
call fcn.00495c50
add esp, 8
push eax
lea eax, [esp + 0x38]
push eax
add esi, 4
push esi
mov ecx, edi
mov byte [esp + 0x10c], 0x10
call fcn.0051b0c0
lea ecx, [esp + 0xa8]
call fcn.004176e0
lea ecx, [esp + 0x34]
mov byte [esp + 0x100], 0xe
call fcn.004e2360
lea ecx, [esp + 0x54]
call fcn.00401a50
lea ecx, [esp + 0x1c]
mov byte [esp + 0x100], bl
call fcn.004e2360
jmp 0x51b4d0
add esi, 4
push esi
call fcn.0051aa50
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
add esi, 4
push esi
lea ecx, [esp + 0x20]
push ecx
mov ecx, edi
call fcn.0051a820
mov esi, dword [esi]
mov ecx, dword [esp + 0x1c]
mov byte [esi + 8], 1
mov edx, dword [ecx]
mov eax, dword [edx + 8]
mov dword [esp + 0x100], 0x11
call eax
jmp 0x51b729
add esi, 4
push esi
lea ecx, [esp + 0x20]
push ecx
mov ecx, edi
call fcn.0051a820
mov esi, dword [esi]
mov ecx, dword [esp + 0x1c]
mov byte [esi + 8], 0
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
mov dword [esp + 0x100], 0x12
call eax
jmp 0x51b729
lea ebx, [esi + 4]
push ebx
lea ecx, [esp + 0x20]
push ecx
mov ecx, edi
call fcn.0051a820
fld qword [esi + 0x10]
mov ebx, dword [ebx]
mov ecx, dword [esp + 0x1c]
fstp qword [ebx + 0x10]
mov edx, dword [ecx]
fld qword [esi + 0x10]
mov eax, dword [edx + 0x10]
sub esp, 8
fstp qword [esp]
mov dword [esp + 0x108], 0x13
call eax
jmp 0x51b729
lea ebx, [esi + 4]
push ebx
lea ecx, [esp + 0x20]
push ecx
mov ecx, edi
call fcn.0051a820
fld qword [esi + 0x10]
mov ebx, dword [ebx]
mov ecx, dword [esp + 0x1c]
fstp qword [ebx + 0x18]
mov edx, dword [ecx]
fld qword [esi + 0x10]
mov eax, dword [edx + 0x14]
sub esp, 8
fstp qword [esp]
mov dword [esp + 0x108], 0x14
call eax
jmp 0x51b729
lea ecx, [esi + 4]
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, edi
call fcn.0051a820
mov ecx, dword [esp + 0x1c]
movzx edx, byte [esi + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
push edx
mov dword [esp + 0x104], 0x15
call eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x100], 0xffffffff
call fcn.004e2360
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4