Function at 0x548690
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x57d367
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x5e68f0]
xor eax, esp
mov dword [esp + 0x134], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5e68f0]
xor eax, esp
push eax
lea eax, [esp + 0x14c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x15c]
mov ebp, ecx
mov ecx, dword [ebp + 0x94]
mov edx, dword [ecx + 0x44]
mov esi, dword [edx + 0x48]
mov ecx, ebp
mov dword [esp + 0x64], eax
mov dword [esp + 0x34], esi
call fcn.00548580
lea ecx, [esp + 0x4c]
mov dword [esp + 0x2c], eax
call fcn.00416b70
mov eax, dword [ebp + 0x20]
xor ebx, ebx
push eax
mov dword [esp + 0x158], ebx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
lea ecx, [esp + 0x50]
call fcn.0041725e
lea eax, [esi + 0xc]
push eax
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x98]
call fcn.00555640
mov eax, 3
lea edx, [esp + 0xb0]
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x54]
push edx
push eax
mov byte [esp + 0x15c], 1
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov ecx, ebp
call fcn.00546ac0
mov ecx, dword [ebp + 0x54]
push ecx
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov edx, eax
xor eax, eax
xor edi, edi
cmp edx, eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], eax
jg 0x548854
cmp ebx, edx
mov eax, ebx
jge 0x5487b4
test eax, eax
jl 0x548bfb
cmp eax, dword [ebp + 0x60]
jge 0x548bfb
mov ecx, dword [ebp + 0x5c]
lea ecx, [ecx + eax*4]
mov ecx, dword [ecx]
mov esi, dword [ecx]
add esi, edi
inc eax
cmp eax, edx
mov dword [ecx + 8], esi
jl 0x54878f
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
cmp ecx, eax
mov edx, dword [esp + 0x24]
lea edi, [edi + edx + 3]
jle 0x5487ca
mov eax, ecx
lea ecx, [esp + 0x90]
lea ebx, [eax + 3]
call fcn.00555230
lea ecx, [esp + 0x4c]
call fcn.00417294
push eax
mov eax, dword [ebp + 0x20]
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov esi, dword [esp + 0x64]
lea ecx, [esp + 0x90]
mov dword [esi], edi
mov dword [esi + 4], ebx
mov byte [esp + 0x154], 0
call fcn.00555680
lea ecx, [esp + 0x4c]
mov dword [esp + 0x154], 0xffffffff
call fcn.004172dd
mov eax, esi
mov ecx, dword [esp + 0x14c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.0050c2f2
add esp, 0x144
ret 4
mov esi, dword [esp + 0x34]
push 0x1c
call fcn.0040d49d
add esp, 4
test eax, eax
je 0x548873
mov edx, dword [esp + 0x20]
push edx
push ebp
mov ecx, eax
call fcn.00546120
mov edi, eax
jmp 0x548875
xor edi, edi
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call fcn.00547790
mov ecx, edi
mov byte [esp + 0x154], 2
mov dword [esp + 0x3c], 0
call fcn.00545d50
mov ecx, edi
test eax, eax
je 0x548928
xor esi, esi
mov dword [esp + 0x78], 1
mov dword [esp + 0x7c], esi
call fcn.00545cf0
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0xa0]
push ecx
push 1
push 0x5be034
push edx
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], esi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esp + 0xa4]
mov ecx, edi
mov dword [esp + 0x88], eax
call fcn.00545d10
mov edx, dword [ebp + 0x90]
lea ecx, [esp + 0x78]
push ecx
push esi
push 0x2c
push edx
mov dword [esp + 0x9c], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x84]
mov esi, dword [esp + 0x88]
add eax, 0xc
mov dword [esp + 0x3c], eax
jmp 0x548af8
call fcn.00545d30
test eax, eax
je 0x548944
mov esi, dword [esp + 0x2c]
neg esi
sbb esi, esi
and esi, 0xfffffffd
add esi, 9
jmp 0x548af8
mov ecx, edi
call fcn.005461a0
mov dword [esp + 0x5c], eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], vtable.CFont.0
mov byte [esp + 0x154], 3
test eax, eax
je 0x5489b3
mov edx, dword [esi + 0x10]
lea ecx, [esp + 0xec]
push ecx
push 0x5c
push edx
call dword [sym.imp.GDI32.dll_GetObjectW]
lea eax, [esp + 0xec]
push eax
mov dword [esp + 0x100], 0x2bc
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
lea ecx, [esp + 0x48]
call fcn.00417530
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x94]
call fcn.00555200
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jg 0x5489c2
or esi, 0xffffffff
jmp 0x5489de
push 9
push eax
call fcn.0050d647
add esp, 8
test eax, eax
jne 0x5489d6
or esi, 0xffffffff
jmp 0x5489de
sub eax, dword [esp + 0x14]
sar eax, 1
mov esi, eax
xor ebx, ebx
cmp esi, 0xffffffff
je 0x548a6e
push esi
lea edx, [esp + 0x64]
push edx
lea ecx, [esp + 0x1c]
call fcn.00424f0e
mov byte [esp + 0x154], 4
test esi, esi
jl 0x548bf1
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 8]
jg 0x548bf1
mov dword [eax - 0xc], esi
mov ecx, dword [esp + 0x14]
xor eax, eax
mov word [ecx + esi*2], ax
mov esi, dword [esp + 0x60]
mov eax, dword [esi - 0xc]
lea edx, [esp + 0x70]
push edx
push eax
mov eax, dword [esp + 0x5c]
push esi
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov ecx, dword [esp + 0x74]
mov ebx, dword [esp + 0x70]
lea eax, [esi - 0x10]
mov dword [esp + 0xac], ecx
mov byte [esp + 0x154], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x548a6e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
lea edx, [esp + 0x68]
push edx
push eax
mov eax, dword [esp + 0x5c]
push ecx
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
cmp dword [esp + 0x2c], 0
mov eax, dword [esp + 0x68]
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x3c], eax
je 0x548aae
cmp esi, 0x16
lea ecx, [eax + ebx + 0x58]
mov dword [esp + 0x3c], ecx
jg 0x548ac0
mov esi, 0x16
jmp 0x548ac0
cmp esi, 0x11
lea edx, [eax + ebx + 0x3d]
mov dword [esp + 0x3c], edx
jg 0x548ac0
mov esi, 0x11
cmp dword [esp + 0x5c], 0
je 0x548adb
mov eax, dword [esp + 0x34]
add eax, 0xc
push eax
lea ecx, [esp + 0x94]
call fcn.00555200
lea ecx, [esp + 0x44]
mov byte [esp + 0x154], 2
mov dword [esp + 0x44], vtable.CFont.0
call fcn.00401a20
mov ebx, dword [esp + 0x38]
mov ecx, edi
call fcn.00545d70
test al, 0x60
je 0x548b6b
mov eax, dword [esp + 0x20]
cmp ebx, eax
je 0x548b6b
jge 0x548b3d
lea ecx, [ecx]
test ebx, ebx
jl 0x548bfb
cmp ebx, dword [ebp + 0x60]
jge 0x548bfb
mov eax, dword [ebp + 0x5c]
lea eax, [eax + ebx*4]
mov eax, dword [eax]
mov ecx, dword [eax]
add ecx, dword [esp + 0x1c]
inc ebx
cmp ebx, dword [esp + 0x20]
mov dword [eax + 8], ecx
mov dword [esp + 0x38], ebx
jl 0x548b10
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
lea ecx, [edx + eax + 4]
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x28], eax
mov dword [esp + 0x24], ecx
jg 0x548b5b
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
add esi, edx
add eax, ecx
cmp dword [esp + 0x1c], ecx
jg 0x548b85
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov dword [edi + 8], eax
lea ecx, [ebp + 0x58]
mov dword [edi + 0xc], esi
mov eax, dword [ecx + 8]
push edi
push eax
call fcn.00539d40
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x18], esi
mov byte [esp + 0x154], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x548bd1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
inc eax
cmp eax, dword [esp + 0x30]
mov dword [esp + 0x20], eax
jl 0x548850
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
jmp 0x548789
push 0x80070057
call fcn.00401920
call fcn.00418981
int3