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

Disassembly:
push 0xffffffffffffffff
push 0x5adf90
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 0x4b9bd9
mov eax, dword [esi + 0x78]
cmp eax, ebp
je 0x4b9bd9
mov cl, byte [eax + 0x226]
test cl, cl
je 0x4b9bd9
mov eax, dword [esp + 0x2c]
push eax
call fcn.004a7dd0
add esp, 4
test al, al
je 0x4b9bd9
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 0x4b97d5
push str._CTCM
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::Find_1
test eax, eax
jge 0x4b97d5
push 0x6189a0
jmp 0x4b980c
mov al, byte [edi + 0x14]
test al, al
jne 0x4b9815
push str._CTCT
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::Find_1
test eax, eax
jge 0x4b9815
mov ecx, dword [esp + 0x28]
cmp dword [ecx - 8], ebp
je 0x4b9807
push str.__CTCT
lea ecx, [esp + 0x2c]
call fcn.00592caa
jmp 0x4b9815
push 0x61897c
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x28]
cmp dword [edx - 8], ebp
je 0x4b9bcb
push 0x618978
lea ecx, [esp + 0x2c]
call fcn.00592caa
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 [0x635490]
cmp eax, ebp
je 0x4b98af
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4b98af
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 [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 0x4b98fd
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 [0x62fce8]
mov byte [esp + 0x2c], 1
call fcn.00401140
mov eax, dword [0x62fcf0]
cmp eax, ebp
je 0x4b99f4
cmp dword [eax + 0x50], ebp
jle 0x4b99f4
mov bl, 3
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x4b99e8
mov cl, byte [edi + 0x88]
test cl, cl
je 0x4b99e8
call fcn.0044c560
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4b99e3
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4b99e3
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 0x4b99d5
mov al, byte [edi + 0x80]
test al, al
jne 0x4b99d5
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 0x4b99d5
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.004024b0
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x62fcf0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x4b9915
mov eax, dword [0x635490]
test eax, eax
je 0x4b9a5f
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4b9a5f
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 [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 0x4b9aad
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 [0x62fce8]
mov byte [esp + 0x2c], 1
call fcn.00401140
mov eax, dword [0x62fcf0]
test eax, eax
je 0x4b9ba8
mov ecx, dword [eax + 0x50]
xor ebp, ebp
test ecx, ecx
jle 0x4b9ba8
mov bl, 6
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x4b9b9c
mov cl, byte [edi + 0x88]
test cl, cl
je 0x4b9b9c
call fcn.0044c560
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4b9b97
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4b9b97
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 0x4b9b89
mov al, byte [edi + 0x80]
test al, al
jne 0x4b9b89
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 0x4b9b89
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.004024b0
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x62fcf0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x4b9ac9
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 0x4b9bec
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