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

Disassembly:
push 0xffffffffffffffff
push 0x5a9578
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, dword [ecx + 4]
push edi
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CStringArray::CStringArray
xor ebp, ebp
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], ebp
call sub.MFC42.DLL_CString::CString_1
push 5
push 1
lea eax, [esp + 0x18]
push 0x613a84
push eax
mov byte [esp + 0x4c], 1
mov edi, 2
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x38]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
mov eax, dword [0x635490]
mov cl, byte [eax + 0x1d]
test cl, cl
je 0x4899b4
push 5
push 2
lea ecx, [esp + 0x18]
push 0x6138d8
push ecx
mov edi, 3
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x38]
add esp, 0x10
lea edx, [esp + 0x10]
lea ecx, [esp + 0x20]
push edx
push eax
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
mov eax, edi
push 5
push eax
lea ecx, [esp + 0x18]
push 0x6135cc
push ecx
inc edi
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x38]
add esp, 0x10
lea edx, [esp + 0x10]
lea ecx, [esp + 0x20]
push edx
push eax
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
mov eax, edi
push 5
push eax
lea ecx, [esp + 0x18]
push 0x6133f0
push ecx
inc edi
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x38]
add esp, 0x10
lea edx, [esp + 0x10]
lea ecx, [esp + 0x20]
push edx
push eax
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
mov eax, edi
push 5
push eax
lea ecx, [esp + 0x18]
push 0x613168
push ecx
inc edi
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x38]
add esp, 0x10
lea edx, [esp + 0x10]
lea ecx, [esp + 0x20]
push edx
push eax
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
mov ecx, dword [0x635490]
mov al, byte [ecx + 0x1d]
test al, al
jne 0x489a6a
push 5
push edi
lea edx, [esp + 0x18]
push 0x612e24
push edx
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x38]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
mov ecx, dword [esi + 0x11b4]
mov eax, 4
cmp ecx, eax
jl 0x489a7f
mov dword [esi + 0x11b4], eax
mov edx, dword [esi + 0x11b4]
mov eax, dword [esp + 0x24]
push ebp
mov ecx, esi
mov eax, dword [eax + edx*4]
mov edx, dword [esi]
push eax
call dword [edx + 0x90]
mov eax, dword [0x635490]
cmp eax, ebp
je 0x489b0b
mov cl, byte [eax + 0x40]
test cl, cl
je 0x489b0b
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x11b4]
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 0x78]
mov eax, dword [ecx + eax*4]
add edx, 0x3c
push eax
push str._RX_
push ebp
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x635490]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eba10
mov edx, dword [0x635490]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c560
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x489b62
mov edx, dword [esi + 0x11b4]
mov eax, dword [esp + 0x24]
mov eax, dword [eax + edx*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 byte [esp + 0x4c], 2
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x62fce8]
mov byte [esp + 0x48], 1
call fcn.00401140
mov eax, dword [0x62fcf0]
cmp eax, ebp
je 0x489c64
cmp dword [eax + 0x50], ebp
jle 0x489c64
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x489c58
mov cl, byte [edi + 0x88]
test cl, cl
je 0x489c58
call fcn.0044c560
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x489c53
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x489c53
mov ecx, dword [esi + 0x78]
add ecx, 0x3c
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x14]
mov byte [esp + 0x3c], 3
mov eax, dword [edx - 8]
test eax, eax
je 0x489c45
mov al, byte [edi + 0x80]
test al, al
jne 0x489c45
mov eax, dword [esi + 0x78]
mov ecx, dword [edi + 0x84]
mov eax, dword [eax + 0x3c]
push eax
push ecx
call ebx
add esp, 8
test eax, eax
jne 0x489c45
mov ecx, dword [esi + 0x11b4]
mov edx, dword [esp + 0x24]
mov eax, dword [edx + ecx*4]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str._RX_
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esi + 0x78]
push ecx
add eax, 0x3c
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
mov byte [esp + 0x4c], 4
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
mov byte [esp + 0x48], 3
call fcn.004024b0
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x62fcf0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x489b7e
mov ecx, dword [esp + 0x44]
push ecx
lea ecx, [esi + 0x11b0]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00592f92
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x30
ret 4