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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x4f7af7
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 + 0x1c], ecx
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], 0
call fcn.004b64a0
mov esi, eax
mov dword [esp + 0x10], esi
call fcn.004b8fc0
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 8]
push 4
mov ecx, dword [ecx + 4]
push 0
mov dword [esp + 0x28], eax
or dword [ecx], 4
mov ecx, esi
call fcn.004b85e0
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x68]
and dword [eax], 0xfffffff7
mov ecx, dword [ecx + 0x70]
test ecx, ecx
je 0x4b532b
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
test eax, eax
je 0x4b532b
mov esi, dword [esp + 0xc]
mov esi, dword [esi + 0x70]
mov ecx, esi
mov eax, dword [esi]
mov eax, dword [eax + 0x14]
call eax
test eax, eax
je 0x4b5317
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax + 0x30]
call fcn.00496a60
cmp dword [eax + 0x68], 0
je 0x4b5327
call fcn.004bb1a0
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 8]
test eax, eax
jne 0x4b5336
xor al, al
jmp 0x4b5354
mov ecx, dword [eax + 0x3c]
mov eax, dword [eax + 0x40]
sub eax, ecx
test eax, 0xffffffe0
jne 0x4b5349
xor al, al
jmp 0x4b5354
mov eax, dword [ecx + 0x6e4]
shr eax, 3
and al, 1
mov ecx, dword [esp + 0x1c]
movzx eax, al
push 0xffffffffffffffff
mov dword [esp + 0x10], eax
call fcn.004b5e60
call fcn.004b64a0
mov eax, dword [eax + 8]
test eax, eax
je 0x4b5392
mov ecx, dword [eax + 0x3c]
mov eax, dword [eax + 0x40]
sub eax, ecx
test eax, 0xffffffe0
je 0x4b5392
mov dword [ecx + 0x6e0], 0
and dword [ecx + 0x6e4], 0xfffffffb
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]
test edi, edi
js 0x4b53c1
cmp edi, 2
jb 0x4b53c3
xor edi, edi
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
lea esi, [edi + edi*2]
mov dword [esp + 0x110], 0
shl esi, 2
lea ecx, [esp + 0x74]
push 0x69
mov dword [esp + 0x1c], esi
push dword [esi + 0x53230c]
call fcn.004513d0
cmp eax, 0xffffffff
jne 0x4b54df
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
mov byte [esp + 0x110], 1
lea eax, [esp + 0x44]
push dword [esi + 0x532314]
push 0x5322d4
push eax
lea eax, [esp + 0x30]
push eax
call fcn.004c6540
add esp, 0x10
mov dword [esp + 0x54], 0
cmp dword [esp + 0x58], 0x10
lea eax, [esp + 0x44]
cmovae eax, dword [esp + 0x44]
mov byte [eax], 0
cmp dword [esp + 0x58], 0x10
jb 0x4b5493
push dword [esp + 0x44]
call fcn.004d9d65
add esp, 4
cmp dword [esp + 0x38], 0x10
lea eax, [esp + 0x24]
push 0
cmovae eax, dword [esp + 0x28]
mov ecx, 0x58dba0
push eax
mov eax, dword [0x58dba0]
call dword [eax + 4]
mov byte [esp + 0x110], 0
lea eax, [esp + 0x24]
cmp dword [esp + 0x38], 0x10
mov dword [esp + 0x34], 0
cmovae eax, dword [esp + 0x24]
mov byte [eax], 0
cmp dword [esp + 0x38], 0x10
jb 0x4b5511
push dword [esp + 0x24]
jmp 0x4b5509
test eax, eax
jne 0x4b54e9
mov dword [esp + 0x14], eax
jmp 0x4b5511
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x78]
call fcn.00470980
cmp dword [esp + 0x60], 0x10
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
jb 0x4b5511
push dword [esp + 0x4c]
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
mov esi, dword [sym.imp.USER32.dll_DrawMenuBar]
call esi
call fcn.004b64a0
mov eax, dword [eax + 8]
test eax, eax
je 0x4b5565
mov ecx, dword [eax + 0x3c]
mov eax, dword [eax + 0x40]
sub eax, ecx
test eax, 0xffffffe0
je 0x4b5565
mov dword [ecx + 0x6e0], 0
or dword [ecx + 0x6e4], 4
mov edi, dword [esp + 0x1c]
mov ecx, edi
push 1
call fcn.004b5e60
cmp dword [esp + 0xc], 0
jne 0x4b55af
call fcn.004b64a0
mov eax, dword [eax + 8]
test eax, eax
je 0x4b55a5
mov ecx, dword [eax + 0x3c]
mov eax, dword [eax + 0x40]
sub eax, ecx
test eax, 0xffffffe0
je 0x4b55a5
mov dword [ecx + 0x6e0], 0
and dword [ecx + 0x6e4], 0xfffffff7
call fcn.004b8fc0
push dword [eax + 0x2c]
call esi
call fcn.00496280
push 0
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x40]
mov eax, dword [edi + 4]
and dword [eax], 0xfffffffb
cmp dword [esp + 0x14], 0
jne 0x4b56fa
cmp dword [ebp + 0xc], 0
je 0x4b56e3
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 8]
test eax, eax
je 0x4b5603
mov ecx, dword [eax + 0x3c]
mov eax, dword [eax + 0x40]
sub eax, ecx
test eax, 0xffffffe0
je 0x4b5603
mov dword [ecx + 0x6e0], 0
or dword [ecx + 0x6e4], 8
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], 2
push 0
push eax
call fcn.004dc9b0
add esp, 0xc
lea ecx, [esp + 0x44]
call fcn.0045f090
lea ecx, [esp + 0x24]
mov byte [esp + 0x110], 3
call fcn.004ade20
push 0
push 0
lea ecx, [esp + 0x4c]
call fcn.00457400
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0x48]
mov ecx, dword [eax + 0x764]
test ecx, ecx
je 0x4b56a7
push ecx
push ecx
push dword [eax + 0x744]
lea ecx, [esp + 0x50]
push 0
call fcn.004aae80
mov eax, dword [esp + 0x18]
mov ecx, edi
push dword [eax + 0x532310]
call fcn.004b76e0
push eax
mov ecx, edi
call fcn.004b75a0
lea eax, [esp + 0x5c]
mov dword [esp + 0x44], vtable.IFuncFlag.0
push eax
mov dword [esp + 0x5c], vtable.CCriticalSection.0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov byte [esp + 0x110], 0
push 0x549bac
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 4
push eax
call fcn.004dd2ec
mov dword [esp + 0x74], vtable.CDialog.0
mov dword [esp + 0x110], 4
mov ecx, dword [esp + 0xf4]
test ecx, ecx
je 0x4b5729
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esp + 0xf4], 0
mov ecx, dword [esp + 0xf8]
test ecx, ecx
je 0x4b5745
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 8