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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a95d8
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
mov ebx, ecx
push esi
mov ecx, dword [0x635490]
push edi
mov edi, dword [ebx + 4]
push edi
call fcn.0058d470
test al, al
je 0x48a0e1
mov esi, dword [esp + 0x54]
mov ecx, ebx
push esi
call fcn.00489e00
cmp al, 1
jne 0x48a0e1
lea ecx, [esp + 0x1c]
call fcn.00465fb0
push ecx
add esi, 2
xor ebp, ebp
mov ecx, esp
mov dword [esp + 0x14], esp
push esi
mov dword [esp + 0x54], ebp
call sub.MFC42.DLL_CString::CString_3
lea eax, [esp + 0x58]
lea ecx, [esp + 0x20]
push eax
call fcn.004663f0
mov eax, dword [edi + 0x7c]
mov ecx, dword [esp + 0x54]
mov edx, dword [edi]
inc eax
push eax
push ecx
mov ecx, edi
mov byte [esp + 0x54], 1
call dword [edx + 0x90]
mov eax, dword [0x635490]
cmp eax, ebp
je 0x489f79
mov cl, byte [eax + 0x40]
test cl, cl
je 0x489f79
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esp + 0x54]
mov eax, dword [edi + 0x78]
push edx
push str._RX_
push ebp
push ecx
add eax, 0x3c
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x635490]
push str.command
push str.esms
mov edx, dword [ecx + 0x44]
push edx
call fcn.004eba10
mov eax, dword [0x635490]
add esp, 0x1c
mov edx, dword [eax + 0x248]
lea ecx, [eax + 0x248]
call dword [edx + 0x1c]
call fcn.0044c560
mov eax, dword [eax + 0xd0]
cmp byte [eax], 0
je 0x489fc7
mov ecx, dword [esp + 0x54]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str._RX_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [edi + 0x78]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
mov byte [esp + 0x5c], 2
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x62fce8]
mov byte [esp + 0x58], 1
call fcn.00401140
mov eax, dword [0x62fcf0]
cmp eax, ebp
je 0x48a0be
cmp dword [eax + 0x50], ebp
jle 0x48a0be
mov bl, 3
mov ecx, dword [eax + 0x4c]
mov esi, dword [ecx + ebp*4]
test esi, esi
je 0x48a0b2
mov cl, byte [esi + 0x88]
test cl, cl
je 0x48a0b2
call fcn.0044c560
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x48a0ad
mov eax, dword [esi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x48a0ad
mov ecx, dword [edi + 0x78]
add ecx, 0x3c
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x10]
mov byte [esp + 0x4c], bl
mov eax, dword [edx - 8]
test eax, eax
je 0x48a09f
mov al, byte [esi + 0x80]
test al, al
jne 0x48a09f
mov eax, dword [edi + 0x78]
mov ecx, dword [esi + 0x84]
mov eax, dword [eax + 0x3c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x48a09f
mov ecx, dword [esp + 0x54]
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 [edi + 0x78]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
mov byte [esp + 0x5c], 4
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
mov byte [esp + 0x58], bl
call fcn.004024b0
lea ecx, [esp + 0x10]
mov byte [esp + 0x4c], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x62fcf0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x489fdf
lea ecx, [esp + 0x54]
mov byte [esp + 0x4c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x4c], 0xffffffff
call fcn.00466030
mov al, 1
jmp 0x48a0e3
xor al, al
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x40
ret 4