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

Disassembly:
push 0xffffffffffffffff
push 0x5652d2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x20], esi
mov dword [esi], 0x5843c8
mov ebx, dword [esi + 0x40]
mov dword [esp + 0x2c], 9
mov dword [esp + 0x14], ebx
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 0
mov ecx, dword [eax + 0x20]
call sub.MFC42.DLL_CMDIFrameWnd::MDIGetActive
test eax, eax
jne 0x475a53
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 0
push 0xe801
mov eax, dword [eax + 0x20]
mov eax, dword [eax + 0x20]
push eax
call sub.MFC42.DLL_CWnd::GetDescendantWindow
lea ecx, [esp + 0x10]
mov edi, eax
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0xa
call sub.MFC42.DLL_CString::Empty
test edi, edi
je 0x475a45
mov ecx, dword [esp + 0x10]
push 1
push ecx
push 3
mov ecx, edi
call sub.MFC42.DLL_CStatusBar::SetPaneText
mov edx, dword [esp + 0x10]
push 1
push edx
push 2
mov ecx, edi
call sub.MFC42.DLL_CStatusBar::SetPaneText
mov eax, dword [esp + 0x10]
push 1
push eax
push 1
mov ecx, edi
call sub.MFC42.DLL_CStatusBar::SetPaneText
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 9
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x74]
mov eax, dword [0x5c0190]
mov ecx, eax
dec eax
test ecx, ecx
mov dword [esp + 0x10], eax
je 0x475b74
mov edx, dword [0x5c018c]
mov edi, dword [ebx + 0x36c]
mov ebp, dword [edx + eax*4]
mov eax, dword [ebp + 4]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x475aa4
test cl, cl
je 0x475aa0
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x475aa4
add eax, 2
add edi, 2
test cl, cl
jne 0x475a80
xor eax, eax
jmp 0x475aa9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x475b40
push 6
push eax
lea eax, [esp + 0x24]
lea ecx, [ebx + 0x370]
push eax
call sub.MFC42.DLL_CString::Mid_1
mov edi, eax
push 6
lea ecx, [esp + 0x1c]
push 0
push ecx
lea ecx, [ebp + 8]
mov byte [esp + 0x38], 0xb
call sub.MFC42.DLL_CString::Mid_1
mov edi, dword [edi]
mov eax, dword [eax]
mov dl, byte [eax]
mov bl, byte [edi]
mov cl, dl
cmp dl, bl
jne 0x475b08
test cl, cl
je 0x475b04
mov dl, byte [eax + 1]
mov bl, byte [edi + 1]
mov cl, dl
cmp dl, bl
jne 0x475b08
add eax, 2
add edi, 2
test cl, cl
jne 0x475ae0
xor eax, eax
jmp 0x475b0d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea ecx, [esp + 0x18]
sete bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 9
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x475b3c
mov ecx, dword [esp + 0x14]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ecx + 0x3b0]
je 0x475b55
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov edx, eax
dec eax
test edx, edx
mov dword [esp + 0x10], eax
jne 0x475a6e
jmp 0x475b74
test ebp, ebp
je 0x475b63
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax + 4]
mov ecx, dword [esp + 0x10]
push 1
push ecx
mov ecx, 0x5c0188
call sub.MFC42.DLL_CObArray::RemoveAt
lea edi, [esi + 0xc0]
mov dword [esp + 0x14], edi
mov dword [edi], 0x581348
mov ecx, edi
mov byte [esp + 0x2c], 0xc
call sub.MFC42.DLL_CMenu::DestroyMenu
lea ecx, [esi + 0xb8]
mov dword [edi], 0x57f4c4
mov byte [esp + 0x2c], 7
call sub.MFC42.DLL_CString::CString
lea edi, [esi + 0xb0]
mov dword [esp + 0x14], edi
mov dword [edi], 0x57f4d8
mov ecx, edi
mov byte [esp + 0x2c], 0xd
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [edi], 0x57f4c4
lea edi, [esi + 0xa8]
mov dword [esp + 0x14], edi
mov dword [edi], 0x57f4d8
mov ecx, edi
mov byte [esp + 0x2c], 0xe
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [edi], 0x57f4c4
lea edi, [esi + 0xa0]
mov dword [esp + 0x14], edi
mov dword [edi], 0x57f4d8
mov ecx, edi
mov byte [esp + 0x2c], 0xf
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [edi], 0x57f4c4
lea edi, [esi + 0x98]
mov dword [esp + 0x14], edi
mov dword [edi], 0x57f4d8
mov ecx, edi
mov byte [esp + 0x2c], 0x10
call sub.MFC42.DLL_CGdiObject::DeleteObject
push fcn.004078b0
push 3
lea edx, [esi + 0x80]
push 8
push edx
mov dword [edi], 0x57f4c4
mov byte [esp + 0x3c], 2
call fcn.00557ee0
lea edi, [esi + 0x78]
mov dword [esp + 0x14], edi
mov dword [edi], 0x57f4d8
mov ecx, edi
mov byte [esp + 0x2c], 0x11
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [edi], 0x57f4c4
lea edi, [esi + 0x70]
mov dword [esp + 0x14], edi
mov dword [edi], 0x57f4d8
mov ecx, edi
mov byte [esp + 0x2c], 0x12
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, esi
mov dword [edi], 0x57f4c4
mov dword [esp + 0x2c], 0xffffffff
call fcn.00557210
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret