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

Disassembly:
push 0xffffffffffffffff
push 0x5af820
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 0x4b96d9
mov eax, dword [esi + 0x78]
cmp eax, ebp
je 0x4b96d9
mov cl, byte [eax + 0x226]
test cl, cl
je 0x4b96d9
mov eax, dword [esp + 0x2c]
push eax
call fcn.004a78d0
add esp, 4
test al, al
je 0x4b96d9
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 0x4b92d5
push str._CTCM
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::Find_1
test eax, eax
jge 0x4b92d5
push 0x61a6f0
jmp 0x4b930c
mov al, byte [edi + 0x14]
test al, al
jne 0x4b9315
push str._CTCT
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::Find_1
test eax, eax
jge 0x4b9315
mov ecx, dword [esp + 0x28]
cmp dword [ecx - 8], ebp
je 0x4b9307
push str.__CTCT
lea ecx, [esp + 0x2c]
call fcn.005945ea
jmp 0x4b9315
push 0x61a6cc
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x28]
cmp dword [edx - 8], ebp
je 0x4b96cb
push 0x61a6c8
lea ecx, [esp + 0x2c]
call fcn.005945ea
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 [0x637770]
cmp eax, ebp
je 0x4b93af
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4b93af
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 [0x637770]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb4c0
mov edx, dword [0x637770]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c540
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x4b93fd
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 [0x631fc8]
mov byte [esp + 0x2c], 1
call fcn.00401160
mov eax, dword [0x631fd0]
cmp eax, ebp
je 0x4b94f4
cmp dword [eax + 0x50], ebp
jle 0x4b94f4
mov bl, 3
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x4b94e8
mov cl, byte [edi + 0x88]
test cl, cl
je 0x4b94e8
call fcn.0044c540
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4b94e3
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4b94e3
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 0x4b94d5
mov al, byte [edi + 0x80]
test al, al
jne 0x4b94d5
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 0x4b94d5
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.00402500
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fd0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x4b9415
mov eax, dword [0x637770]
test eax, eax
je 0x4b955f
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4b955f
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 [0x637770]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb4c0
mov edx, dword [0x637770]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c540
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x4b95ad
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 [0x631fc8]
mov byte [esp + 0x2c], 1
call fcn.00401160
mov eax, dword [0x631fd0]
test eax, eax
je 0x4b96a8
mov ecx, dword [eax + 0x50]
xor ebp, ebp
test ecx, ecx
jle 0x4b96a8
mov bl, 6
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x4b969c
mov cl, byte [edi + 0x88]
test cl, cl
je 0x4b969c
call fcn.0044c540
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4b9697
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4b9697
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 0x4b9689
mov al, byte [edi + 0x80]
test al, al
jne 0x4b9689
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 0x4b9689
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.00402500
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fd0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x4b95c9
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 0x4b96ec
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