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

Disassembly:
push 0xffffffffffffffff
push 0x541a22
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5c403c]
xor eax, esp
push eax
lea eax, [esp + 0xbc]
mov dword fs:[0], eax
mov edi, dword [0x5c6f2c]
mov esi, dword [edi + 0x1c]
mov eax, dword [edi + 0x20]
mov ebp, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
add eax, esi
mov dword [esp + 0x28], edi
cmp esi, eax
jbe 0x4c5b5b
call ebp
mov ebx, dword [edi + 4]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], esi
mov eax, dword [edi + 0x1c]
mov esi, dword [edi + 0x20]
add esi, eax
cmp eax, esi
jbe 0x4c5b74
call ebp
mov eax, dword [edi + 4]
test ebx, ebx
je 0x4c5b7f
cmp ebx, eax
je 0x4c5b81
call ebp
cmp dword [esp + 0x24], esi
je 0x4c607c
lea eax, [esp + 0x20]
call fcn.00413720
mov esi, eax
mov edi, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
add esi, 0x10
add ecx, edi
cmp edi, ecx
jbe 0x4c5ba7
call ebp
mov ebp, dword [esi]
mov dword [esp + 0x18], ebp
mov ebx, edi
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], ebx
call fcn.00413720
mov esi, eax
mov eax, dword [esi + 0x28]
mov edi, dword [esi + 0x2c]
add edi, eax
cmp eax, edi
jbe 0x4c5bd0
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [esi + 0x10]
test ebp, ebp
je 0x4c5bdb
cmp ebp, esi
je 0x4c5be5
mov esi, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
call esi
jmp 0x4c5beb
mov esi, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp ebx, edi
je 0x4c5c25
lea eax, [esp + 0x18]
call fcn.00413720
movzx edx, word [esp + 0xcc]
cmp dword [eax + 0x10], edx
je 0x4c5c5e
test ebp, ebp
jne 0x4c5c1e
call esi
xor eax, eax
xor ecx, ecx
mov ecx, dword [ecx + 0x1c]
add ecx, dword [eax + 0x18]
cmp ebx, ecx
jb 0x4c5c1b
call esi
inc ebx
jmp 0x4c5baf
mov eax, dword [ebp]
mov ecx, eax
jmp 0x4c5c0f
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4c5c58
call esi
xor eax, eax
xor ecx, ecx
mov edx, dword [ecx + 0x1c]
add edx, dword [eax + 0x18]
cmp dword [esp + 0x24], edx
jb 0x4c5c41
call esi
inc dword [esp + 0x24]
mov ebp, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x20]
jmp 0x4c5b66
mov eax, dword [eax]
mov ecx, eax
jmp 0x4c5c33
lea eax, [esp + 0x18]
call fcn.00413720
test byte [eax + 0xc], 8
je 0x4c5d3d
push 0x2c
lea eax, [esp + 0x3c]
push 0
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [esp + 0x20]
mov dword [esp + 0x34], 0x30
mov dword [esp + 0x38], 1
call fcn.00413720
cmp dword [eax + 8], 0
je 0x4c5ccd
lea eax, [esp + 0x18]
call fcn.00413720
mov esi, eax
lea eax, [esp + 0x20]
call fcn.00413720
mov esi, dword [esi + 0x10]
mov eax, dword [eax + 8]
mov edx, dword [eax + 4]
lea ecx, [esp + 0x34]
push ecx
push 0
push esi
push edx
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
lea eax, [esp + 0x18]
call fcn.00413720
test byte [eax + 0xc], 2
lea eax, [esp + 0x18]
je 0x4c5cf2
and dword [esp + 0x40], 0xfffffff7
call fcn.00413720
add eax, 0xc
and dword [eax], 0xfffffffd
jmp 0x4c5d02
or dword [esp + 0x40], 8
call fcn.00413720
add eax, 0xc
or dword [eax], 2
lea eax, [esp + 0x20]
call fcn.00413720
cmp dword [eax + 8], 0
je 0x4c5d3d
lea eax, [esp + 0x18]
call fcn.00413720
mov esi, eax
lea eax, [esp + 0x20]
call fcn.00413720
mov esi, dword [esi + 0x10]
mov eax, dword [eax + 8]
mov edx, dword [eax + 4]
lea ecx, [esp + 0x34]
push ecx
push 0
push esi
push edx
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
lea eax, [esp + 0x18]
call fcn.00413720
xor ebp, ebp
cmp dword [eax + 0x24], ebp
je 0x4c6075
push 0x34
lea eax, [esp + 0x68]
push ebp
push eax
call sub.MSVCR90.dll_memset
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
add esp, 0xc
lea eax, [esp + 0x20]
mov dword [esp + 0x64], 0x34
mov dword [esp + 0x34], 0x24
call fcn.00413720
mov ecx, dword [eax]
mov edx, dword [esp + 0xd0]
mov eax, dword [edx]
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x48], eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [esp + 0x18]
call fcn.00413720
mov edx, dword [eax + 0x24]
lea eax, [esp + 0x18]
mov dword [esp + 0x84], edx
call fcn.00413720
mov eax, dword [eax + 0x28]
mov dword [esp + 0x88], eax
lea eax, [esp + 0x18]
call fcn.00413720
mov ecx, dword [eax + 0xc]
lea eax, [esp + 0x18]
mov dword [esp + 0x78], ecx
call fcn.00413720
mov edx, dword [eax + 0x20]
lea eax, [esp + 0x18]
mov dword [esp + 0x90], edx
call fcn.00413720
mov eax, dword [eax + 4]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x18]
call fcn.00413720
mov ecx, dword [eax]
lea eax, [esp + 0x18]
mov dword [esp + 0x70], ecx
call fcn.00413720
mov edx, dword [eax + 0x2c]
lea eax, [esp + 0x18]
mov dword [esp + 0x94], edx
call fcn.00413720
mov edi, dword [esp + 0xd4]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x7c], eax
cmp edi, ebp
je 0x4c6041
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
sar eax, 2
cmp eax, ebp
je 0x4c6041
xor ecx, ecx
mov dword [esp + 0x48], eax
mov esi, eax
mov edx, 0x20
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.mfc90u.dll_new__
add esp, 4
mov dword [esp + 0x28], eax
mov dword [esp + 0xc4], ebp
cmp eax, ebp
je 0x4c5ec7
dec esi
cmp esi, ebp
mov ecx, eax
jl 0x4c5ec9
mov edi, edi
xor edx, edx
mov dword [ecx + 4], edx
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], edx
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], edx
mov dword [ecx + 0x18], edx
mov dword [ecx + 0x1c], edx
mov dword [ecx], 0x20
add ecx, 0x20
sub esi, 1
jns 0x4c5ea0
jmp 0x4c5ec9
xor eax, eax
mov dword [esp + 0xc4], 0xffffffff
mov esi, dword [edi + 0xc]
mov ebx, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov dword [esp + 0x4c], eax
cmp esi, dword [edi + 0x10]
jbe 0x4c5ee8
call ebx
mov eax, dword [edi]
cmp eax, ebp
jne 0x4c5f75
call ebx
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x4c5efd
call ebx
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
mov dword [esp + 0x50], esi
sar eax, 2
test eax, eax
jbe 0x4c6041
mov dword [esp + 0x2c], 0
cmp ebp, eax
jb 0x4c5f20
call ebx
mov eax, dword [edi + 0xc]
lea esi, [ebp*4]
cmp dword [esi + eax], 0
je 0x4c5f7c
mov ecx, dword [edi + 0x10]
sub ecx, eax
sar ecx, 2
cmp ebp, ecx
jb 0x4c5f3e
call ebx
mov eax, dword [edi + 0xc]
mov ecx, dword [eax + esi]
add eax, esi
add ecx, 0x48
lea eax, [esp + 0x98]
call fcn.004bb950
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x2c]
lea edi, [ecx + edx]
mov ecx, 8
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0xd4]
jmp 0x4c602a
mov eax, dword [eax]
jmp 0x4c5ef6
cmp dword [0x5c7004], 0
je 0x4c602a
push 0x55ae9c
lea ecx, [esp + 0x2c]
call dword [0x55a504]
mov dword [esp + 0xc4], 1
push str.WARNING:_Empty_pNode___CCommandProcessor__this_is_unexpected_and_very__very__very_bad.
lea ecx, [esp + 0x24]
call dword [0x55a504]
mov byte [esp + 0xc4], 2
push str.MMSS
lea ecx, [esp + 0x34]
call dword [0x55a504]
mov byte [esp + 0xc4], 3
mov esi, dword [0x5c7004]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x34]
push eax
or ecx, 0xffffffff
lea ebx, [esp + 0x28]
call fcn.00433ab0
mov byte [esp + 0xc4], 2
lea ecx, [esp + 0x30]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [esp + 0xc4], 1
mov ecx, ebx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov dword [esp + 0xc4], 0xffffffff
lea ecx, [esp + 0x28]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov ebx, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
add dword [esp + 0x2c], 0x20
inc ebp
sar eax, 2
cmp ebp, eax
jb 0x4c5f20
lea eax, [esp + 0x18]
call fcn.00413720
mov esi, eax
lea eax, [esp + 0x18]
call fcn.00413720
mov ecx, dword [esi + 0x28]
push ecx
lea edx, [esp + 0x38]
push edx
mov edx, dword [eax + 0x24]
lea ecx, [esp + 0x6c]
push ecx
call edx
mov eax, dword [esp + 0x58]
push eax
call sub.mfc90u.dll_delete__
add esp, 0x10
mov eax, 1
jmp 0x4c607e
xor eax, eax
mov ecx, dword [esp + 0xbc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb4
ret 0xc