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

Disassembly:
sub esp, 0x17c
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], ebx
call fcn.00562e6c
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x4e
mov dword [esp + 0x28], 0x571f18
call esi
push 0x4f
mov dword [esp + 0x4c], eax
call esi
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x48]
push 0xb
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], eax
call esi
mov ebp, dword [esp + 0x58]
push 0xc
sub ebp, eax
mov dword [esp + 0x5c], ebp
call esi
mov ecx, dword [esp + 0x5c]
sub ecx, eax
mov eax, dword [esp + 0x190]
test eax, eax
mov dword [esp + 0x5c], ecx
je 0x4af93e
lea edx, [esp + 0x24]
mov ecx, edi
push edx
call sub.MFC42.DLL_CFrameWnd::GetDockState
mov eax, dword [esp + 0x30]
mov ebp, dword [sym.imp.MSVCRT.dll__snprintf]
xor esi, esi
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0x14], esi
jle 0x4af8d6
mov eax, dword [esp + 0x190]
push ebx
push eax
push str._s_Bar_d
lea ecx, [esp + 0x78]
push 0xff
push ecx
call ebp
push 0
lea edx, [esp + 0x84]
push 0
push edx
call fcn.00428f60
mov eax, dword [esp + 0x4c]
add esp, 0x20
mov esi, dword [eax + esi*4]
test esi, esi
je 0x4af8c1
mov eax, dword [esi]
or edi, 0xffffffff
cmp eax, edi
je 0x4af8c1
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x4af6eb
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4af6eb
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x4af6eb
cmp dword [esi + 0x14], edi
jne 0x4af6eb
cmp dword [esi + 0x18], edi
jne 0x4af6eb
cmp dword [esi + 0x4c], 1
jle 0x4af8c1
push eax
lea ecx, [esp + 0x70]
push str.BarID
push ecx
call fcn.00428f00
mov eax, dword [esi + 4]
add esp, 0xc
test eax, eax
jne 0x4af719
push 0
lea edx, [esp + 0x70]
push str.Visible
push edx
call fcn.00428f00
add esp, 0xc
mov eax, dword [esi + 8]
test eax, eax
je 0x4af749
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x6c]
push eax
push str.Horz
push ecx
call fcn.00428f00
mov edx, dword [esi + 8]
lea eax, [esp + 0x78]
push edx
push str.Floating
push eax
call fcn.00428f00
add esp, 0x18
mov eax, dword [esi + 0x14]
cmp eax, edi
je 0x4af763
push eax
lea ecx, [esp + 0x70]
push str.XPos
push ecx
call fcn.00428f00
add esp, 0xc
mov eax, dword [esi + 0x18]
cmp eax, edi
je 0x4af77d
push eax
lea edx, [esp + 0x70]
push str.YPos
push edx
call fcn.00428f00
add esp, 0xc
mov eax, dword [esi + 0x1c]
cmp eax, 0x7fff
je 0x4af79a
push eax
lea eax, [esp + 0x70]
push str.MRUWidth
push eax
call fcn.00428f00
add esp, 0xc
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4af862
push eax
lea ecx, [esp + 0x70]
push str.Docking
push ecx
call fcn.00428f00
mov edx, dword [esi + 0x24]
lea eax, [esp + 0x78]
push edx
push str.MRUDockID
push eax
call fcn.00428f00
mov ecx, dword [esi + 0x28]
lea edx, [esp + 0x84]
push ecx
push str.MRUDockLeftPos
push edx
call fcn.00428f00
mov eax, dword [esi + 0x2c]
lea ecx, [esp + 0x90]
push eax
push str.MRUDockTopPos
push ecx
call fcn.00428f00
mov edx, dword [esi + 0x30]
lea eax, [esp + 0x9c]
push edx
push str.MRUDockRightPos
push eax
call fcn.00428f00
mov ecx, dword [esi + 0x34]
lea edx, [esp + 0xa8]
push ecx
push str.MRUDockBottomPos
push edx
call fcn.00428f00
mov eax, dword [esi + 0x38]
add esp, 0x48
lea ecx, [esp + 0x6c]
push eax
push str.MRUFloatStyle
push ecx
call fcn.00428f00
mov edx, dword [esi + 0x3c]
lea eax, [esp + 0x78]
push edx
push str.MRUFloatXPos
push eax
call fcn.00428f00
mov ecx, dword [esi + 0x40]
lea edx, [esp + 0x84]
push ecx
push str.MRUFloatYPos
push edx
call fcn.00428f00
add esp, 0x24
mov ebx, dword [esi + 0x4c]
cmp ebx, 1
jle 0x4af8b6
push ebx
lea eax, [esp + 0x70]
push str.Bars
push eax
call fcn.00428f00
add esp, 0xc
xor edi, edi
test ebx, ebx
jle 0x4af8b6
push edi
push str.Bar_d
lea ecx, [esp + 0x174]
push 0x1f
push ecx
call ebp
mov edx, dword [esi + 0x48]
lea ecx, [esp + 0x17c]
mov eax, dword [edx + edi*4]
lea edx, [esp + 0x7c]
push eax
push ecx
push edx
call fcn.00428f00
add esp, 0x1c
inc edi
cmp edi, ebx
jl 0x4af883
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
mov ebx, eax
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
mov dword [esp + 0x14], esi
jl 0x4af678
mov eax, dword [esp + 0x190]
lea ecx, [esp + 0x6c]
push eax
push str._s_Summary
push 0xff
push ecx
call ebp
push ebx
lea edx, [esp + 0x80]
push str.Bars
push edx
call fcn.00428f00
add esp, 0x1c
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x24]
push eax
call sub.MFC42.DLL_CDockState::GetScreenSize
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x6c]
push ecx
push str.ScreenCX
push edx
call fcn.00428f00
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x78]
push eax
push str.ScreenCY
push ecx
call fcn.00428f00
add esp, 0x18
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CDockState::CDockState
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x17c
ret 4