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

Disassembly:
push 0xffffffffffffffff
push 0x5aa9d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
mov ebp, dword [ecx + 4]
mov dword [esp + 0x34], ecx
mov ecx, dword [ebp + 0x11f0]
push esi
lea eax, [ebp + 0x11f0]
xor esi, esi
mov edx, dword [ecx - 8]
push edi
cmp edx, esi
mov dword [esp + 0x1c], ebp
jne 0x485ce2
mov eax, dword [ebp + 0x78]
add eax, 0xc
push eax
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::CString_2
push 0x6147e8
lea ecx, [esp + 0x18]
mov dword [esp + 0x54], esi
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 1
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x24]
mov byte [esp + 0x50], 2
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x20]
mov byte [esp + 0x50], 3
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x44]
mov byte [esp + 0x50], 4
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x50], 5
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x40]
mov byte [esp + 0x50], 6
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [0x637770]
mov byte [esp + 0x50], 7
add edx, 0x210
xor edi, edi
push edx
mov dword [esp + 0x34], esi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x637770]
mov ecx, dword [eax + 0x2f0]
test ecx, ecx
jle 0x486073
mov eax, dword [eax + 0x2ec]
mov ecx, dword [esp + 0x38]
mov ebp, dword [eax + esi*4]
mov eax, dword [ebp + 4]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x485db7
mov eax, dword [0x637770]
inc esi
cmp esi, dword [eax + 0x2f0]
jl 0x485d85
jmp 0x48606f
mov ecx, dword [ebp + 0x20]
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
mov dword [esp + 0x30], ecx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x11b4], edx
sete bl
test ecx, ecx
jle 0x48606a
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x11b4]
lea edx, [eax + eax*4]
shl edx, 1
cmp edi, edx
jl 0x486061
lea eax, [eax + eax*4 + 5]
shl eax, 1
cmp edi, eax
jge 0x486061
mov ecx, dword [ebp + 0x1c]
mov esi, dword [ecx + edi*4]
lea ecx, [esp + 0x24]
mov edx, dword [esi + 0x70]
add edx, 0xa8
push edx
call sub.MFC42.DLL_CString::operator_1
lea eax, [esp + 0x24]
push 0xa
push eax
call fcn.004ec500
mov ecx, dword [esi + 0x70]
add esp, 8
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::operator_1
lea edx, [esp + 0x20]
push 0xa
push edx
call fcn.004ec500
add esp, 8
lea ecx, [esp + 0x10]
push 0x631fcc
call sub.MFC42.DLL_CString::operator
mov eax, dword [esi + 0x74]
add eax, 0xfffffffd
cmp eax, 0x1c
ja case.0x485e72.12
xor ecx, ecx
mov cl, byte [eax + 0x48639c]
jmp dword [ecx*4 + 0x486374]
push 0x6147e0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
jmp 0x485fa9
mov edx, dword [esi + 0x70]
mov al, byte [edx + 0xc9]
test al, al
je 0x485eb4
mov eax, dword [esi + 0x34]
mov ecx, dword [eax + 0x78]
mov edx, dword [eax + 0x7c]
cmp ecx, edx
jl 0x485eb4
push 0x6147d0
lea ecx, [esp + 0x14]
call fcn.005945ea
mov edx, dword [esi + 0x70]
mov al, byte [edx + 0xc8]
test al, al
je 0x485ee4
mov eax, dword [esi + 0x34]
mov ecx, dword [eax + 0x74]
mov edx, dword [eax + 0x6c]
add ecx, edx
mov edx, dword [eax + 0x70]
add edx, dword [eax + 0x68]
cmp ecx, edx
jl 0x485ee4
push 0x6147c0
lea ecx, [esp + 0x14]
call fcn.005945ea
cmp byte [esi + 0x12b], 1
jne 0x485efb
push 0x6147ac
lea ecx, [esp + 0x14]
call fcn.005945ea
mov al, byte [esi + 0x12a]
test al, al
jne 0x485f33
cmp byte [esi + 0xc34], 1
jne 0x485f15
push 0x614798
jmp 0x485f2a
cmp byte [esi + 0xc35], 1
jne 0x485f25
push 0x614788
jmp 0x485f2a
push 0x614778
lea ecx, [esp + 0x14]
call fcn.005945ea
mov eax, dword [esp + 0x10]
push 0x631fcc
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x485fa9
push 0x60f768
jmp 0x485fa0
push 0x61476c
jmp 0x485fa0
push 0x614760
jmp 0x485fa0
push 0x614754
jmp 0x485fa0
push 0x61474c
jmp 0x485fa0
push 0x614744
jmp 0x485fa0
push 0x614738
jmp 0x485fa0
mov al, byte [esi + 0x128]
test al, al
mov eax, 0x61472c
jne 0x485f8f
mov eax, 0x614720
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
jmp 0x485fa9
push 0x614714
lea ecx, [esp + 0x14]
call fcn.005945ea
lea ecx, [esp + 0x10]
push 0x12
push ecx
call fcn.004ec500
mov edx, dword [esi + 0x70]
add esp, 8
add edx, 0x48
lea ecx, [esp + 0x2c]
push edx
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x2c]
push 6
push eax
mov byte [esp + 0x58], 8
call fcn.004ec500
add esp, 8
lea ecx, [esi + 0xc28]
push ecx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x28]
push 7
push edx
mov byte [esp + 0x58], 9
call fcn.004ec500
mov eax, dword [esi + 0x34]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
add esp, 8
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x30]
push eax
push ecx
lea eax, [edi + 1]
push edx
push eax
lea ecx, [esp + 0x34]
push str.__4d__s__s__s__s__s__s_r
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x24
lea edx, [esp + 0x18]
lea ecx, [esp + 0x14]
push edx
call fcn.0059488a
lea ecx, [esp + 0x28]
mov byte [esp + 0x50], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x50], 7
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x30]
inc edi
cmp edi, ecx
jl 0x485de4
mov eax, dword [0x637770]
mov ebp, dword [esp + 0x1c]
lea ecx, [eax + 0x208]
mov eax, dword [eax + 0x208]
call dword [eax + 0x1c]
push str.____________________________________________________________________________r
lea ecx, [esp + 0x18]
call fcn.005945ea
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x34]
push ecx
push 0x6146ec
push edx
mov byte [esp + 0x5c], 0xa
call sub.MFC42.DLL_CString::Format
lea eax, [esp + 0x1c]
push 0x28
push eax
call fcn.004ec500
add esp, 0x14
mov edx, dword [esp + 0x30]
neg bl
sbb bl, bl
mov eax, dword [esp + 0x34]
and bl, 0xf5
add bl, 0x2b
movsx ecx, bl
push ecx
push edx
push eax
lea ecx, [esp + 0x24]
push 0x6146b0
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea edx, [esp + 0x18]
lea ecx, [esp + 0x14]
push edx
call fcn.0059488a
mov ecx, dword [esp + 0x14]
mov eax, dword [ebp]
push 0
push ecx
mov ecx, ebp
call dword [eax + 0x90]
mov eax, dword [0x637770]
test eax, eax
je 0x486176
mov cl, byte [eax + 0x40]
test cl, cl
je 0x486176
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 0x78]
push edx
push str._RX_
push 0
push ecx
add eax, 0x3c
mov ecx, esp
mov dword [esp + 0x40], 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 0x4861c4
mov ecx, dword [esp + 0x14]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str._RX_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [ebp + 0x78]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
mov byte [esp + 0x60], 0xb
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x631fc8]
mov byte [esp + 0x5c], 0xa
call fcn.00401160
mov eax, dword [0x631fd0]
test eax, eax
je 0x4862c0
mov ecx, dword [eax + 0x50]
xor edi, edi
test ecx, ecx
jle 0x4862c0
mov bl, 0xd
mov ecx, dword [eax + 0x4c]
mov esi, dword [ecx + edi*4]
test esi, esi
je 0x4862b4
mov cl, byte [esi + 0x88]
test cl, cl
je 0x4862b4
call fcn.0044c540
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4862af
mov eax, dword [esi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4862af
mov ecx, dword [ebp + 0x78]
add ecx, 0x3c
push ecx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x30]
mov byte [esp + 0x50], 0xc
mov eax, dword [edx - 8]
test eax, eax
je 0x4862a1
mov al, byte [esi + 0x80]
test al, al
jne 0x4862a1
mov eax, dword [ebp + 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 0x4862a1
mov ecx, dword [esp + 0x14]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str._RX_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [ebp + 0x78]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
mov byte [esp + 0x60], bl
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
mov byte [esp + 0x5c], 0xc
call fcn.00402500
lea ecx, [esp + 0x30]
mov byte [esp + 0x50], 0xa
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fd0]
mov ecx, dword [eax + 0x50]
inc edi
cmp edi, ecx
jl 0x4861e0
mov eax, dword [esp + 0x58]
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0x40]
call fcn.00466cf0
lea ecx, [esp + 0x34]
mov byte [esp + 0x50], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x50], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x50], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0x50], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x50], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x50], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x44
ret 4
into
mov dword [esp + 0x10], 0xffffffff
call fcn.00466c00
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret