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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4e4233
push eax
mov dword fs:[0], esp
sub esp, 0x28c
push ebx
push ebp
push edi
mov edi, dword [esp + 0x2a8]
xor ebp, ebp
cmp edi, ebp
je 0x4a5a4d
mov eax, dword [0x52d140]
mov ecx, 0x52d140
mov dword [esp + 0x18], 0x52d140
call dword [eax + 4]
mov eax, dword [0x526620]
mov dword [esp + 0x2a0], ebp
cmp eax, ebp
jne 0x4a546f
cmp dword [0x52661c], ebp
jne 0x4a546f
push 0x24
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x30], eax
cmp eax, ebp
mov byte [esp + 0x2a0], 1
je 0x4a5440
push ebp
mov ecx, eax
call fcn.00403720
jmp 0x4a5442
xor eax, eax
mov ecx, dword [0x5177d4]
mov byte [esp + 0x2a0], 0
push ecx
push 0x4036f0
mov ecx, 0x52b648
mov dword [0x52661c], eax
call fcn.00402160
mov dword [0x526620], 1
mov ebx, dword [0x52661c]
mov edx, dword [0x52d140]
mov ecx, 0x52d140
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2a0], 0xffffffff
call dword [edx + 8]
cmp ebx, ebp
mov dword [esp + 0x5c], ebx
je 0x4a54a0
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
cmp ebx, ebp
mov dword [esp + 0x2a0], 2
je 0x4a5a38
mov ecx, dword [ebx]
lea edx, [esp + 0x3c]
push esi
push edx
push ebx
call dword [ecx + 0x44]
mov eax, dword [ebx]
lea ecx, [esp + 0x38]
push ecx
push ebx
call dword [eax + 0x74]
mov edx, dword [esp + 0x40]
mov esi, dword [sym.imp.USER32.dll_CheckMenuRadioItem]
add edx, 0x4b2
push ebp
push edx
push 0x4b6
push 0x4b2
push edi
call esi
mov eax, dword [esp + 0x38]
push ebp
add eax, 0x4b7
push eax
push 0x4b9
push 0x4b7
push edi
call esi
mov edx, dword [0x52d100]
mov ecx, 0x52d100
mov dword [esp + 0x28], ebp
mov dword [esp + 0x1c], ecx
call dword [edx + 4]
mov eax, dword [0x52662c]
mov byte [esp + 0x2a4], 3
cmp eax, ebp
jne 0x4a5585
cmp dword [0x526628], ebp
jne 0x4a5585
push 0xb0
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebp
mov byte [esp + 0x2a4], 4
je 0x4a5557
push ebp
mov ecx, eax
call fcn.00404bd0
jmp 0x4a5559
xor eax, eax
mov dword [0x526628], eax
mov eax, dword [0x517cd8]
push eax
push 0x404ba0
mov ecx, 0x52b648
mov byte [esp + 0x2ac], 3
call fcn.00402160
mov dword [0x52662c], 1
mov edx, dword [0x52d100]
mov esi, dword [0x526628]
mov ecx, 0x52d100
mov byte [esp + 0x2a4], 2
call dword [edx + 8]
mov eax, dword [esi]
lea ecx, [esp + 0x28]
push ecx
push esi
call dword [eax + 0xa8]
cmp dword [esp + 0x28], ebp
je 0x4a55bc
push 0x400
jmp 0x4a55c1
push 0x403
push ebp
push edi
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov edx, dword [0x52d140]
mov ecx, 0x52d140
mov dword [esp + 0x30], ebp
mov dword [esp + 0x1c], 0x52d140
call dword [edx + 4]
mov eax, dword [0x526620]
mov byte [esp + 0x2a4], 5
cmp eax, ebp
jne 0x4a564e
cmp dword [0x52661c], ebp
jne 0x4a564e
push 0x24
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebp
mov byte [esp + 0x2a4], 6
je 0x4a5620
push ebp
mov ecx, eax
call fcn.00403720
jmp 0x4a5622
xor eax, eax
mov dword [0x52661c], eax
mov eax, dword [0x5177d4]
push eax
push 0x4036f0
mov ecx, 0x52b648
mov byte [esp + 0x2ac], 5
call fcn.00402160
mov dword [0x526620], 1
mov edx, dword [0x52d140]
mov esi, dword [0x52661c]
mov ecx, 0x52d140
mov byte [esp + 0x2a4], 2
call dword [edx + 8]
mov eax, dword [esi]
lea ecx, [esp + 0x30]
push ecx
push esi
call dword [eax + 0x1bc]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x199]
mov byte [esp + 0x198], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x95]
mov byte [esp + 0x94], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, dword [esp + 0x2ac]
lea edx, [esp + 0x198]
stosb byte es:[edi], al
lea eax, [esp + 0x64]
mov dword [esp + 0x64], 0x30
push eax
push ebp
push 0x42a
push ecx
mov dword [esp + 0x78], 0x40
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x98], edx
call dword [sym.imp.USER32.dll_GetMenuItemInfoA]
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x94]
cmp eax, ebp
mov edi, 0x521e50
jne 0x4a5702
mov edi, 0x521e44
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x521e40
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x19c]
push ecx
call dword [sym.imp.MSVCRT.dll__mbsstr]
add esp, 8
cmp eax, ebp
je 0x4a5767
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x94]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x2ac]
lea ecx, [esp + 0x64]
push ecx
push ebp
lea eax, [esp + 0x9c]
push 0x42a
push esi
mov dword [esp + 0x98], eax
call dword [sym.imp.USER32.dll_SetMenuItemInfoA]
push 5
push esi
call dword [sym.imp.USER32.dll_GetSubMenu]
mov edi, eax
cmp edi, ebp
je 0x4a5a1f
mov dword [esp + 0x20], ebp
mov edx, dword [ebx]
lea eax, [esp + 0x20]
push eax
push ebx
mov byte [esp + 0x2ac], 7
call dword [edx + 0x2c]
mov ecx, dword [esp + 0x20]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004ceb88
push 0x2e
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2a8], 8
call sub.MFC42.DLL_CString::ReverseFind
lea edx, [esp + 0x14]
push eax
push edx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2a8], 9
call fcn.004ceb40
lea ecx, [esp + 0x14]
mov byte [esp + 0x2a4], 8
call sub.MFC42.DLL_CString::CString
mov esi, dword [sym.imp.USER32.dll_RemoveMenu]
push 0x400
push 1
push edi
call esi
test eax, eax
je 0x4a582d
push 0x400
push 1
push edi
call esi
test eax, eax
jne 0x4a581f
push ebp
lea eax, [esp + 0x30]
push str.Skin.zip
push eax
call fcn.00420140
add esp, 0xc
lea ecx, [esp + 0x44]
mov byte [esp + 0x2a4], 0xa
mov dword [esp + 0x14], ebp
call sub.MFC42.DLL_CFileFind::CFileFind
mov ecx, dword [esp + 0x2c]
push ebp
push ecx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x2ac], 0xb
call sub.MFC42.DLL_CFileFind::FindFile
push ebp
push 0x9c3
push 0x9c3
push 0x9c3
push edi
mov esi, eax
call dword [sym.imp.USER32.dll_CheckMenuRadioItem]
cmp esi, ebp
je 0x4a59da
mov ebp, dword [sym.imp.MSVCRT.dll__mbsicmp]
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CFileFind::FindNextFileA
mov edx, dword [esp + 0x44]
push 0x10
lea ecx, [esp + 0x48]
mov dword [esp + 0x20], eax
call dword [edx + 0x40]
test eax, eax
jne 0x4a59cc
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x4a59cc
mov eax, dword [esp + 0x44]
push 2
lea ecx, [esp + 0x48]
call dword [eax + 0x40]
test eax, eax
jne 0x4a59cc
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4a58f6
push 0x5265c0
push 0
push 0x800
push edi
call dword [sym.imp.USER32.dll_AppendMenuA]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CFileFind::GetFileName
lea edx, [esp + 0x3c]
push 4
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x2ac], 0xc
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x51a340
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x3c]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4a59b7
push 0x2e
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReverseFind
push eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2a8], 0xd
call fcn.004ceb40
lea ecx, [esp + 0x24]
mov byte [esp + 0x2a4], 0xc
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push edx
lea esi, [ecx + 0x9c4]
push esi
push 0
push edi
call dword [sym.imp.USER32.dll_AppendMenuA]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x4a59b3
push eax
push esi
push esi
push 0x9c3
push edi
call dword [sym.imp.USER32.dll_CheckMenuRadioItem]
inc dword [esp + 0x14]
lea ecx, [esp + 0x10]
mov byte [esp + 0x2a4], 0xb
call sub.MFC42.DLL_CString::CString
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4a5893
xor ebp, ebp
lea ecx, [esp + 0x44]
mov byte [esp + 0x2a4], 0xa
call fcn.004cefba
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2a4], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x2a4], 7
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, dword [esp + 0x2ac]
mov eax, dword [0x51a2a0]
push ebp
push eax
push 0x805b
push 0x8054
push esi
call dword [sym.imp.USER32.dll_CheckMenuRadioItem]
pop esi
cmp ebx, ebp
mov dword [esp + 0x2a0], 0xffffffff
je 0x4a5a4d
mov ecx, dword [ebx]
push ebx
call dword [ecx + 8]
mov ecx, dword [esp + 0x298]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x298
ret