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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5b36c8
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 0x4c72ce
xor ebp, ebp
cmp esi, ebp
jne 0x4c726a
mov al, byte [edi + 0x119a]
mov bl, 1
cmp al, bl
jne 0x4c726a
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 [0x63ac20]
add esp, 0x10
cmp eax, ebp
je 0x4c7113
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4c7113
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esp + 0x10]
lea eax, [edi + 0x1a90]
push edx
push eax
push ebp
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x61f48c
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63ac20]
push str.command
push str.esms
mov edx, dword [ecx + 0x44]
push edx
call fcn.004ec710
mov eax, dword [0x63ac20]
add esp, 0x1c
mov edx, dword [eax + 0x248]
lea ecx, [eax + 0x248]
call dword [edx + 0x1c]
call fcn.0044c870
mov eax, dword [eax + 0xd0]
cmp byte [eax], 0
je 0x4c7160
mov ecx, dword [esp + 0x10]
lea edx, [edi + 0x1a90]
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 0x61f48c
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x635478]
mov byte [esp + 0x38], 0
call fcn.00401160
mov eax, dword [0x635480]
cmp eax, ebp
je 0x4c7259
cmp dword [eax + 0x50], ebp
jle 0x4c7259
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov ecx, dword [eax + 0x4c]
mov esi, dword [ecx + ebp*4]
test esi, esi
je 0x4c7249
mov cl, byte [esi + 0x88]
test cl, cl
je 0x4c7249
call fcn.0044c870
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4c7244
mov eax, dword [esi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4c7244
push 0x61f48c
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 0x4c7236
mov al, byte [esi + 0x80]
test al, al
jne 0x4c7236
mov eax, dword [esi + 0x84]
push 0x61f48c
push eax
call ebx
add esp, 8
test eax, eax
jne 0x4c7236
mov edx, dword [esp + 0x10]
lea eax, [edi + 0x1a90]
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 0x61f48c
call sub.MFC42.DLL_CString::CString_3
mov ecx, esi
mov byte [esp + 0x38], 2
call fcn.004024f0
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x635480]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x4c717c
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.004cbf90
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 [0x635808]
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 0x606d44
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