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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5ab9fa
push eax
mov dword fs:[0], esp
sub esp, 0x210
lea eax, [esp + 0x10]
push ebx
mov ebx, dword [esp + 0x224]
push ebp
push esi
push edi
mov edi, ecx
push eax
push ebx
mov esi, dword [edi + 4]
call fcn.00491b10
test al, al
jne 0x4920d4
mov eax, dword [esi + 0x7c]
mov edx, dword [esi]
inc eax
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, esi
call dword [edx + 0x90]
mov eax, dword [0x637760]
xor ebp, ebp
cmp eax, ebp
je 0x491f6e
mov cl, byte [eax + 0x40]
test cl, cl
je 0x491f6e
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x78]
lea edx, [esp + 0x20]
push edx
push str._RX_
push ebp
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 [0x637760]
push str.command
push str.esms
mov edx, dword [ecx + 0x44]
push edx
call fcn.004eb100
mov eax, dword [0x637760]
add esp, 0x1c
mov edx, dword [eax + 0x248]
lea ecx, [eax + 0x248]
call dword [edx + 0x1c]
call fcn.0044c4d0
mov eax, dword [eax + 0xd0]
cmp byte [eax], 0
je 0x491fc4
lea ecx, [esp + 0x20]
push ecx
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 + 0x238], ebp
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x631fb8]
mov dword [esp + 0x234], 0xffffffff
call fcn.00401140
mov eax, dword [0x631fc0]
mov ebx, 1
cmp eax, ebp
je 0x4920cd
cmp dword [eax + 0x50], ebp
jle 0x4920cd
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x4920c1
mov cl, byte [edi + 0x88]
test cl, cl
je 0x4920c1
call fcn.0044c4d0
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4920bc
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4920bc
mov ecx, dword [esi + 0x78]
add ecx, 0x3c
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x228], ebx
mov eax, dword [edx - 8]
test eax, eax
je 0x4920a8
mov al, byte [edi + 0x80]
test al, al
jne 0x4920a8
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 0x4920a8
lea ecx, [esp + 0x20]
push ecx
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 + 0x238], 2
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
mov byte [esp + 0x234], bl
call fcn.00402490
lea ecx, [esp + 0x1c]
mov dword [esp + 0x228], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fc0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x491fdf
mov al, bl
jmp 0x49218f
mov eax, dword [esi + 0x17c]
test eax, eax
jne 0x492118
push 0x1c
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0x228], 3
je 0x492105
push esi
mov ecx, eax
call fcn.004d0f70
jmp 0x492107
xor eax, eax
mov dword [esp + 0x228], 0xffffffff
mov dword [esi + 0x17c], eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov al, byte [edi + 0x20]
mov dword [esp + 0x228], 4
test al, al
je 0x492143
mov eax, dword [edi + 0x24]
lea ecx, [esp + 0x10]
push eax
push str.QRL__s
push ecx
jmp 0x492151
mov edx, dword [edi + 0x24]
lea eax, [esp + 0x10]
push edx
push str.QOL__s
push eax
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x17c]
add esp, 0xc
mov edx, dword [eax - 8]
push edx
push eax
call fcn.004d1060
push ebx
lea ecx, [esi + 0x11b0]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov al, 1
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x21c
ret 4