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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b6c67
push eax
mov al, byte [esp + 0x18]
mov dword fs:[0], esp
sub esp, 0x238
push ebx
push ebp
xor ebx, ebx
push esi
test al, al
push edi
je 0x475c09
mov edi, dword [0x4fb9b4]
neg edi
sbb edi, edi
cmp edi, ebx
je 0x475342
lea ecx, [esp + 0x10]
call fcn.0047a1ec
mov ebp, dword [0x4fb9ac]
mov esi, dword [0x4fb9b0]
cmp edi, 0xffffffff
mov dword [esp + 0x250], ebx
mov ecx, edi
jne 0x475288
xor edx, edx
cmp esi, ebx
jbe 0x475288
mov eax, ebp
mov ecx, dword [eax]
cmp ecx, ebx
jne 0x475288
inc edx
add eax, 4
cmp edx, esi
jb 0x47527a
mov edi, dword [ecx]
cmp edi, ebx
jne 0x4752a8
mov eax, dword [ecx + 4]
inc eax
cmp eax, esi
jae 0x4752a8
lea edx, [ebp + eax*4]
mov edi, dword [edx]
cmp edi, ebx
jne 0x4752a8
inc eax
add edx, 4
cmp eax, esi
jb 0x47529a
mov ebp, dword [ecx + 8]
add ecx, 0xc
push ecx
lea ecx, [esp + 0x14]
call fcn.0047a360
push ebp
call dword [sym.imp.USER32.dll_IsMenu]
test eax, eax
jne 0x475326
mov ecx, dword [0x4fb9ac]
cmp ecx, ebx
je 0x475326
mov eax, ebp
xor edx, edx
shr eax, 4
div dword [0x4fb9b0]
mov esi, dword [ecx + edx*4]
cmp esi, ebx
lea eax, [ecx + edx*4]
je 0x475326
cmp dword [esi + 8], ebp
je 0x4752f3
mov eax, esi
mov esi, dword [esi]
cmp esi, ebx
jne 0x4752e4
jmp 0x475326
mov ecx, dword [esi]
lea edx, [esi + 0xc]
push 1
push edx
mov dword [eax], ecx
call sub.MFC42.DLL_DestructElements
mov eax, dword [0x4fb9b8]
mov dword [esi], eax
mov eax, dword [0x4fb9b4]
dec eax
mov dword [0x4fb9b8], esi
mov dword [0x4fb9b4], eax
jne 0x475326
mov ecx, 0x4fb9a8
call fcn.00476ee0
lea ecx, [esp + 0x10]
mov dword [esp + 0x250], 0xffffffff
call sub.MFC42.DLL_CString::CString
cmp edi, ebx
jne 0x47524f
mov ebp, dword [0x4fb994]
neg ebp
sbb ebp, ebp
cmp ebp, ebx
je 0x475418
mov ebx, dword [0x4fb98c]
mov edi, dword [0x4fb990]
cmp ebp, 0xffffffff
mov edx, ebp
jne 0x47537d
xor ecx, ecx
test edi, edi
jbe 0x47537d
mov eax, ebx
mov edx, dword [eax]
test edx, edx
jne 0x47537d
inc ecx
add eax, 4
cmp ecx, edi
jb 0x47536f
mov ebp, dword [edx]
test ebp, ebp
jne 0x47539c
mov eax, dword [edx + 4]
inc eax
cmp eax, edi
jae 0x47539c
lea ecx, [ebx + eax*4]
mov ebp, dword [ecx]
test ebp, ebp
jne 0x47539c
inc eax
add ecx, 4
cmp eax, edi
jb 0x47538e
mov esi, dword [edx + 8]
push esi
call dword [sym.imp.USER32.dll_IsMenu]
test eax, eax
jne 0x475404
mov ebx, dword [0x4fb98c]
test ebx, ebx
je 0x47540a
mov edi, dword [0x4fb990]
mov eax, esi
shr eax, 4
xor edx, edx
div edi
mov eax, dword [ebx + edx*4]
test eax, eax
lea ecx, [ebx + edx*4]
je 0x475410
cmp dword [eax + 8], esi
je 0x4753dc
mov ecx, eax
mov eax, dword [eax]
test eax, eax
jne 0x4753cd
jmp 0x475410
mov edx, dword [eax]
mov dword [ecx], edx
mov ecx, dword [0x4fb998]
mov dword [eax], ecx
mov dword [0x4fb998], eax
mov eax, dword [0x4fb994]
dec eax
mov dword [0x4fb994], eax
jne 0x475404
mov ecx, 0x4fb988
call fcn.00476f40
mov ebx, dword [0x4fb98c]
mov edi, dword [0x4fb990]
test ebp, ebp
jne 0x475360
mov ebp, dword [esp + 0x25c]
xor ebx, ebx
push ebp
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov dword [esp + 0x14], eax
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x40]
mov dword [esp + 0x38], 0x30
mov dword [esp + 0x3c], 0x16
rep stosd dword es:[edi], eax
call sub.MFC42.DLL_AfxGetThread
cmp eax, ebx
je 0x47545b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x47545d
xor eax, eax
push eax
lea ecx, [esp + 0x74]
call sub.MFC42.DLL_CClientDC::CClientDC
mov edi, dword [esp + 0x74]
lea eax, [esp + 0x70]
neg eax
sbb eax, eax
push 0xff000000
and eax, edi
push 0x11
push eax
lea ecx, [esp + 0xc8]
mov dword [esp + 0x25c], 1
call fcn.00473c30
mov ecx, dword [esp + 0x78]
lea eax, [esp + 0x110]
push eax
push ecx
mov byte [esp + 0x258], 2
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov eax, dword [esp + 0x110]
lea ecx, [eax + 2]
cmp ecx, 0x11
jg 0x4754c3
mov ecx, 0x11
mov esi, dword [esp + 0x258]
add ecx, 4
cdq
sub eax, edx
mov dword [esp + 0x68], ecx
sar eax, 1
add eax, 2
cmp esi, ebx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
je 0x475598
mov al, byte [esp + 0x264]
test al, al
jne 0x475598
mov edx, dword [sym.imp.MFC42.DLL_CRuntimeClassconstCMDIFrameWnd::classCMDIFrameWnd]
mov ecx, esi
push edx
call sub.MFC42.DLL_CObject::IsKindOf
test eax, eax
je 0x47554e
push ebx
mov ecx, esi
call sub.MFC42.DLL_CMDIFrameWnd::MDIGetActive
cmp eax, ebx
je 0x47554e
mov eax, dword [eax + 0x20]
push ebx
push eax
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call sub.MFC42.DLL_CMenu::FromHandle
cmp eax, ebx
jne 0x475537
xor eax, eax
jmp 0x47553a
mov eax, dword [eax + 4]
cmp eax, ebp
jne 0x47554e
push 0x4fb958
call dword [sym.imp.USER32.dll_SetRectEmpty]
jmp 0x475be1
mov ecx, dword [sym.imp.MFC42.DLL_CRuntimeClassconstCFrameWnd::classCFrameWnd]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CObject::IsKindOf
test eax, eax
je 0x475565
cmp dword [esi + 0x7c], ebx
jne 0x475591
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetParentFrame
mov esi, eax
cmp esi, ebx
je 0x475598
mov edx, dword [sym.imp.MFC42.DLL_CRuntimeClassconstCMDIChildWnd::classCMDIChildWnd]
mov ecx, esi
push edx
call sub.MFC42.DLL_CObject::IsKindOf
test eax, eax
je 0x47558d
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetParentFrame
mov esi, eax
cmp esi, ebx
je 0x475598
add esi, 0x70
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x14]
mov ebx, dword [sym.imp.USER32.dll_GetMenuItemInfoA]
xor esi, esi
test eax, eax
mov dword [esp + 0x34], esi
jle 0x475b51
mov al, byte [0x4d7690]
mov edx, dword [esp + 0x3c]
mov byte [esp + 0x148], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x149]
rep stosd dword es:[edi], eax
and edx, 0xffffffdf
lea ecx, [esp + 0x148]
mov dword [esp + 0x3c], edx
lea edx, [esp + 0x38]
stosw word es:[edi], ax
push edx
push 1
push esi
push ebp
stosb byte es:[edi], al
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], 0xff
call ebx
mov eax, dword [esp + 0x40]
test ah, 1
jne 0x475ad3
mov cl, byte [esp + 0x264]
test cl, cl
je 0x475618
test al, 4
jne 0x475ad3
or ah, 1
test cl, cl
mov dword [esp + 0x40], eax
je 0x47569b
xor eax, eax
lea edi, [esp + 0x148]
or ecx, 0xffffffff
mov edx, dword [esp + 0x74]
repne scasb al, byte es:[edi]
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x90], eax
lea eax, [esp + 0x84]
not ecx
dec ecx
push 0x420
push eax
push ecx
lea ecx, [esp + 0x154]
mov dword [esp + 0x98], 0x3e8
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
mov eax, dword [esp + 0x8c]
mov edi, dword [esp + 0x84]
sub eax, edi
and eax, 0xffff
shl eax, 0x10
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x3c]
or al, 0x20
mov dword [esp + 0x3c], eax
lea ecx, [esp + 0x38]
push ecx
push 1
push esi
push ebp
call dword [sym.imp.USER32.dll_SetMenuItemInfoA]
mov eax, dword [esp + 0x40]
test ah, 8
jne 0x475ad3
lea edx, [esp + 0x148]
lea ecx, [esp + 0x24]
push edx
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x4c]
mov byte [esp + 0x250], 3
test eax, eax
je 0x47573d
lea ecx, [esp + 0x20]
mov esi, eax
push ecx
push eax
mov ecx, 0x4fb9a8
call fcn.00476ea0
test eax, eax
jne 0x4757a2
mov eax, dword [0x4fb9ac]
test eax, eax
jne 0x47570e
mov edx, dword [0x4fb9b0]
push 1
push edx
mov ecx, 0x4fb9a8
call fcn.00476f90
mov ecx, 0x4fb9a8
call fcn.00477000
mov ecx, dword [esp + 0x20]
mov dword [eax + 8], esi
mov dword [eax + 4], ecx
mov edx, dword [0x4fb9ac]
mov ecx, dword [esp + 0x20]
mov edx, dword [edx + ecx*4]
mov dword [eax], edx
mov ecx, dword [0x4fb9ac]
mov edx, dword [esp + 0x20]
jmp 0x47579f
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x28]
push edx
push eax
mov ecx, 0x4fb9c8
mov esi, eax
call fcn.00476ea0
test eax, eax
jne 0x4757a2
mov eax, dword [0x4fb9cc]
test eax, eax
jne 0x475772
mov eax, dword [0x4fb9d0]
push 1
push eax
mov ecx, 0x4fb9c8
call fcn.00476f90
mov ecx, 0x4fb9c8
call fcn.00477000
mov ecx, dword [esp + 0x28]
mov dword [eax + 8], esi
mov dword [eax + 4], ecx
mov edx, dword [0x4fb9cc]
mov ecx, dword [esp + 0x28]
mov edx, dword [edx + ecx*4]
mov dword [eax], edx
mov ecx, dword [0x4fb9cc]
mov edx, dword [esp + 0x28]
mov dword [ecx + edx*4], eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [eax + 0xc]
call fcn.0047a360
mov eax, dword [esp + 0x18]
test eax, eax
je 0x475ab1
mov edx, eax
mov ebp, dword [edx + 4]
test ebp, ebp
je 0x475ab1
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, ebp
mov ebp, dword [ebp]
mov esi, dword [eax + 8]
mov eax, dword [sym.imp.MFC42.DLL_CRuntimeClassconstCToolBar::classCToolBar]
push eax
mov ecx, esi
call sub.MFC42.DLL_CObject::IsKindOf
test eax, eax
je 0x475843
mov edx, dword [esp + 0x48]
mov ecx, 6
xor eax, eax
lea edi, [esp + 0xa4]
mov dword [esp + 0x9c], 0x20
mov dword [esp + 0xa0], 0x21
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x20]
lea ecx, [esp + 0x9c]
push ecx
push edx
push 0x441
push eax
call ebx
cmp eax, 0xffffffff
je 0x475843
mov ecx, dword [esp + 0xa4]
mov eax, dword [esp + 0x48]
cmp ecx, eax
jne 0x475843
cmp dword [esp + 0xa8], 0xffffffff
jne 0x47584c
test ebp, ebp
jne 0x4757ce
jmp 0x475ab1
mov edx, dword [esi + 0x20]
push 0
push 0
push 0x431
push edx
call ebx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xa8]
test ecx, ecx
mov dword [esp + 0x98], eax
je 0x47598d
mov esi, dword [0x4fb990]
mov eax, ecx
shr eax, 4
xor edx, edx
xor edi, edi
div esi
mov eax, dword [0x4fb98c]
mov dword [esp + 0x2c], ecx
cmp eax, edi
mov ebx, edx
je 0x4758b7
mov eax, dword [eax + ebx*4]
cmp eax, edi
je 0x4758e9
cmp dword [eax + 8], ecx
je 0x4758ad
mov eax, dword [eax]
cmp eax, edi
jne 0x4758a0
jmp 0x4758e9
cmp eax, edi
jne 0x475aa0
jmp 0x4758e9
lea ebp, [esi*4]
push ebp
call sub.MFC42.DLL_operatornew
mov ecx, ebp
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [0x4fb98c], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [0x4fb990], esi
xor edi, edi
mov eax, dword [0x4fb998]
cmp eax, edi
jne 0x47592f
mov eax, dword [0x4fb9a0]
push 0x14
push eax
push 0x4fb99c
call sub.MFC42.DLL_CPlex::Create
mov edx, dword [0x4fb9a0]
lea ecx, [edx + edx*4]
lea ecx, [eax + ecx*4 - 0x10]
lea eax, [edx - 1]
cmp eax, edi
jl 0x475986
lea edx, [eax + 1]
mov eax, dword [0x4fb998]
mov dword [ecx], eax
mov eax, ecx
sub ecx, 0x14
dec edx
jne 0x475920
mov dword [0x4fb998], eax
mov ecx, dword [0x4fb994]
mov edx, dword [eax]
inc ecx
mov dword [0x4fb998], edx
mov dword [0x4fb994], ecx
lea ecx, [eax + 0xc]
mov esi, ecx
xor edx, edx
mov dword [eax + 8], edi
mov dword [esi], edx
mov dword [esi + 4], edx
cmp ecx, edi
je 0x47595c
mov dword [ecx], edi
mov dword [ecx + 4], edi
add ecx, 8
mov esi, edx
dec edx
test esi, esi
jne 0x475953
mov ecx, dword [esp + 0x2c]
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov edx, dword [0x4fb98c]
mov ecx, dword [edx + ebx*4]
mov dword [eax], ecx
mov edx, dword [0x4fb98c]
jmp 0x475a9d
mov eax, dword [0x4fb998]
jmp 0x47592f
mov ecx, dword [esp + 0x48]
mov esi, dword [0x4fb970]
mov eax, ecx
xor edx, edx
shr eax, 4
div esi
mov eax, dword [0x4fb96c]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x2c], ecx
mov ebx, edx
je 0x4759cf
mov eax, dword [eax + ebx*4]
cmp eax, edi
je 0x475a01
cmp dword [eax + 8], ecx
je 0x4759c5
mov eax, dword [eax]
cmp eax, edi
jne 0x4759b8
jmp 0x475a01
cmp eax, edi
jne 0x475aa0
jmp 0x475a01
lea ebp, [esi*4]
push ebp
call sub.MFC42.DLL_operatornew
mov ecx, ebp
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [0x4fb96c], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [0x4fb970], esi
xor edi, edi
mov eax, dword [0x4fb978]
cmp eax, edi
jne 0x475a4b
mov eax, dword [0x4fb980]
push 0x14
push eax
push 0x4fb97c
call sub.MFC42.DLL_CPlex::Create
mov edx, dword [0x4fb980]
lea ecx, [edx + edx*4]
lea ecx, [eax + ecx*4 - 0x10]
lea eax, [edx - 1]
cmp eax, edi
jl 0x475baf
lea edx, [eax + 1]
mov eax, dword [0x4fb978]
mov dword [ecx], eax
mov eax, ecx
sub ecx, 0x14
dec edx
jne 0x475a3c
mov dword [0x4fb978], eax
mov ecx, dword [0x4fb974]
mov edx, dword [eax]
inc ecx
mov dword [0x4fb978], edx
mov dword [0x4fb974], ecx
lea ecx, [eax + 0xc]
mov esi, ecx
xor edx, edx
mov dword [eax + 8], edi
mov dword [esi], edx
mov dword [esi + 4], edx
cmp ecx, edi
je 0x475a78
mov dword [ecx], edi
mov dword [ecx + 4], edi
add ecx, 8
mov esi, edx
dec edx
test esi, esi
jne 0x475a6f
mov ecx, dword [esp + 0x2c]
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov edx, dword [0x4fb96c]
mov ecx, dword [edx + ebx*4]
mov dword [eax], ecx
mov edx, dword [0x4fb96c]
mov dword [edx + ebx*4], eax
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x98]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x250], 2
call sub.MFC42.DLL_CString::CString
mov ebx, dword [sym.imp.USER32.dll_GetMenuItemInfoA]
mov esi, dword [esp + 0x34]
mov ebp, dword [esp + 0x25c]
mov al, byte [esp + 0x264]
test al, al
jne 0x475b40
push 1
push esi
push ebp
lea ecx, [esp + 0xd8]
call fcn.00474030
lea eax, [esp + 0x70]
lea ecx, [esp + 0xcc]
push eax
mov byte [esp + 0x254], 4
call fcn.004743a0
cmp eax, dword [esp + 0x10]
jle 0x475b11
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0xd0]
call fcn.00474500
cmp eax, dword [esp + 0x1c]
jle 0x475b2c
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0xcc]
mov byte [esp + 0x250], 2
call fcn.004741c0
mov eax, dword [esp + 0x14]
inc esi
cmp esi, eax
mov dword [esp + 0x34], esi
jl 0x4755b0
mov al, byte [esp + 0x264]
test al, al
jne 0x475be1
mov eax, dword [esp + 0x14]
xor esi, esi
test eax, eax
jle 0x475be1
mov edi, 0x10
lea edx, [esp + 0x38]
mov dword [esp + 0x3c], edi
push edx
push 1
push esi
push ebp
call ebx
mov eax, dword [esp + 0x40]
test ah, 8
jne 0x475bb9
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x68]
xor eax, eax
and ecx, 0xffff
mov ah, byte [esp + 0x1c]
and edx, 0xff
and eax, 0xffff
shl ecx, 0x10
or eax, ecx
or eax, edx
jmp 0x475bbd
mov eax, dword [0x4fb978]
jmp 0x475a4b
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0x38]
mov dword [esp + 0x58], eax
push ecx
push 1
push esi
push ebp
mov dword [esp + 0x4c], 0x20
call dword [sym.imp.USER32.dll_SetMenuItemInfoA]
mov eax, dword [esp + 0x14]
inc esi
cmp esi, eax
jl 0x475b6f
lea ecx, [esp + 0xbc]
mov byte [esp + 0x250], 1
call fcn.00473c80
lea ecx, [esp + 0x70]
mov dword [esp + 0x250], 0xffffffff
call fcn.0047a16e
mov ecx, dword [esp + 0x248]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x244
ret