Function at 0x50a990
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bf590
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x6521c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x54], esi
lea edi, [esi + 4]
mov dword [esi], vtable.AdvLogic.0
mov dword [ebp - 4], 0
mov dword [edi], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], vtable.MsgFMT.0
mov dword [esi + 0x28], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0xf
mov byte [esi + 0x30], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0xf
mov byte [esi + 0x50], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], vtable.SelectFmt.0
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 0
mov dword [esi + 0x98], 0
mov dword [esi + 0x9c], 0
lea ebx, [esi + 0xa0]
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [esi + 0xc4], 0
mov dword [esi + 0xc8], 0
mov dword [esi + 0xec], 0
mov dword [esi + 0xf0], 0xf
mov byte [esi + 0xdc], 0
mov dword [esi + 0xf4], vtable.ScrEffectDataFmt.0
mov dword [esi + 0xf8], 0
mov dword [esi + method.KeyDataFmt.virtual_0], vtable.KeyDataFmt.0
mov dword [esi + 0x108], 0
mov dword [esi + 0x10c], 0
mov dword [esi + 0x110], 0
mov dword [esi + 0x114], 0
push 0x88
mov byte [ebp - 4], 0xe
call fcn.005682a5
add esp, 4
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 0xf
test eax, eax
je 0x50ab51
push esi
mov ecx, eax
call fcn.0055bf40
mov ecx, eax
jmp 0x50ab53
xor ecx, ecx
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 0xe
cmp edi, eax
je 0x50ab6c
mov edx, dword [edi]
mov dword [edi], ecx
test edx, edx
je 0x50ab76
mov eax, dword [edx]
mov ecx, edx
jmp 0x50ab72
test ecx, ecx
je 0x50ab76
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, esi
call fcn.0050f9b0
push 0x38
call fcn.005682a5
mov ecx, eax
add esp, 4
mov dword [ebp - 0x4c], ecx
test ecx, ecx
je 0x50abd4
mov dword [ecx + 4], 1
mov dword [ecx + 8], 1
mov dword [ecx], vtable.std::_Ref_count_obj_class_CMsgLog_.0
mov dword [ecx + 0xc], vtable.CMsgLog.0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 0xf
mov byte [ecx + 0x18], 0
mov dword [ecx + 0x30], 0
jmp 0x50abd6
xor ecx, ecx
lea eax, [ecx + 0xc]
mov dword [esi + 8], eax
mov edi, dword [esi + 0xc]
mov dword [esi + 0xc], ecx
test edi, edi
je 0x50ac0d
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x50ac07
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x50ac07
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea ebx, [esi + 0xa0]
push 0x1a8
call fcn.005682a5
mov edx, eax
add esp, 4
mov dword [ebp - 0x4c], edx
mov byte [ebp - 4], 0x10
test edx, edx
je 0x50ac5a
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x50ac44
lock inc dword [eax + 4]
mov eax, dword [esi + 8]
mov dword [ecx], eax
mov eax, dword [esi + 0xc]
mov dword [ecx + 4], eax
mov ecx, edx
call fcn.00558ef0
mov ecx, eax
jmp 0x50ac5c
xor ecx, ecx
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 0xe
lea edi, [esi + 0x10]
cmp edi, eax
je 0x50ac78
mov edx, dword [edi]
mov dword [edi], ecx
test edx, edx
je 0x50ac82
mov eax, dword [edx]
mov ecx, edx
jmp 0x50ac7e
test ecx, ecx
je 0x50ac82
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [edi]
push 0x6426a0
call fcn.0055a760
test eax, eax
je 0x50af49
mov ecx, esi
call fcn.0050df00
push 0x100
call fcn.005682a5
add esp, 4
mov dword [ebp - 0x50], eax
test eax, eax
je 0x50aed6
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax], vtable.CSkipState.0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x1c], vtable.CAutoState.0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x34], 0
mov dword [eax + 0x38], 0
mov dword [eax + 0x3c], 0
mov dword [eax + 0x30], vtable.CBackLogState.0
mov dword [eax + 0x44], 0
mov dword [eax + 0x48], 0
mov dword [eax + 0x4c], 0
mov dword [eax + 0x40], vtable.CVoiceState.0
mov dword [eax + 0x50], 0
mov dword [eax + 0x58], 0
mov dword [eax + 0x5c], 0
mov dword [eax + 0x60], 0
mov dword [eax + 0x54], vtable.CReadState.0
mov dword [eax + 0x68], 0
mov dword [eax + 0x6c], 0
mov dword [eax + 0x70], 0
mov dword [eax + 0x64], vtable.CWaitMarkState.0
mov dword [eax + 0x78], 0
mov dword [eax + 0x7c], 0
mov dword [eax + 0x80], 0
mov dword [eax + 0x74], vtable.CQSaveState.0
mov dword [eax + 0x88], 0
mov dword [eax + 0x8c], 0
mov dword [eax + 0x90], 0
mov dword [eax + 0x84], vtable.CQLoadState.0
mov dword [eax + 0x98], 0
mov dword [eax + 0x9c], 0
mov dword [eax + 0xa0], 0
mov dword [eax + 0x94], vtable.CMsgWinCloseState.0
mov dword [eax + 0xa8], 0
mov dword [eax + 0xac], 0
mov dword [eax + 0xb0], 0
mov dword [eax + 0xa4], vtable.CSaveBtnState.0
mov dword [eax + 0xb8], 0
mov dword [eax + 0xbc], 0
mov dword [eax + 0xc0], 0
mov dword [eax + 0xb4], vtable.CLoadBtnState.0
mov dword [eax + 0xc8], 0
mov dword [eax + 0xcc], 0
mov dword [eax + 0xd0], 0
mov dword [eax + 0xc4], vtable.CTextState.0
mov dword [eax + 0xd4], 1
mov dword [eax + 0xd8], 0
mov dword [eax + 0xdc], 0
mov dword [eax + 0xe4], 0
mov dword [eax + 0xe8], 0
mov dword [eax + 0xec], 0
mov dword [eax + 0xf0], 1
mov dword [eax + 0xf4], 0
mov dword [eax + 0xf8], 0
mov dword [eax + 0xe0], vtable.CTextFrameState.0
mov dword [eax + 0xfc], 0
jmp 0x50aed8
xor eax, eax
lea edx, [ebp - 0x4c]
lea ecx, [esi + 0x1c]
cmp ecx, edx
je 0x50aeed
mov edx, dword [ecx]
mov dword [ecx], eax
test edx, edx
je 0x50aefa
push edx
jmp 0x50aef5
test eax, eax
je 0x50aefa
push eax
lea ecx, [ebp - 0x4c]
call fcn.0050bed0
push ebx
push dword [ebx + 4]
push dword [ebx]
call fcn.00508140
mov ecx, dword [ebx]
add esp, 0xc
mov dword [ebx + 4], ecx
mov eax, esi
mov dword [esi + 0xb8], 1
mov dword [esi + 0xbc], 0
mov dword [esi + 0xc0], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056857d
mov esp, ebp
pop ebp
ret
push 0x5d9974
lea ecx, [ebp - 0x28]
call fcn.004b4fb0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0x48]
call fcn.004b51d0
push 0x62a9b8
lea eax, [ebp - 0x48]
push eax
call fcn.00580b2f
int3