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

Disassembly:
push 0xffffffffffffffff
push 0x5af4e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, dword [esp + 0x28]
xor ebp, ebp
cmp esi, ebp
mov dword [esp + 0x20], ebp
je 0x4b9339
mov eax, dword [esi + 0x78]
cmp eax, ebp
je 0x4b9339
mov cl, byte [eax + 0x226]
test cl, cl
je 0x4b9339
mov eax, dword [esp + 0x2c]
push eax
call fcn.004a7530
add esp, 4
test al, al
je 0x4b9339
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::MakeUpper
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_1
mov al, byte [edi + 0x13]
mov byte [esp + 0x20], 1
test al, al
jne 0x4b8f35
push str._CTCM
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::Find_1
test eax, eax
jge 0x4b8f35
push 0x61a690
jmp 0x4b8f6c
mov al, byte [edi + 0x14]
test al, al
jne 0x4b8f75
push str._CTCT
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::Find_1
test eax, eax
jge 0x4b8f75
mov ecx, dword [esp + 0x28]
cmp dword [ecx - 8], ebp
je 0x4b8f67
push str.__CTCT
lea ecx, [esp + 0x2c]
call fcn.0059429a
jmp 0x4b8f75
push 0x61a66c
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x28]
cmp dword [edx - 8], ebp
je 0x4b932b
push 0x61a668
lea ecx, [esp + 0x2c]
call fcn.0059429a
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
mov eax, dword [esi]
inc ecx
push ecx
push edx
mov ecx, esi
call dword [eax + 0x90]
mov eax, dword [0x637760]
cmp eax, ebp
je 0x4b900f
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4b900f
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x2c]
mov edx, dword [esi + 0x78]
push eax
push str._XX_
push ebp
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x637760]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb100
mov edx, dword [0x637760]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c4d0
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x4b905d
mov edx, dword [esp + 0x2c]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str._XX_
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esi + 0x78]
push ecx
add eax, 0x3c
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x631fb8]
mov byte [esp + 0x2c], 1
call fcn.00401140
mov eax, dword [0x631fc0]
cmp eax, ebp
je 0x4b9154
cmp dword [eax + 0x50], ebp
jle 0x4b9154
mov bl, 3
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x4b9148
mov cl, byte [edi + 0x88]
test cl, cl
je 0x4b9148
call fcn.0044c4d0
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4b9143
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4b9143
mov ecx, dword [esi + 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 + 0x20], bl
mov eax, dword [edx - 8]
test eax, eax
je 0x4b9135
mov al, byte [edi + 0x80]
test al, al
jne 0x4b9135
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 0x4b9135
mov ecx, dword [esp + 0x2c]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str._XX_
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 + 0x30], 4
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
mov byte [esp + 0x2c], bl
call fcn.00402490
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fc0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x4b9075
mov eax, dword [0x637760]
test eax, eax
je 0x4b91bf
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4b91bf
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x28]
mov edx, dword [esi + 0x78]
push eax
push str._IF_
push 0
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x637760]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb100
mov edx, dword [0x637760]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c4d0
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x4b920d
mov edx, dword [esp + 0x28]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str._IF_
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esi + 0x78]
push ecx
add eax, 0x3c
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
mov byte [esp + 0x30], 5
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x631fb8]
mov byte [esp + 0x2c], 1
call fcn.00401140
mov eax, dword [0x631fc0]
test eax, eax
je 0x4b9308
mov ecx, dword [eax + 0x50]
xor ebp, ebp
test ecx, ecx
jle 0x4b9308
mov bl, 6
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x4b92fc
mov cl, byte [edi + 0x88]
test cl, cl
je 0x4b92fc
call fcn.0044c4d0
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4b92f7
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4b92f7
mov ecx, dword [esi + 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 + 0x20], bl
mov eax, dword [edx - 8]
test eax, eax
je 0x4b92e9
mov al, byte [edi + 0x80]
test al, al
jne 0x4b92e9
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 0x4b92e9
mov ecx, dword [esp + 0x28]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str._IF_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x78]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
mov byte [esp + 0x30], 7
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
mov byte [esp + 0x2c], bl
call fcn.00402490
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fc0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x4b9229
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
jmp 0x4b934c
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x14
ret 0xc