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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x4f7a8c
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x54d000]
xor eax, esp
mov dword [esp + 0xf4], eax
push esi
push edi
mov eax, dword [0x54d000]
xor eax, esp
push eax
lea eax, [esp + 0x108]
mov dword fs:[0], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], 0
call fcn.004b64a0
mov edi, eax
call fcn.004b8fc0
mov ecx, dword [esp + 0x18]
mov esi, eax
push 1
push 0
mov ecx, dword [ecx + 4]
or dword [ecx], 1
mov ecx, edi
call fcn.004b85e0
mov ecx, dword [esi + 0x68]
and dword [ecx], 0xfffffff7
mov ecx, dword [esi + 0x70]
test ecx, ecx
je 0x4b4eef
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
test eax, eax
je 0x4b4eef
mov esi, dword [esi + 0x70]
mov ecx, esi
mov eax, dword [esi]
mov eax, dword [eax + 0x14]
call eax
test eax, eax
je 0x4b4edf
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax + 0x30]
call fcn.00496a60
cmp dword [eax + 0x68], 0
je 0x4b4eef
call fcn.004bb1a0
mov ecx, dword [edi + 8]
test ecx, ecx
jne 0x4b4efa
xor al, al
jmp 0x4b4f18
mov eax, dword [ecx + 0x40]
mov edx, dword [ecx + 0x3c]
sub eax, edx
test eax, 0xffffffe0
jne 0x4b4f0d
xor al, al
jmp 0x4b4f18
mov eax, dword [edx + 0x6e4]
shr eax, 2
and al, 1
movzx eax, al
mov dword [esp + 0x1c], eax
test ecx, ecx
je 0x4b4f43
mov eax, dword [ecx + 0x40]
mov edx, dword [ecx + 0x3c]
sub eax, edx
test eax, 0xffffffe0
je 0x4b4f43
mov dword [edx + 0x6e0], 0
and dword [edx + 0x6e4], 0xfffffffb
mov eax, dword [edi + 8]
test eax, eax
jne 0x4b4f4e
xor al, al
jmp 0x4b4f6c
mov ecx, dword [eax + 0x3c]
mov eax, dword [eax + 0x40]
sub eax, ecx
test eax, 0xffffffe0
jne 0x4b4f61
xor al, al
jmp 0x4b4f6c
mov eax, dword [ecx + 0x6e4]
shr eax, 3
and al, 1
mov ecx, dword [esp + 0x18]
movzx eax, al
push 0xffffffffffffffff
mov dword [esp + 0x24], eax
call fcn.004b5e60
call fcn.004b8fc0
push 0
mov esi, dword [eax + 0x2c]
push esi
call dword [sym.imp.USER32.dll_GetSystemMenu]
push 1
push 0xf060
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
push esi
call dword [sym.imp.USER32.dll_DrawMenuBar]
push 0x88
lea eax, [esp + 0x78]
push 0
push eax
call fcn.004dc9b0
add esp, 0xc
lea ecx, [esp + 0x74]
call fcn.004a6bf0
mov dword [esp + 0x74], vtable.CDialog.0
mov dword [esp + 0xf4], 0
mov dword [esp + 0xf8], 0
push 0xc8
push 4
lea ecx, [esp + 0x7c]
mov dword [esp + 0x118], 0
call fcn.004513d0
cmp eax, 0xffffffff
jne 0x4b5015
mov eax, dword [0x58dba0]
mov ecx, 0x58dba0
push 0
push 0x532264
call dword [eax + 4]
jmp 0x4b5047
test eax, eax
jne 0x4b501f
mov dword [esp + 0x14], eax
jmp 0x4b5047
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x78]
call fcn.00470980
cmp dword [esp + 0x40], 0x10
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
jb 0x4b5047
push dword [esp + 0x2c]
call fcn.004d9d65
add esp, 4
call fcn.004b8fc0
push 0
mov esi, dword [eax + 0x2c]
push esi
call dword [sym.imp.USER32.dll_GetSystemMenu]
push 0
push 0xf060
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
push esi
call dword [sym.imp.USER32.dll_DrawMenuBar]
cmp dword [esp + 0x1c], 0
je 0x4b509b
mov eax, dword [edi + 8]
test eax, eax
je 0x4b509b
mov ecx, dword [eax + 0x3c]
mov eax, dword [eax + 0x40]
sub eax, ecx
test eax, 0xffffffe0
je 0x4b509b
mov dword [ecx + 0x6e0], 0
or dword [ecx + 0x6e4], 4
mov esi, dword [esp + 0x18]
mov ecx, esi
push 1
call fcn.004b5e60
cmp dword [esp + 0x20], 0
jne 0x4b50e9
call fcn.004b64a0
mov eax, dword [eax + 8]
test eax, eax
je 0x4b50db
mov ecx, dword [eax + 0x3c]
mov eax, dword [eax + 0x40]
sub eax, ecx
test eax, 0xffffffe0
je 0x4b50db
mov dword [ecx + 0x6e0], 0
and dword [ecx + 0x6e4], 0xfffffff7
call fcn.004b8fc0
push dword [eax + 0x2c]
call dword [sym.imp.USER32.dll_DrawMenuBar]
call fcn.00496280
push 0
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x40]
mov eax, dword [esi + 4]
and dword [eax], 0xfffffffe
cmp dword [esp + 0x14], 0
jne 0x4b51e5
xorps xmm0, xmm0
movdqa xmmword [esp + 0x24], xmm0
movq qword [esp + 0x34], xmm0
call fcn.004b64a0
mov esi, eax
mov dword [esp + 0x28], esi
call fcn.00496280
mov ecx, dword [esi + 8]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x54]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x24], vtable.CFuncOneMes.0
mov eax, dword [eax + 0x30]
mov dword [esp + 0x38], eax
push 0x30
lea eax, [esp + 0x48]
mov byte [esp + 0x114], 1
push 0
push eax
call fcn.004dc9b0
add esp, 0xc
mov dword [esp + 0x44], vtable.IFunc.0
call fcn.004b64a0
mov dword [esp + 0x48], eax
call fcn.00496280
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x50], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x54], eax
mov eax, dword [ecx + 0x54]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x48], vtable.IFuncFlag.0
mov dword [esp + 0x5c], vtable.CCriticalSection.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esp + 0x44], vtable.CFuncFlag.0
lea ecx, [esp + 0x24]
mov byte [esp + 0x110], 2
call fcn.004ade20
push 0
push 0
lea ecx, [esp + 0x4c]
call fcn.00457400
push 0x549bac
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
call fcn.004dd2ec
mov dword [esp + 0x74], vtable.CDialog.0
mov dword [esp + 0x110], 3
mov ecx, dword [esp + 0xf4]
test ecx, ecx
je 0x4b5214
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esp + 0xf4], 0
mov ecx, dword [esp + 0xf8]
test ecx, ecx
je 0x4b5230
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esp + 0xf8], 0
lea ecx, [esp + 0x74]
call fcn.004a6dc0
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xf4]
xor ecx, esp
call fcn.004d9d6a
mov esp, ebp
pop ebp
ret