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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5b8228
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, ecx
cmp dword [edi + 0x78], esi
je 0x4c7fee
xor ebp, ebp
cmp esi, ebp
jne 0x4c7f8a
mov al, byte [edi + 0x119a]
mov bl, 1
cmp al, bl
jne 0x4c7f8a
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [edi + 0x78]
push ebp
push eax
lea ecx, [esp + 0x18]
push str._ENTER__d______d
push ecx
mov dword [esp + 0x3c], ebp
call sub.MFC42.DLL_CString::Format
mov eax, dword [0x641030]
add esp, 0x10
cmp eax, ebp
je 0x4c7e33
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4c7e33
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esp + 0x10]
lea eax, [edi + 0x1aa0]
push edx
push eax
push ebp
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x6255a8
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x641030]
push str.command
push str.esms
mov edx, dword [ecx + 0x44]
push edx
call fcn.004ed3c0
mov eax, dword [0x641030]
add esp, 0x1c
mov edx, dword [eax + 0x248]
lea ecx, [eax + 0x248]
call dword [edx + 0x1c]
call fcn.0044c9d0
mov eax, dword [eax + 0xd0]
cmp byte [eax], 0
je 0x4c7e80
mov ecx, dword [esp + 0x10]
lea edx, [edi + 0x1aa0]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x38], bl
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x6255a8
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63b908]
mov byte [esp + 0x38], 0
call fcn.00401140
mov eax, dword [0x63b910]
cmp eax, ebp
je 0x4c7f79
cmp dword [eax + 0x50], ebp
jle 0x4c7f79
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov ecx, dword [eax + 0x4c]
mov esi, dword [ecx + ebp*4]
test esi, esi
je 0x4c7f69
mov cl, byte [esi + 0x88]
test cl, cl
je 0x4c7f69
call fcn.0044c9d0
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4c7f64
mov eax, dword [esi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4c7f64
push 0x6255a8
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x2c], 2
mov eax, dword [ecx - 8]
test eax, eax
je 0x4c7f56
mov al, byte [esi + 0x80]
test al, al
jne 0x4c7f56
mov eax, dword [esi + 0x84]
push 0x6255a8
push eax
call ebx
add esp, 8
test eax, eax
jne 0x4c7f56
mov edx, dword [esp + 0x10]
lea eax, [edi + 0x1aa0]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x38], 3
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x6255a8
call sub.MFC42.DLL_CString::CString_3
mov ecx, esi
mov byte [esp + 0x38], 2
call fcn.00402460
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x63b910]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x4c7e9c
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, edi
mov dword [edi + 0x78], esi
call fcn.004cccc0
mov ebx, dword [edi + 0x78]
xor ecx, ecx
cmp ebx, 6
push 0
sete cl
inc ecx
push 0
push 0
push ecx
mov ecx, dword [0x63bc98]
push 0
push 2
push 0
push eax
call sub.MFC42.DLL_CListCtrl::SetItem
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
push esi
lea ecx, [esp + 0x1c]
push 0x60cd44
push ecx
mov dword [esp + 0x38], 4
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 4