Function at 0x51d920
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c115c
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x6521c8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x8c], ebx
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.004fd100
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], 0
push 4
push eax
call fcn.004fd100
push 0xac
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x58], 0
mov byte [ebp - 4], 2
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
call fcn.005682a5
mov esi, eax
add esp, 0x14
mov dword [ebp - 0x80], esi
mov byte [ebp - 4], 3
test esi, esi
je 0x51da51
push 8
push str.adv_back
lea ecx, [ebp - 0x44]
mov dword [esi + 4], 1
mov dword [esi + 8], 1
mov dword [esi], vtable.std::_Ref_count_obj_class_AdvLayer_.0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
call fcn.004b7cd0
push ecx
mov dword [esp], 0
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 4
push eax
lea ecx, [esi + 0xc]
call fcn.005195d0
mov edx, dword [ebp - 0x30]
mov byte [ebp - 4], 3
cmp edx, 0x10
jb 0x51da3d
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x51da33
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x520066
push edx
push ecx
call fcn.005682d5
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
jmp 0x51da53
xor esi, esi
lea eax, [esi + 0xc]
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
test esi, esi
je 0x51da78
lock inc dword [esi + 4]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], esi
mov eax, dword [ebx]
lea ecx, [ebp - 0x7c]
push ecx
mov ecx, ebx
mov byte [ebp - 4], 6
call dword [eax + 0x10]
mov edi, dword [ebp - 0x78]
or esi, 0xffffffff
mov byte [ebp - 4], 5
test edi, edi
je 0x51daba
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51daba
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51daba
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
push 0x68
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
call fcn.005682a5
add esp, 4
mov dword [ebp - 0x80], eax
mov byte [ebp - 4], 7
test eax, eax
je 0x51daf6
push 0x5d9c54
lea ecx, [ebp - 0x7c]
push ecx
push str.adv_msg_frame
mov ecx, eax
call fcn.00516cd0
mov ecx, eax
jmp 0x51daf8
xor ecx, ecx
lea eax, [ecx + 0xc]
mov byte [ebp - 4], 5
mov dword [ebx + 0x78], eax
mov edi, dword [ebx + 0x7c]
mov dword [ebx + 0x7c], ecx
test edi, edi
je 0x51db2b
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51db2b
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51db2b
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebx + 0x78]
lea edx, [ebp - 0x7c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x54]
mov edi, dword [eax]
lea ecx, [ebp - 0x2c]
push 0x1c
push str.parts_adv_avg_mes_window.ap3
mov byte [ebp - 4], 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.004b7cd0
mov eax, dword [edi]
lea ecx, [ebp - 0x2c]
push 1
push ecx
mov ecx, edi
mov byte [ebp - 4], 9
call dword [eax + 0x10]
mov edx, dword [ebp - 0x18]
mov byte [ebp - 4], 8
cmp edx, 0x10
jb 0x51dba7
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x51db9d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x52006b
push edx
push ecx
call fcn.005682d5
add esp, 8
mov edi, dword [ebp - 0x78]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov byte [ebp - 4], 5
test edi, edi
je 0x51dbe3
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51dbe3
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51dbe3
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebx + 0x78]
lea edx, [ebp - 0x7c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x54]
mov eax, dword [eax]
or dword [eax + 0x13c], 0x40000
mov edi, dword [ebp - 0x78]
test edi, edi
je 0x51dc21
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51dc21
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51dc21
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebx + 0x78]
lea edx, [ebp - 0x7c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x54]
mov edi, eax
mov byte [ebp - 4], 0xa
call fcn.004d4440
mov ecx, dword [edi]
push dword [eax + 0x28]
call fcn.004f7720
mov edi, dword [ebp - 0x78]
test edi, edi
je 0x51dc68
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51dc68
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51dc68
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebx + 0x7c]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
test ecx, ecx
je 0x51dc84
lock inc dword [ecx + 4]
mov ecx, dword [ebx + 0x7c]
mov eax, dword [ebx + 0x78]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], ecx
mov eax, dword [ebx]
lea ecx, [ebp - 0x7c]
push ecx
mov ecx, ebx
mov byte [ebp - 4], 0xb
call dword [eax + 0x10]
mov edi, dword [ebp - 0x78]
mov byte [ebp - 4], 5
test edi, edi
je 0x51dcc6
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51dcc6
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51dcc6
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [0x6588b0]
push 0xd0
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x80], eax
call fcn.005682a5
add esp, 4
mov dword [ebp - 0x84], eax
mov byte [ebp - 4], 0xc
test eax, eax
je 0x51dd1e
push 0x5d9c70
push 0x5d9c6c
push 0x5d9c68
push 0x5d9c64
push 0x6427d0
push 0x5d9c58
push str.adv_message_board
lea ecx, [ebp - 0x80]
push ecx
mov ecx, eax
call fcn.00516e90
mov ecx, eax
jmp 0x51dd20
xor ecx, ecx
lea eax, [ecx + 0xc]
mov byte [ebp - 4], 5
mov dword [ebx + 0x60], eax
mov edi, dword [ebx + 0x64]
mov dword [ebx + 0x64], ecx
test edi, edi
je 0x51dd53
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51dd53
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51dd53
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edx, dword [ebx + 0x60]
mov eax, dword [0x6427e8]
mov ecx, dword [0x6427ec]
push 0xc
mov dword [edx + 0x88], eax
mov dword [edx + 0x8c], ecx
mov eax, dword [ebx + 0x60]
mov dword [eax + 0xa4], 0x40000
mov eax, dword [ebx + 0x60]
mov dword [eax + 0xb8], 1
mov eax, dword [ebx + 0x60]
mov dword [eax + 0xb4], 4
mov eax, dword [ebx + 0x60]
mov dword [eax + 0xa8], 0xffffff
mov eax, dword [ebx + 0x60]
mov dword [eax + 0xac], 0
mov eax, dword [ebx + 0x60]
mov dword [eax + 0xb0], 0
mov edi, dword [ebx + 0x50]
call fcn.005682a5
add esp, 4
mov dword [ebp - 0x84], eax
test eax, eax
je 0x51dde4
mov dword [eax], vtable.function_callback_vm0_class_AdvControl_.0
mov dword [eax + 4], 0x4c3e00
mov dword [eax + 8], edi
jmp 0x51dde6
xor eax, eax
push dword [ebp - 0x84]
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0
push eax
mov dword [ebp - 0x78], 0
call fcn.004bc2d0
mov edi, dword [ebp - 0x78]
mov edx, dword [ebx + 0x60]
test edi, edi
je 0x51de11
lock inc dword [edi + 4]
mov eax, dword [ebp - 0x7c]
mov dword [edx + 0x64], eax
mov ecx, dword [edx + 0x68]
mov dword [ebp - 0x80], ecx
mov dword [edx + 0x68], edi
test ecx, ecx
je 0x51de42
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x51de42
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x80]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x51de42
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x51de65
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51de65
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51de65
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebx + 0x64]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
test ecx, ecx
je 0x51de81
lock inc dword [ecx + 4]
mov ecx, dword [ebx + 0x64]
mov eax, dword [ebx + 0x60]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], ecx
mov eax, dword [ebx]
lea ecx, [ebp - 0x7c]
push ecx
mov ecx, ebx
mov byte [ebp - 4], 0xd
call dword [eax + 0x10]
mov edi, dword [ebp - 0x78]
mov byte [ebp - 4], 5
test edi, edi
je 0x51dec3
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51dec3
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51dec3
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
push 0x70
call fcn.005682a5
add esp, 4
mov dword [ebp - 0x84], eax
mov byte [ebp - 4], 0xe
test eax, eax
je 0x51def5
push 0x5d9c5c
push 0x6427f0
push str.adv_char_name
mov ecx, eax
call fcn.00516b00
mov ecx, eax
jmp 0x51def7
xor ecx, ecx
lea eax, [ecx + 0xc]
mov byte [ebp - 4], 5
mov dword [ebx + 0x68], eax
mov edi, dword [ebx + 0x6c]
mov dword [ebx + 0x6c], ecx
test edi, edi
je 0x51df2a
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51df2a
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51df2a
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebx + 0x68]
lea edx, [ebp - 0x7c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x54]
mov ecx, dword [eax]
mov eax, dword [0x6588b0]
push 0
push 1
push dword [0x642730]
mov edx, dword [ecx]
push dword [0x642734]
mov byte [ebp - 4], 0xf
push 0x642800
push dword [eax + 0x10]
call dword [edx + 0x50]
mov edi, dword [ebp - 0x78]
mov byte [ebp - 4], 5
test edi, edi
je 0x51df88
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51df88
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51df88
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebx + 0x68]
lea edx, [ebp - 0x7c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x54]
mov ecx, dword [eax]
push 1
mov byte [ebp - 4], 0x10
call fcn.004f7700
mov edi, dword [ebp - 0x78]
mov byte [ebp - 4], 5
test edi, edi
je 0x51dfcb
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51dfcb
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51dfcb
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebx + 0x68]
lea edx, [ebp - 0x7c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x54]
mov ecx, dword [eax]
push 4
mov byte [ebp - 4], 0x11
call fcn.004f8630
mov edi, dword [ebp - 0x78]
mov byte [ebp - 4], 5
test edi, edi
je 0x51e00e
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51e00e
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51e00e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebx + 0x68]
lea edx, [ebp - 0x7c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x54]
push dword [0x65bf28]
mov ecx, dword [eax]
mov byte [ebp - 4], 0x12
call fcn.004f8670
mov edi, dword [ebp - 0x78]
mov byte [ebp - 4], 5
test edi, edi
je 0x51e055
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51e055
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51e055
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebx + 0x68]
lea edx, [ebp - 0x7c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x54]
push dword [0x642740]
mov ecx, dword [eax]
mov byte [ebp - 4], 0x13
call fcn.004f8610
mov edi, dword [ebp - 0x78]
mov byte [ebp - 4], 5
test edi, edi
je 0x51e09c
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51e09c
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51e09c
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebx + 0x68]
lea edx, [ebp - 0x7c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x54]
push dword [0x65bf24]
mov ecx, dword [eax]
mov byte [ebp - 4], 0x14
call fcn.004f8650
mov edi, dword [ebp - 0x78]
mov byte [ebp - 4], 5
test edi, edi
je 0x51e0e3
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51e0e3
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51e0e3
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebx + 0x68]
lea edx, [ebp - 0x7c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x54]
mov eax, dword [eax]
or dword [eax + 0x13c], 0x40000
mov edi, dword [ebp - 0x78]
test edi, edi
je 0x51e121
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51e121
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51e121
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebx + 0x6c]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
test ecx, ecx
je 0x51e13d
lock inc dword [ecx + 4]
mov ecx, dword [ebx + 0x6c]
mov eax, dword [ebx + 0x68]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], ecx
mov eax, dword [ebx]
lea ecx, [ebp - 0x7c]
push ecx
mov ecx, ebx
mov byte [ebp - 4], 0x15
call dword [eax + 0x10]
mov edi, dword [ebp - 0x78]
mov byte [ebp - 4], 5
test edi, edi
je 0x51e17f
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51e17f
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51e17f
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
push 0x68
call fcn.005682a5
mov edi, eax
add esp, 4
mov dword [ebp - 0x84], edi
mov byte [ebp - 4], 0x16
test edi, edi
je 0x51e228
push 8
push str.adv_read
lea ecx, [ebp - 0x2c]
mov dword [edi + 4], 1
mov dword [edi + 8], 1
mov dword [edi], vtable.std::_Ref_count_obj_class_NormalActor_.0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.004b7cd0
push ecx
mov dword [esp], 0x44be0000
lea eax, [ebp - 0x2c]
push 0
push 0
push eax
lea ecx, [edi + 0xc]
mov byte [ebp - 4], 0x17
call fcn.00519e70
mov edx, dword [ebp - 0x18]
mov byte [ebp - 4], 0x16
cmp edx, 0x10
jb 0x51e22a
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x51e21c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x520070
push edx
push ecx
call fcn.005682d5
add esp, 8
jmp 0x51e22a
xor edi, edi
lea eax, [edi + 0xc]
mov byte [ebp - 4], 5
mov dword [ebx + 0x70], eax
mov eax, dword [ebx + 0x74]
mov dword [ebx + 0x74], edi
mov edi, eax
test edi, edi
je 0x51e25f
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51e25f
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51e25f
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
push 0x16
push str.parts_adv_avg_read.ap3
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.004b7cd0
mov ecx, dword [ebx + 0x70]
lea edx, [ebp - 0x7c]
push edx
mov byte [ebp - 4], 0x18
mov eax, dword [ecx]
call dword [eax + 0x54]
mov ecx, dword [eax]
lea edx, [ebp - 0x2c]
push 1
push edx
mov byte [ebp - 4], 0x19
mov eax, dword [ecx]
call dword [eax + 0x10]
mov edi, dword [ebp - 0x78]
test edi, edi
je 0x51e2c7
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51e2c7
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51e2c7
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
mov byte [ebp - 4], 5
cmp edx, 0x10
jb 0x51e2ff
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x51e2f5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x520075
push edx
push ecx
call fcn.005682d5
add esp, 8
mov ecx, dword [ebx + 0x70]
lea edx, [ebp - 0x7c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x54]
mov eax, dword [eax]
or dword [eax + 0x13c], 0x40000
mov edi, dword [ebp - 0x78]
test edi, edi
je 0x51e33d
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51e33d
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51e33d
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebx + 0x74]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
test ecx, ecx
je 0x51e359
lock inc dword [ecx + 4]
mov ecx, dword [ebx + 0x74]
mov eax, dword [ebx + 0x70]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], ecx
mov eax, dword [ebx]
lea ecx, [ebp - 0x7c]
push ecx
mov ecx, ebx
mov byte [ebp - 4], 0x1a
call dword [eax + 0x10]
mov edi, dword [ebp - 0x78]
mov byte [ebp - 4], 5
test edi, edi
je 0x51e39b
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51e39b
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51e39b
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
push 0x68
call fcn.005682a5
mov edi, eax
add esp, 4
mov dword [ebp - 0x84], edi
mov byte [ebp - 4], 0x1b
test edi, edi
je 0x51e444
push 0xd
push str.adv_wait_mark
lea ecx, [ebp - 0x2c]
mov dword [edi + 4], 1
mov dword [edi + 8], 1
mov dword [edi], vtable.std::_Ref_count_obj_class_NormalActor_.0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.004b7cd0
push ecx
mov dword [esp], 0x44be0000
lea eax, [ebp - 0x2c]
push 0
push 0
push eax
lea ecx, [edi + 0xc]
mov byte [ebp - 4], 0x1c
call fcn.00519e70
mov edx, dword [ebp - 0x18]
mov byte [ebp - 4], 0x1b
cmp edx, 0x10
jb 0x51e446
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x51e438
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x52007a
push edx
push ecx
call fcn.005682d5
add esp, 8
jmp 0x51e446
xor edi, edi
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 5
lea eax, [edi + 0xc]
mov dword [ebp - 0x78], edi
push ecx
lea ecx, [ebx + 0x80]
mov dword [ebp - 0x7c], eax
call fcn.0051aa50
mov edi, dword [ebp - 0x78]
test edi, edi
je 0x51e488
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51e488
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51e488
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebx + 0x80]
lea edx, [ebp - 0x7c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x54]
mov edi, dword [eax]
lea eax, [ebp - 0x2c]
push 0x6427a0
push 0x642788
push eax
mov byte [ebp - 4], 0x1d
call fcn.00517170
add esp, 0xc
mov edx, dword [edi]
mov ecx, edi
push 1
push eax
mov byte [ebp - 4], 0x1e
call dword [edx + 0x10]
lea ecx, [ebp - 0x2c]
call fcn.004b5200
mov edi, dword [ebp - 0x78]
mov byte [ebp - 4], 5
test edi, edi
je 0x51e4f3
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51e4f3
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51e4f3
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebx + 0x80]
lea edx, [ebp - 0x7c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x54]
mov ecx, dword [eax]
push 0x642818
mov byte [ebp - 4], 0x1f
call fcn.004f74f0
mov edi, dword [ebp - 0x78]
mov byte [ebp - 4], 5
test edi, edi
je 0x51e53c
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51e53c
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51e53c
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebx + 0x80]
lea edx, [ebp - 0x7c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x54]
mov eax, dword [eax]
or dword [eax + 0x13c], 0x40000
mov edi, dword [ebp - 0x78]
test edi, edi
je 0x51e57d
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51e57d
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51e57d
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebx + 0x84]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
test ecx, ecx
je 0x51e59f
lock inc dword [ecx + 4]
mov ecx, dword [ebx + 0x84]
mov eax, dword [ebx + 0x80]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], ecx
mov eax, dword [ebx]
lea ecx, [ebp - 0x7c]
push ecx
mov ecx, ebx
mov byte [ebp - 4], 0x20
call dword [eax + 0x10]
mov edi, dword [ebp - 0x78]
mov byte [ebp - 4], 5
test edi, edi
je 0x51e5e4
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51e5e4
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51e5e4
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
push 0x7c
call fcn.005682a5
mov edi, eax
add esp, 4
mov dword [ebp - 0x84], edi
mov byte [ebp - 4], 0x21
test edi, edi
je 0x51e662
push 0xd
push str.button_master
lea ecx, [ebp - 0x2c]
mov dword [edi + 4], 1
mov dword [edi + 8], 1
mov dword [edi], vtable.std::_Ref_count_obj_class_MasterButtonMgr_.0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.004b7cd0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0x22
push eax
lea ecx, [edi + 0xc]
call fcn.00519b20
mov dword [edi + 0xc], vtable.MasterButtonMgr.0
lea ecx, [ebp - 0x2c]
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], 0
call fcn.004b5200
jmp 0x51e664
xor edi, edi
lea eax, [edi + 0xc]
mov dword [ebx + 0x90], eax
mov eax, dword [ebx + 0x94]
mov dword [ebx + 0x94], edi
mov edi, eax
test edi, edi
je 0x51e69e
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51e69e
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51e69e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebx + 0x94]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
test ecx, ecx
je 0x51e6c0
lock inc dword [ecx + 4]
mov ecx, dword [ebx + 0x94]
mov eax, dword [ebx + 0x90]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], ecx
mov eax, dword [ebx]
lea ecx, [ebp - 0x7c]
push ecx
mov ecx, ebx
mov byte [ebp - 4], 0x23
call dword [eax + 0x10]
mov edi, dword [ebp - 0x78]
mov byte [ebp - 4], 5
test edi, edi
je 0x51e705
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51e705
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51e705
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
push 0x68
call fcn.005682a5
mov edi, eax
add esp, 4
mov dword [ebp - 0x84], edi
mov byte [ebp - 4], 0x24
test edi, edi
je 0x51e77a
push 0xc
push str.adv_btn_chip
lea ecx, [ebp - 0x2c]
mov dword [edi + 4], 1
mov dword [edi + 8], 1
mov dword [edi], vtable.std::_Ref_count_obj_class_NormalActor_.0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.004b7cd0
push ecx
mov dword [esp], 0x44be0000
lea eax, [ebp - 0x2c]
push 0
push 0
push eax
lea ecx, [edi + 0xc]
mov byte [ebp - 4], 0x25
call fcn.00519e70
lea ecx, [ebp - 0x2c]
call fcn.004b5200
jmp 0x51e77c
xor edi, edi
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 5
lea eax, [edi + 0xc]
mov dword [ebp - 0x78], edi
push ecx
lea ecx, [ebx + 0x98]
mov dword [ebp - 0x7c], eax
call fcn.0051aa50
mov edi, dword [ebp - 0x78]
test edi, edi
je 0x51e7be
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51e7be
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51e7be
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
push 0x19
push str.parts_adv_avg_comment.ap3
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.004b7cd0
mov ecx, dword [ebx + 0x98]
lea edx, [ebp - 0x7c]
push edx
mov byte [ebp - 4], 0x26
mov eax, dword [ecx]
call dword [eax + 0x54]
mov ecx, dword [eax]
lea edx, [ebp - 0x2c]
push 1
push edx
mov byte [ebp - 4], 0x27
mov eax, dword [ecx]
call dword [eax + 0x10]
mov edi, dword [ebp - 0x78]
test edi, edi
je 0x51e829
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51e829
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51e829
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.004b5200
mov ecx, dword [ebx + 0x98]
lea edx, [ebp - 0x7c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x54]
mov eax, dword [eax]
or dword [eax + 0x13c], 0x40000
mov edi, dword [ebp - 0x78]
test edi, edi
je 0x51e876
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51e876
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51e876
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebx + 0x98]
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ecx, dword [ebx + 0x9c]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
test ecx, ecx
je 0x51e8a3
lock inc dword [ecx + 4]
mov ecx, dword [ebx + 0x9c]
mov eax, dword [ebx + 0x98]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], ecx
mov eax, dword [ebx]
lea ecx, [ebp - 0x7c]
push ecx
mov ecx, ebx
mov byte [ebp - 4], 0x28
call dword [eax + 0x10]
mov edi, dword [ebp - 0x78]
mov byte [ebp - 4], 5
test edi, edi
je 0x51e8e8
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51e8e8
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51e8e8
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [ebx + 0x98]
push 0x80
mov dword [ebp - 0x80], eax
call fcn.005682a5
mov edi, eax
add esp, 4
mov dword [ebp - 0x84], edi
mov byte [ebp - 4], 0x29
test edi, edi
je 0x51e99b
push 0x12
lea eax, [edi + 0xc]
mov dword [edi + 4], 1
push str.adv_button_manager
lea ecx, [ebp - 0x2c]
mov dword [edi + 8], 1
mov dword [edi], vtable.std::_Ref_count_obj_class_AdvBtnMgr_.0
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.004b7cd0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0x2a
push eax
lea ecx, [edi + 0xc]
call fcn.00519b20
mov ecx, dword [ebp - 0x80]
lea eax, [edi + 0xc]
mov dword [eax + 0x68], ecx
mov dword [eax], vtable.AdvBtnMgr.0
add eax, 0x6c
mov dword [ebp - 0x80], eax
mov ecx, eax
mov byte [ebp - 4], 0x2b
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.00525580
mov ecx, eax
mov eax, dword [ebp - 0x80]
mov dword [eax], ecx
lea ecx, [ebp - 0x2c]
call fcn.004b5200
jmp 0x51e99d
xor edi, edi
lea eax, [edi + 0xc]
mov byte [ebp - 4], 5
mov dword [ebx + 0xa0], eax
mov eax, dword [ebx + 0xa4]
mov dword [ebx + 0xa4], edi
mov edi, eax
test edi, edi
je 0x51e9db
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51e9db
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51e9db
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [ebx + 0xa0]
lea ecx, [ebp - 0x2c]
push 0xc
push str.adv_skip_btn
mov dword [ebp - 0x1c], 0
mov dword [eax + 0x48], 0
mov dword [eax + 0x54], 0xffffffff
mov dword [eax + 0x58], 0xffffffff
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.004b7cd0
mov ecx, dword [ebx + 0xa0]
lea eax, [ebp - 0x2c]
push eax
add ecx, 0x6c
mov byte [ebp - 4], 0x2c
call fcn.0051ac20
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
mov dword [eax], 0
call fcn.004b5200
push 0xc
push str.adv_back_btn
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.004b7cd0
mov ecx, dword [ebx + 0xa0]
lea eax, [ebp - 0x2c]
push eax
add ecx, 0x6c
mov byte [ebp - 4], 0x2d
call fcn.0051ac20
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
mov dword [eax], 1
call fcn.004b5200
push 0xc
push str.adv_auto_btn
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.004b7cd0
mov ecx, dword [ebx + 0xa0]
lea eax, [ebp - 0x2c]
push eax
add ecx, 0x6c
mov byte [ebp - 4], 0x2e
call fcn.0051ac20
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
mov dword [eax], 2
call fcn.004b5200
push 0xd
push str.adv_voice_btn
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.004b7cd0
mov ecx, dword [ebx + 0xa0]
lea eax, [ebp - 0x2c]
push eax
add ecx, 0x6c
mov byte [ebp - 4], 0x2f
call fcn.0051ac20
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
mov dword [eax], 3
call fcn.004b5200
push 0x12
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
push str.adv_quick_save_btn
lea ecx, [ebp - 0x2c]
call fcn.004b7cd0
mov ecx, dword [ebx + 0xa0]
lea eax, [ebp - 0x2c]
push eax
add ecx, 0x6c
mov byte [ebp - 4], 0x30
call fcn.0051ac20
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
mov dword [eax], 5
call fcn.004b5200
push 0x12
push str.adv_quick_load_btn
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.004b7cd0
mov ecx, dword [ebx + 0xa0]
lea eax, [ebp - 0x2c]
push eax
add ecx, 0x6c
mov byte [ebp - 4], 0x31
call fcn.0051ac20
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
mov dword [eax], 6
call fcn.004b5200
push 0xd
push str.adv_close_btn
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.004b7cd0
mov ecx, dword [ebx + 0xa0]
lea eax, [ebp - 0x2c]
push eax
add ecx, 0x6c
mov byte [ebp - 4], 0x32
call fcn.0051ac20
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
mov dword [eax], 7
call fcn.004b5200
push 0xc
push str.adv_save_btn
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.004b7cd0
mov ecx, dword [ebx + 0xa0]
lea eax, [ebp - 0x2c]
push eax
add ecx, 0x6c
mov byte [ebp - 4], 0x33
call fcn.0051ac20
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
mov dword [eax], 8
call fcn.004b5200
push 0xc
push str.adv_load_btn
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.004b7cd0
mov ecx, dword [ebx + 0xa0]
lea eax, [ebp - 0x2c]
push eax
add ecx, 0x6c
mov byte [ebp - 4], 0x34
call fcn.0051ac20
lea ecx, [ebp - 0x2c]
mov dword [eax], 9
mov byte [ebp - 4], 5
call fcn.004b5200
push 0xe
push str.adv_system_btn
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.004b7cd0
mov ecx, dword [ebx + 0xa0]
lea eax, [ebp - 0x2c]
push eax
add ecx, 0x6c
mov byte [ebp - 4], 0x35
call fcn.0051ac20
lea ecx, [ebp - 0x2c]
mov dword [eax], 0xffffffff
call fcn.004b5200
mov ecx, dword [ebx + 0xa4]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
test ecx, ecx
je 0x51ecee
lock inc dword [ecx + 4]
mov ecx, dword [ebx + 0xa4]
mov eax, dword [ebx + 0xa0]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], ecx
mov ecx, dword [ebx + 0x90]
lea edx, [ebp - 0x7c]
push edx
mov byte [ebp - 4], 0x36
mov eax, dword [ecx]
call dword [eax + 0x10]
mov edi, dword [ebp - 0x78]
mov byte [ebp - 4], 5
test edi, edi
je 0x51ed37
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51ed37
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51ed37
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
push 0x5d9c60
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x80], 0x12
push eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x7c], 0
push eax
lea eax, [ebp - 0x88]
mov dword [ebp - 0x78], 0
push str.adv_save_btn
push eax
call fcn.00519390
add esp, 0x14
mov ecx, eax
push ecx
lea ecx, [ebx + 0xa8]
call fcn.0051a9f0
mov edi, dword [ebp - 0x84]
test edi, edi
je 0x51eda4
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51eda4
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51eda4
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
push 0x1d
push str.parts_adv_avg_button_save.ap3
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.004b7cd0
mov ecx, dword [ebx + 0xa8]
lea edx, [ebp - 0x7c]
push edx
mov byte [ebp - 4], 0x37
mov eax, dword [ecx]
call dword [eax + 0x54]
mov ecx, dword [eax]
lea edx, [ebp - 0x2c]
push 1
push edx
mov byte [ebp - 4], 0x38
mov eax, dword [ecx]
call dword [eax + 0x10]
mov edi, dword [ebp - 0x78]
test edi, edi
je 0x51ee0f
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51ee0f
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51ee0f
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.004b5200
mov ecx, dword [ebx + 0xa8]
lea edx, [ebp - 0x7c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x54]
mov eax, dword [eax]
or dword [eax + 0x13c], 0x40000
mov edi, dword [ebp - 0x78]
test edi, edi
je 0x51ee5c
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51ee5c
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51ee5c
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edi, dword [ebx + 0x50]
push 0xc
call fcn.005682a5
add esp, 4
mov dword [ebp - 0x78], eax
test eax, eax
je 0x51ee82
mov dword [eax], vtable.function_callback_vm0_class_AdvControl_.0
mov dword [eax + 4], fcn.004c1790
mov dword [eax + 8], edi
jmp 0x51ee84
xor eax, eax
mov dword [ebp - 0x78], 0
lea ecx, [ebp - 0x7c]
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], 0
push eax
call fcn.004bc2d0
mov ecx, dword [ebx + 0xa8]
lea eax, [ebp - 0x7c]
push eax
call fcn.00523740
mov edi, dword [ebp - 0x78]
test edi, edi
je 0x51eed3
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51eed3
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51eed3
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebx + 0xac]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
test ecx, ecx
je 0x51eef5
lock inc dword [ecx + 4]
mov ecx, dword [ebx + 0xac]
mov eax, dword [ebx + 0xa8]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], ecx
mov ecx, dword [ebx + 0xa0]
lea edx, [ebp - 0x7c]
push edx
mov byte [ebp - 4], 0x39
mov eax, dword [ecx]
call dword [eax + 0x10]
mov edi, dword [ebp - 0x78]
mov byte [ebp - 4], 5
test edi, edi
je 0x51ef3e
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51ef3e
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51ef3e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
push 0x5d9c60
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x80], 0x14
push eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x7c], 0
push eax
lea eax, [ebp - 0x88]
mov dword [ebp - 0x78], 0
push str.adv_load_btn
push eax
call fcn.00519390
add esp, 0x14
mov ecx, eax
push ecx
lea ecx, [ebx + 0xb0]
call fcn.0051a9f0
mov edi, dword [ebp - 0x84]
test edi, edi
je 0x51efab
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51efab
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51efab
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
push 0x1d
push str.parts_adv_avg_button_load.ap3
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.004b7cd0
mov ecx, dword [ebx + 0xb0]
lea edx, [ebp - 0x7c]
push edx
mov byte [ebp - 4], 0x3a
mov eax, dword [ecx]
call dword [eax + 0x54]
mov ecx, dword [eax]
lea edx, [ebp - 0x2c]
push 1
push edx
mov byte [ebp - 4], 0x3b
mov eax, dword [ecx]
call dword [eax + 0x10]
mov edi, dword [ebp - 0x78]
test edi, edi
je 0x51f016
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51f016
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51f016
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.004b5200
mov ecx, dword [ebx + 0xb0]
lea edx, [ebp - 0x88]
push edx
mov eax, dword [ecx]
call dword [eax + 0x54]
mov eax, dword [eax]
or dword [eax + 0x13c], 0x40000
mov edi, dword [ebp - 0x84]
test edi, edi
je 0x51f069
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51f069
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51f069
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edi, dword [ebx + 0x50]
push 0xc
call fcn.005682a5
add esp, 4
mov dword [ebp - 0x78], eax
test eax, eax
je 0x51f08f
mov dword [eax], vtable.function_callback_vm0_class_AdvControl_.0
mov dword [eax + 4], fcn.004bf660
mov dword [eax + 8], edi
jmp 0x51f091
xor eax, eax
mov dword [ebp - 0x78], 0
lea ecx, [ebp - 0x7c]
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], 0
push eax
call fcn.004bc2d0
mov ecx, dword [ebx + 0xb0]
lea eax, [ebp - 0x7c]
push eax
call fcn.00523740
mov edi, dword [ebp - 0x78]
test edi, edi
je 0x51f0e0
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51f0e0
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51f0e0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebx + 0xb4]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
test ecx, ecx
je 0x51f102
lock inc dword [ecx + 4]
mov ecx, dword [ebx + 0xb4]
mov eax, dword [ebx + 0xb0]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], ecx
mov ecx, dword [ebx + 0xa0]
lea edx, [ebp - 0x7c]
push edx
mov byte [ebp - 4], 0x3c
mov eax, dword [ecx]
call dword [eax + 0x10]
mov edi, dword [ebp - 0x78]
mov byte [ebp - 4], 5
test edi, edi
je 0x51f14b
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51f14b
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51f14b
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
push 0x5d9c60
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x80], 6
push eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x7c], 0
push eax
lea eax, [ebp - 0x88]
mov dword [ebp - 0x78], 0
push str.adv_quick_save_btn
push eax
call fcn.00519270
add esp, 0x14
mov ecx, eax
push ecx
lea ecx, [ebx + 0xb8]
call fcn.0051a9f0
mov edi, dword [ebp - 0x84]
test edi, edi
je 0x51f1b8
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51f1b8
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51f1b8
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
push 0x1e
push str.parts_adv_avg_button_qsave.ap3
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.004b7cd0
mov ecx, dword [ebx + 0xb8]
lea edx, [ebp - 0x7c]
push edx
mov byte [ebp - 4], 0x3d
mov eax, dword [ecx]
call dword [eax + 0x54]
mov ecx, dword [eax]
lea edx, [ebp - 0x2c]
push 1
push edx
mov byte [ebp - 4], 0x3e
mov eax, dword [ecx]
call dword [eax + 0x10]
mov edi, dword [ebp - 0x78]
test edi, edi
je 0x51f223
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51f223
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51f223
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.004b5200
mov ecx, dword [ebx + 0xb8]
lea edx, [ebp - 0x88]
push edx
mov eax, dword [ecx]
call dword [eax + 0x54]
mov eax, dword [eax]
or dword [eax + 0x13c], 0x40000
mov edi, dword [ebp - 0x84]
test edi, edi
je 0x51f276
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51f276
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51f276
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edi, dword [ebx + 0x50]
push 0xc
call fcn.005682a5
add esp, 4
mov dword [ebp - 0x78], eax
test eax, eax
je 0x51f29c
mov dword [eax], vtable.function_callback_vm0_class_AdvControl_.0
mov dword [eax + 4], 0x4c1380
mov dword [eax + 8], edi
jmp 0x51f29e
xor eax, eax
mov dword [ebp - 0x78], 0
lea ecx, [ebp - 0x7c]
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], 0
push eax
call fcn.004bc2d0
mov ecx, dword [ebx + 0xb8]
lea eax, [ebp - 0x7c]
push eax
call fcn.00523740
mov edi, dword [ebp - 0x78]
test edi, edi
je 0x51f2ed
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51f2ed
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51f2ed
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebx + 0xbc]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
test ecx, ecx
je 0x51f30f
lock inc dword [ecx + 4]
mov ecx, dword [ebx + 0xbc]
mov eax, dword [ebx + 0xb8]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], ecx
mov ecx, dword [ebx + 0xa0]
lea edx, [ebp - 0x7c]
push edx
mov byte [ebp - 4], 0x3f
mov eax, dword [ecx]
call dword [eax + 0x10]
mov edi, dword [ebp - 0x78]
mov byte [ebp - 4], 5
test edi, edi
je 0x51f358
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51f358
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51f358
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
push 0x5d9c60
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x80], 7
push eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x7c], 0
push eax
lea eax, [ebp - 0x88]
mov dword [ebp - 0x78], 0
push str.adv_quick_load_btn
push eax
call fcn.00519270
add esp, 0x14
mov ecx, eax
push ecx
lea ecx, [ebx + 0xc0]
call fcn.0051a9f0
mov edi, dword [ebp - 0x84]
test edi, edi
je 0x51f3c5
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51f3c5
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51f3c5
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
push 0x1e
push str.parts_adv_avg_button_qload.ap3
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.004b7cd0
mov ecx, dword [ebx + 0xc0]
lea edx, [ebp - 0x7c]
push edx
mov byte [ebp - 4], 0x40
mov eax, dword [ecx]
call dword [eax + 0x54]
mov ecx, dword [eax]
lea edx, [ebp - 0x2c]
push 1
push edx
mov byte [ebp - 4], 0x41
mov eax, dword [ecx]
call dword [eax + 0x10]
mov edi, dword [ebp - 0x78]
test edi, edi
je 0x51f430
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51f430
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x51f430
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.004b5200
mov ecx, dword [ebx + 0xc0]
lea edx, [ebp - 0x88]
push edx
mov eax, dword [ecx]
call dword [eax + 0x54]
mov eax, dword [eax]
or dword [eax + 0x13c], 0x40000
mov edi, dword [ebp - 0x84]
test edi, edi
je 0x51f482
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x51f482
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x51f482
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov esi, dword [ebx + 0x50]
push 0xc
call fcn.005682a5
add esp, 4
mov dword [ebp - 0x78], eax
test eax, eax
je 0x51f4a8
mov dword [eax], vtable.function_callback_vm0_class_AdvControl_.0
mov dword [eax + 4], 0x4c0e70
mov dword [eax + 8], esi
jmp 0x51f4aa
xor eax, eax
mov dword [ebp - 0x78], 0
lea ecx, [ebp - 0x7c]
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], 0
push eax
call fcn.004bc2d0
mov ecx, dword [ebx + 0xc0]
lea eax, [ebp - 0x7c]
push eax
call fcn.00523740
lea ecx, [ebp - 0x7c]
call fcn.004bc5a0
mov ecx, dword [ebx + 0xc4]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
test ecx, ecx
je 0x51f4fd
lock inc dword [ecx + 4]
mov ecx, dword [ebx + 0xc4]
mov eax, dword [ebx + 0xc0]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], ecx
mov ecx, dword [ebx + 0xa0]
lea edx, [ebp - 0x7c]
push edx
mov byte [ebp - 4], 0x42
mov eax, dword [ecx]
call dword [eax + 0x10]
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 5
call fcn.004b8f90
push 0x5d9c60
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x80], 1
push eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x7c], 0
push eax
lea eax, [ebp - 0x88]
mov dword [ebp - 0x78], 0
push str.adv_skip_btn
push eax
call fcn.00519390
add esp, 0x14
lea esi, [ebx + 0xc8]
mov ecx, esi
push eax
call fcn.0051a9f0
lea ecx, [ebp - 0x88]
call fcn.004b9050
push 0x1d
push str.parts_adv_avg_button_skip.ap3
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.004b7cd0
mov ecx, dword [esi]
lea edx, [ebp - 0x7c]
push edx
mov byte [ebp - 4], 0x43
mov eax, dword [ecx]
call dword [eax + 0x54]
mov ecx, dword [eax]
lea edx, [ebp - 0x2c]
push 1
push edx
mov byte [ebp - 4], 0x44
mov eax, dword [ecx]
call dword [eax + 0x10]
lea ecx, [ebp - 0x7c]
call fcn.004b52b0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.004b5200
mov ecx, dword [esi]
lea edx, [ebp - 0x88]
push edx
mov eax, dword [ecx]
call dword [eax + 0x54]
lea ecx, [ebp - 0x88]
mov eax, dword [eax]
or dword [eax + 0x13c], 0x40000
call fcn.004b52b0
mov edi, dword [ebx + 0x50]
push 0xc
call fcn.005682a5
add esp, 4
mov dword [ebp - 0x78], eax
test eax, eax
je 0x51f617
mov dword [eax], vtable.function_callback_vm0_class_AdvControl_.0
mov dword [eax + 4], 0x4c2680
mov dword [eax + 8], edi
jmp 0x51f619
xor eax, eax
mov dword [ebp - 0x78], 0
lea ecx, [ebp - 0x7c]
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], 0
push eax
call fcn.004bc2d0
mov ecx, dword [esi]
lea eax, [ebp - 0x7c]
push eax
call fcn.00523740
lea ecx, [ebp - 0x7c]
call fcn.004bc5a0
mov ecx, dword [esi + 4]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
test ecx, ecx
je 0x51f662
lock inc dword [ecx + 4]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], ecx
mov ecx, dword [ebx + 0xa0]
lea edx, [ebp - 0x7c]
push edx
mov byte [ebp - 4], 0x45
mov eax, dword [ecx]
call dword [eax + 0x10]
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 5
call fcn.004b8f90
push 0x5d9c60
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x80], 2
push eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x7c], 0
push eax
lea eax, [ebp - 0x88]
mov dword [ebp - 0x78], 0
push str.adv_auto_btn
push eax
call fcn.00519390
add esp, 0x14
lea esi, [ebx + 0xd0]
mov ecx, esi
push eax
call fcn.0051a9f0
lea ecx, [ebp - 0x88]
call fcn.004b9050
push 0x1d
push str.parts_adv_avg_button_auto.ap3
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.004b7cd0
mov ecx, dword [esi]
lea edx, [ebp - 0x7c]
push edx
mov byte [ebp - 4], 0x46
mov eax, dword [ecx]
call dword [eax + 0x54]
mov ecx, dword [eax]
lea edx, [ebp - 0x2c]
push 1
push edx
mov byte [ebp - 4], 0x47
mov eax, dword [ecx]
call dword [eax + 0x10]
lea ecx, [ebp - 0x7c]
call fcn.004b52b0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.004b5200
mov ecx, dword [esi]
lea edx, [ebp - 0x88]
push edx
mov eax, dword [ecx]
call dword [eax + 0x54]
lea ecx, [ebp - 0x88]
mov eax, dword [eax]
or dword [eax + 0x13c], 0x40000
call fcn.004b52b0
mov edi, dword [ebx + 0x50]
push 0xc
call fcn.005682a5
add esp, 4
mov dword [ebp - 0x78], eax
test eax, eax
je 0x51f778
mov dword [eax], vtable.function_callback_vm0_class_AdvControl_.0
mov dword [eax + 4], 0x4bd570
mov dword [eax + 8], edi
jmp 0x51f77a
xor eax, eax
mov dword [ebp - 0x78], 0
lea ecx, [ebp - 0x7c]
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], 0
push eax
call fcn.004bc2d0
mov ecx, dword [esi]
lea eax, [ebp - 0x7c]
push eax
call fcn.00523740
lea ecx, [ebp - 0x7c]
call fcn.004bc5a0
mov ecx, dword [esi + 4]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
test ecx, ecx
je 0x51f7c3
lock inc dword [ecx + 4]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], ecx
mov ecx, dword [ebx + 0xa0]
lea edx, [ebp - 0x7c]
push edx
mov byte [ebp - 4], 0x48
mov eax, dword [ecx]
call dword [eax + 0x10]
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 5
call fcn.004b8f90
push 0x5d9c60
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x80], 3
push eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x7c], 0
push eax
lea eax, [ebp - 0x88]
mov dword [ebp - 0x78], 0
push str.adv_back_btn
push eax
call fcn.00519390
add esp, 0x14
lea esi, [ebx + 0xd8]
mov ecx, esi
push eax
call fcn.0051a9f0
lea ecx, [ebp - 0x88]
call fcn.004b9050
push 0x1d
push str.parts_adv_avg_button_back.ap3
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.004b7cd0
mov ecx, dword [esi]
lea edx, [ebp - 0x7c]
push edx
mov byte [ebp - 4], 0x49
mov eax, dword [ecx]
call dword [eax + 0x54]
mov ecx, dword [eax]
lea edx, [ebp - 0x2c]
push 1
push edx
mov byte [ebp - 4], 0x4a
mov eax, dword [ecx]
call dword [eax + 0x10]
lea ecx, [ebp - 0x7c]
call fcn.004b52b0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.004b5200
mov ecx, dword [esi]
lea edx, [ebp - 0x88]
push edx
mov eax, dword [ecx]
call dword [eax + 0x54]
lea ecx, [ebp - 0x88]
mov eax, dword [eax]
or dword [eax + 0x13c], 0x40000
call fcn.004b52b0
mov edi, dword [ebx + 0x50]
push 0xc
call fcn.005682a5
add esp, 4
mov dword [ebp - 0x78], eax
test eax, eax
je 0x51f8d9
mov dword [eax], vtable.function_callback_vm0_class_AdvControl_.0
mov dword [eax + 4], fcn.004bd580
mov dword [eax + 8], edi
jmp 0x51f8db
xor eax, eax
mov dword [ebp - 0x78], 0
lea ecx, [ebp - 0x7c]
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], 0
push eax
call fcn.004bc2d0
mov ecx, dword [esi]
lea eax, [ebp - 0x7c]
push eax
call fcn.00523740
lea ecx, [ebp - 0x7c]
call fcn.004bc5a0
mov ecx, dword [esi + 4]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
test ecx, ecx
je 0x51f924
lock inc dword [ecx + 4]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], ecx
mov ecx, dword [ebx + 0xa0]
lea edx, [ebp - 0x7c]
push edx
mov byte [ebp - 4], 0x4b
mov eax, dword [ecx]
call dword [eax + 0x10]
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 5
call fcn.004b8f90
push 0x5d9c60
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x80], 4
push eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x7c], 0
push eax
lea eax, [ebp - 0x88]
mov dword [ebp - 0x78], 0
push str.adv_voice_btn
push eax
call fcn.005194b0
add esp, 0x14
lea esi, [ebx + 0xe0]
mov ecx, esi
push eax
call fcn.0051a9f0
lea ecx, [ebp - 0x88]
call fcn.004b9050
push 0x1e
push str.parts_adv_avg_button_voice.ap3
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.004b7cd0
mov ecx, dword [esi]
lea edx, [ebp - 0x7c]
push edx
mov byte [ebp - 4], 0x4c
mov eax, dword [ecx]
call dword [eax + 0x54]
mov ecx, dword [eax]
lea edx, [ebp - 0x2c]
push 1
push edx
mov byte [ebp - 4], 0x4d
mov eax, dword [ecx]
call dword [eax + 0x10]
lea ecx, [ebp - 0x7c]
call fcn.004b52b0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.004b5200
mov ecx, dword [esi]
lea edx, [ebp - 0x88]
push edx
mov eax, dword [ecx]
call dword [eax + 0x54]
lea ecx, [ebp - 0x88]
mov eax, dword [eax]
or dword [eax + 0x13c], 0x40000
call fcn.004b52b0
mov edi, dword [ebx + 0x50]
push 0xc
call fcn.005682a5
add esp, 4
mov dword [ebp - 0x78], eax
test eax, eax
je 0x51fa3a
mov dword [eax], vtable.function_callback_vm0_class_AdvControl_.0
mov dword [eax + 4], 0x4c2690
mov dword [eax + 8], edi
jmp 0x51fa3c
xor eax, eax
mov dword [ebp - 0x78], 0
lea ecx, [ebp - 0x7c]
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], 0
push eax
call fcn.004bc2d0
mov ecx, dword [esi]
lea eax, [ebp - 0x7c]
push eax
call fcn.00523740
lea ecx, [ebp - 0x7c]
call fcn.004bc5a0
mov ecx, dword [esi + 4]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
test ecx, ecx
je 0x51fa85
lock inc dword [ecx + 4]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], ecx
mov ecx, dword [ebx + 0xa0]
lea edx, [ebp - 0x7c]
push edx
mov byte [ebp - 4], 0x4e
mov eax, dword [ecx]
call dword [eax + 0x10]
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 5
call fcn.004b8f90
push 0x5d9c60
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x80], 5
push eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x7c], 0
push eax
lea eax, [ebp - 0x88]
mov dword [ebp - 0x78], 0
push str.adv_close_btn
push eax
call fcn.005194b0
add esp, 0x14
lea esi, [ebx + 0xe8]
mov ecx, esi
push eax
call fcn.0051a9f0
lea ecx, [ebp - 0x88]
call fcn.004b9050
push 0x1e
push str.parts_adv_avg_button_close.ap3
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.004b7cd0
mov ecx, dword [esi]
lea edx, [ebp - 0x7c]
push edx
mov byte [ebp - 4], 0x4f
mov eax, dword [ecx]
call dword [eax + 0x54]
mov ecx, dword [eax]
lea edx, [ebp - 0x2c]
push 1
push edx
mov byte [ebp - 4], 0x50
mov eax, dword [ecx]
call dword [eax + 0x10]
lea ecx, [ebp - 0x7c]
call fcn.004b52b0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.004b5200
mov ecx, dword [esi]
lea edx, [ebp - 0x88]
push edx
mov eax, dword [ecx]
call dword [eax + 0x54]
lea ecx, [ebp - 0x88]
mov eax, dword [eax]
or dword [eax + 0x13c], 0x40000
call fcn.004b52b0
mov edi, dword [ebx + 0x50]
push 0xc
call fcn.005682a5
add esp, 4
mov dword [ebp - 0x78], eax
test eax, eax
je 0x51fb9b
mov dword [eax], vtable.function_callback_vm0_class_AdvControl_.0
mov dword [eax + 4], 0x4bdd10
mov dword [eax + 8], edi
jmp 0x51fb9d
xor eax, eax
mov dword [ebp - 0x78], 0
lea ecx, [ebp - 0x7c]
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], 0
push eax
call fcn.004bc2d0
mov ecx, dword [esi]
lea eax, [ebp - 0x7c]
push eax
call fcn.00523740
lea ecx, [ebp - 0x7c]
call fcn.004bc5a0
mov ecx, dword [esi + 4]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
test ecx, ecx
je 0x51fbe6
lock inc dword [ecx + 4]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], ecx
mov ecx, dword [ebx + 0xa0]
lea edx, [ebp - 0x7c]
push edx
mov byte [ebp - 4], 0x51
mov eax, dword [ecx]
call dword [eax + 0x10]
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 5
call fcn.004b8f90
push 0xcc
call fcn.005682a5
mov esi, eax
add esp, 4
mov dword [ebp - 0x78], esi
mov byte [ebp - 4], 0x52
test esi, esi
je 0x51fc84
push 0xe
push str.adv_system_btn
lea ecx, [ebp - 0x2c]
mov dword [esi + 4], 1
mov dword [esi + 8], 1
mov dword [esi], vtable.std::_Ref_count_obj_class_ButtonActor_.0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.004b7cd0
push ecx
mov dword [esp], 0x44be0000
lea eax, [ebp - 0x2c]
push 0
push 0
push 8
push eax
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 0x53
call fcn.00519950
lea ecx, [ebp - 0x2c]
call fcn.004b5200
jmp 0x51fc86
xor esi, esi
lea eax, [esi + 0xc]
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x7c], eax
lea esi, [ebx + 0xf0]
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 5
push eax
mov ecx, esi
call fcn.0051a9f0
lea ecx, [ebp - 0x7c]
call fcn.004b9050
push 0x18
push str.parts_adv_sys_button.ap3
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.004b7cd0
mov ecx, dword [esi]
lea edx, [ebp - 0x7c]
push edx
mov byte [ebp - 4], 0x54
mov eax, dword [ecx]
call dword [eax + 0x54]
mov ecx, dword [eax]
lea edx, [ebp - 0x2c]
push 1
push edx
mov byte [ebp - 4], 0x55
mov eax, dword [ecx]
call dword [eax + 0x10]
lea ecx, [ebp - 0x7c]
call fcn.004b52b0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.004b5200
mov ecx, dword [esi]
lea edx, [ebp - 0x88]
push edx
mov eax, dword [ecx]
call dword [eax + 0x54]
lea ecx, [ebp - 0x88]
mov eax, dword [eax]
or dword [eax + 0x13c], 0x40000
call fcn.004b52b0
mov edi, dword [ebx + 0x50]
push 0xc
call fcn.005682a5
add esp, 4
mov dword [ebp - 0x78], eax
test eax, eax
je 0x51fd4c
mov dword [eax], vtable.function_callback_vm0_class_AdvControl_.0
mov dword [eax + 4], 0x4c2af0
mov dword [eax + 8], edi
jmp 0x51fd4e
xor eax, eax
mov dword [ebp - 0x78], 0
lea ecx, [ebp - 0x7c]
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], 0
push eax
call fcn.004bc2d0
mov ecx, dword [esi]
lea eax, [ebp - 0x7c]
push eax
call fcn.00523740
lea ecx, [ebp - 0x7c]
call fcn.004bc5a0
mov ecx, dword [esi + 4]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
test ecx, ecx
je 0x51fd97
lock inc dword [ecx + 4]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], ecx
mov ecx, dword [ebx + 0xa0]
lea edx, [ebp - 0x7c]
push edx
mov byte [ebp - 4], 0x56
mov eax, dword [ecx]
call dword [eax + 0x10]
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 5
call fcn.004b8f90
push 0xe0
call fcn.005682a5
mov esi, eax
add esp, 4
mov dword [ebp - 0x78], esi
mov byte [ebp - 4], 0x57
test esi, esi
je 0x51fe28
push 0xa
push str.adv_select
lea ecx, [ebp - 0x2c]
mov dword [esi + 4], 1
mov dword [esi + 8], 1
mov dword [esi], vtable.std::_Ref_count_obj_class_AdvSelectBtnMgr_.0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.004b7cd0
push ebx
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0x58
push eax
lea ecx, [esi + 0xc]
call fcn.004b5090
lea ecx, [ebp - 0x2c]
call fcn.004b5200
jmp 0x51fe2a
xor esi, esi
mov eax, dword [ebx + 0x88]
lea ecx, [esi + 0xc]
mov dword [ebx + 0x88], ecx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebx + 0x8c]
mov byte [ebp - 4], 5
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x78], eax
mov dword [ebx + 0x8c], esi
call fcn.004b8ff0
lea ecx, [ebp - 0x88]
call fcn.004b8ff0
push 0x6427b8
lea eax, [ebp - 0x2c]
push 0x642788
push eax
call fcn.00517170
add esp, 0xc
mov ecx, dword [ebx + 0x88]
add ecx, 0x6c
mov byte [ebp - 4], 0x59
cmp ecx, eax
je 0x51feb0
cmp dword [eax + 0x14], 0x10
mov edx, eax
jb 0x51fea7
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.004b7cd0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.004b5200
mov eax, dword [0x6588b0]
mov ebx, dword [ebx + 0x88]
mov ecx, dword [0x642824]
mov edi, dword [0x642744]
mov edx, dword [eax + 0x10]
mov esi, dword [0x642748]
mov eax, dword [0x642820]
mov dword [ebx + 0xc4], ecx
lea ecx, [ebx + 0x8c]
mov dword [ebx + 0x68], edx
mov dword [ebx + 0x84], 0x642758
mov dword [ebx + 0xc0], eax
mov dword [ebx + 0x88], 0x43960000
mov dword [ebx + 0xa4], esi
mov dword [ebx + 0xa8], edi
cmp ecx, 0x642828
je 0x51ff3d
cmp dword [0x64283c], 0x10
mov eax, 0x642828
push dword [0x642838]
cmovae eax, dword [0x642828]
push eax
call fcn.004b7cd0
mov edx, dword [ebp - 0x8c]
mov eax, dword [0x64274c]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov ecx, dword [edx + 0x88]
mov dword [ecx + 0xac], eax
mov ecx, dword [edx + 0x88]
mov eax, dword [0x642750]
mov dword [ecx + 0xb0], eax
mov ecx, dword [edx + 0x88]
mov eax, dword [0x642754]
mov dword [ecx + 0xb4], eax
mov ecx, dword [edx + 0x88]
mov eax, dword [0x65bf2c]
mov dword [ecx + 0xb8], eax
mov ecx, dword [edx + 0x88]
mov eax, dword [0x65bf30]
mov dword [ecx + 0xbc], eax
mov eax, dword [edx + 0x88]
mov dword [eax + 0xc8], 2
mov ecx, dword [edx + 0x8c]
test ecx, ecx
je 0x51ffca
lock inc dword [ecx + 4]
mov ecx, dword [edx + 0x8c]
mov eax, dword [edx + 0x88]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], ecx
mov ecx, dword [edx + 0x90]
lea edx, [ebp - 0x7c]
push edx
mov byte [ebp - 4], 0x5a
mov eax, dword [ecx]
call dword [eax + 0x10]
lea ecx, [ebp - 0x7c]
call fcn.004b8f90
lea ecx, [ebp - 0x94]
call fcn.0051a190
lea ecx, [ebp - 0x5c]
call fcn.004b5200
lea ecx, [ebp - 0x74]
call fcn.004b5200
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0056857d
mov esp, ebp
pop ebp
ret
call fcn.0058546b
call fcn.0058546b
call fcn.0058546b
call fcn.0058546b
call fcn.0058546b
int3