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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5ac500
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
mov ebp, ecx
xor ebx, ebx
mov esi, dword [ebp]
cmp edi, ebx
je 0x4952fd
push edi
call fcn.00495370
test al, al
jne 0x495304
mov eax, dword [esi + 0x7c]
mov edx, dword [esi]
inc eax
mov dword [esi + 0x7c], eax
mov ecx, dword [ebp + 4]
push eax
push ecx
mov ecx, esi
call dword [edx + 0x90]
mov eax, dword [0x637770]
cmp eax, ebx
je 0x4951ac
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4951ac
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 4]
push eax
mov eax, dword [esi + 0x78]
push str._RX_
push ebx
push ecx
add eax, 0x3c
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x637770]
push str.command
push str.esms
mov edx, dword [ecx + 0x44]
push edx
call fcn.004eb4c0
mov eax, dword [0x637770]
add esp, 0x1c
mov edx, dword [eax + 0x248]
lea ecx, [eax + 0x248]
call dword [edx + 0x1c]
call fcn.0044c540
mov eax, dword [eax + 0xd0]
cmp byte [eax], 0
je 0x4951fb
mov eax, dword [ebp + 4]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str._RX_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x78]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
mov dword [esp + 0x34], ebx
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x631fc8]
mov dword [esp + 0x30], 0xffffffff
call fcn.00401160
mov eax, dword [0x631fd0]
cmp eax, ebx
je 0x4952f9
mov ecx, dword [eax + 0x50]
test ecx, ecx
jle 0x4952f9
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebx*4]
test edi, edi
je 0x4952ed
mov cl, byte [edi + 0x88]
test cl, cl
je 0x4952ed
call fcn.0044c540
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4952e8
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4952e8
mov ecx, dword [esi + 0x78]
add ecx, 0x3c
push ecx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x24], 1
mov eax, dword [edx - 8]
test eax, eax
je 0x4952d7
mov al, byte [edi + 0x80]
test al, al
jne 0x4952d7
mov eax, dword [esi + 0x78]
mov ecx, dword [edi + 0x84]
mov eax, dword [eax + 0x3c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x4952d7
mov eax, dword [ebp + 4]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str._RX_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x78]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
mov byte [esp + 0x34], 2
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
mov byte [esp + 0x30], 1
call fcn.00402500
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fd0]
mov ecx, dword [eax + 0x50]
inc ebx
cmp ebx, ecx
jl 0x495213
xor al, al
jmp 0x495352
mov eax, 0x631fcc
jmp 0x495306
mov eax, edi
mov ecx, dword [esi + 0x180]
push eax
add ecx, 0x14
call sub.MFC42.DLL_CString::operator
cmp edi, ebx
lea ecx, [esp + 0x10]
setne al
push eax
push ecx
mov ecx, ebp
call fcn.004958a0
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push ebx
push eax
mov ecx, esi
mov dword [esp + 0x2c], 3
call dword [edx + 0x98]
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov al, 1
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret 4