Function at 0x54fb00
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65c260
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x755898]
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 esi, ecx
mov dword [ebp - 0x30], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x2c], ecx
mov dword [esi], vtable.CUserCaptionButton.0
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [0x75b7d4]
cmp eax, ebx
jne 0x54fb69
push str.dwmapi.dll
call fcn.00447580
add esp, 4
mov dword [0x75b7d4], eax
cmp eax, ebx
je 0x54fb91
push str.DwmIsCompositionEnabled
push eax
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call edi
mov dword [0x75b7d0], eax
push str.DwmSetWindowAttribute
mov edx, dword [0x75b7d4]
push edx
call edi
mov dword [0x75b7dc], eax
jmp 0x54fb97
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, dword [0x75b7d8]
cmp eax, ebx
jne 0x54fbb6
push str.UxTheme.dll
call fcn.00447580
add esp, 4
mov dword [0x75b7d8], eax
cmp eax, ebx
je 0x54fc0d
push str.OpenThemeData
push eax
call edi
mov dword [0x75b7bc], eax
push str.CloseThemeData
mov eax, dword [0x75b7d8]
push eax
call edi
mov dword [0x75b7c0], eax
push str.DrawThemeBackground
mov ecx, dword [0x75b7d8]
push ecx
call edi
mov dword [0x75b7c4], eax
push str.GetThemeSysFont
mov edx, dword [0x75b7d8]
push edx
call edi
mov dword [0x75b7c8], eax
push str.DrawThemeTextEx
mov eax, dword [0x75b7d8]
push eax
call edi
mov dword [0x75b7cc], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x4c], 0x14
mov ecx, dword [0x75abac]
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffb
add ecx, 0x1f
mov dword [esi + 0x48], ecx
mov edx, dword [0x75abac]
neg edx
sbb edx, edx
and edx, 0xffffffeb
add edx, 0x2f
mov dword [esi + 0x50], edx
mov eax, dword [0x75abac]
neg eax
sbb eax, eax
and eax, 0xfffffff7
add eax, 0x1d
mov dword [esi + 0x54], eax
mov ecx, dword [0x75abac]
mov eax, ecx
neg eax
sbb eax, eax
and eax, 0xffffffeb
add eax, 0x2f
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffb
add ecx, 0x1f
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0x58], eax
xor ecx, ecx
cmp dword [0x75abac], ebx
sete cl
lea ecx, [ecx*4 + 8]
mov dword [esi + 0x5c], ecx
mov edx, dword [0x75abac]
neg edx
sbb edx, edx
and edx, 0xfffffffd
add edx, 5
mov dword [esi + 0x60], edx
xor eax, eax
cmp dword [0x75abac], ebx
setne al
lea eax, [eax + eax + 8]
mov dword [esi + 0x64], eax
mov ecx, dword [ebp - 0x28]
push ecx
mov ecx, esi
call fcn.0054ea30
mov edx, dword [esi + 0x68]
mov dword [ebp - 0x40], edx
mov eax, dword [esi + 0x6c]
mov dword [ebp - 0x3c], eax
mov ecx, dword [esi + 0x70]
mov dword [ebp - 0x38], ecx
mov edx, dword [esi + 0x74]
mov dword [ebp - 0x34], edx
push 6
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
call edi
add eax, eax
mov dword [ebp - 0x24], eax
push 4
call edi
mov edi, eax
add edi, dword [ebp - 0x24]
neg edi
push 5
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, eax
or eax, 0xffffffff
sub eax, ecx
add eax, eax
push edi
push eax
lea edx, [ebp - 0x40]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp - 0x40]
mov dword [esi + 0x94], eax
mov ecx, dword [ebp - 0x3c]
mov dword [esi + 0x98], ecx
mov edx, dword [ebp - 0x38]
mov dword [esi + 0x9c], edx
mov eax, dword [ebp - 0x34]
mov dword [esi + 0xa0], eax
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0xa8], ecx
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 0x40]
push eax
mov edi, dword [ebp - 0x2c]
push edi
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.005f610f
push eax
mov ecx, dword [esi + 0xa8]
call fcn.005fb328
cmp dword [0x75ad18], ebx
je 0x54fe51
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
xor edx, edx
mov word [ebp - 0x1c], dx
mov byte [ebp - 4], 1
mov eax, dword [0x75ad10]
push eax
push edi
lea ecx, [ebp - 0x20]
call fcn.00401980
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x54fdb3
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x24]
call fcn.00418200
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x24]
mov cl, byte [eax]
cmp cl, byte [edi]
jne 0x54fde3
cmp cl, bl
je 0x54fddf
mov cl, byte [eax + 1]
cmp cl, byte [edi + 1]
jne 0x54fde3
add eax, 2
add edi, 2
cmp cl, bl
jne 0x54fdc3
xor eax, eax
jmp 0x54fde8
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x54fe3a
push 0x30
push ebx
lea ecx, [ebp - 0x70]
push ecx
call fcn.0061d9e0
add esp, 0xc
mov dword [ebp - 0x70], 0x30
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x54fe1a
mov dword [ebp - 0x4c], eax
jmp 0x54fe20
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x4c], ecx
lea edx, [ebp - 0x70]
push edx
push ebx
push 0x439
mov eax, dword [esi + 0xa8]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00402570
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x20]
call fcn.00401210
push 0x1e
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov edi, eax
push 0x1f
call dword [sym.imp.USER32.dll_GetSystemMetrics]
lea ecx, [edi - 5]
mov dword [esi + 0x8c], ecx
add eax, 0xfffffffb
mov dword [esi + 0x90], eax
mov edx, 8
cmp ecx, edx
jle 0x54fe84
mov dword [esi + 0x8c], edx
cmp eax, edx
jle 0x54fe8e
mov dword [esi + 0x90], edx
call fcn.005f9c7a
mov eax, dword [eax + 8]
push ebx
mov edx, dword [esi + 0x90]
push edx
mov ecx, dword [esi + 0x8c]
push ecx
push 1
movzx edx, word [ebp + 0x18]
push edx
push eax
mov edi, dword [sym.imp.USER32.dll_LoadImageA]
call edi
mov dword [esi + 8], eax
cmp dword [0x75aba4], ebx
je 0x54fedc
call fcn.005f9c7a
mov eax, dword [eax + 8]
push ebx
push 0x10
push 0x10
push 1
push 0x80
push eax
call edi
mov dword [esi + 0xc], eax
jmp 0x54fedf
mov dword [esi + 0xc], ebx
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x88], eax
mov byte [esi + 4], bl
mov byte [esi + 5], 1
cmp dword [0x75aba4], ebx
je 0x54ff58
cmp dword [0x75b7dc], ebx
je 0x54ff58
cmp dword [0x75b7bc], ebx
je 0x54ff58
cmp dword [0x75b7c0], ebx
je 0x54ff58
cmp dword [0x75b7c8], ebx
je 0x54ff58
cmp dword [0x75b7cc], ebx
je 0x54ff58
mov byte [ebp - 4], 3
mov dword [ebp - 0x2c], 1
push 4
lea ecx, [ebp - 0x2c]
push ecx
push 4
mov edx, dword [ebp - 0x28]
push edx
call dword [0x75b7dc]
mov dword [ebp - 4], ebx
mov dword [ebp - 4], 0xffffffff
jmp 0x54ff71
mov dword [ebp - 4], 0xffffffff
jmp 0x54ff71
mov eax, esi
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.0061d2ff
mov esp, ebp
pop ebp
ret 0x14