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

Disassembly:
push 0xffffffffffffffff
push 0x5adbb0
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 0x4b99b9
mov eax, dword [esi + 0x78]
cmp eax, ebp
je 0x4b99b9
mov cl, byte [eax + 0x226]
test cl, cl
je 0x4b99b9
mov eax, dword [esp + 0x2c]
push eax
call fcn.004a7bb0
add esp, 4
test al, al
je 0x4b99b9
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 0x4b95b5
push str._CTCM
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::Find_1
test eax, eax
jge 0x4b95b5
push 0x618990
jmp 0x4b95ec
mov al, byte [edi + 0x14]
test al, al
jne 0x4b95f5
push str._CTCT
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::Find_1
test eax, eax
jge 0x4b95f5
mov ecx, dword [esp + 0x28]
cmp dword [ecx - 8], ebp
je 0x4b95e7
push str.__CTCT
lea ecx, [esp + 0x2c]
call fcn.005928ca
jmp 0x4b95f5
push 0x61896c
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x28]
cmp dword [edx - 8], ebp
je 0x4b99ab
push 0x618968
lea ecx, [esp + 0x2c]
call fcn.005928ca
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 [0x635400]
cmp eax, ebp
je 0x4b968f
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4b968f
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 [0x635400]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb7d0
mov edx, dword [0x635400]
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 0x4b96dd
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 [0x62fc58]
mov byte [esp + 0x2c], 1
call fcn.00401140
mov eax, dword [0x62fc60]
cmp eax, ebp
je 0x4b97d4
cmp dword [eax + 0x50], ebp
jle 0x4b97d4
mov bl, 3
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x4b97c8
mov cl, byte [edi + 0x88]
test cl, cl
je 0x4b97c8
call fcn.0044c560
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4b97c3
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4b97c3
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 0x4b97b5
mov al, byte [edi + 0x80]
test al, al
jne 0x4b97b5
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 0x4b97b5
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 [0x62fc60]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x4b96f5
mov eax, dword [0x635400]
test eax, eax
je 0x4b983f
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4b983f
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 [0x635400]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb7d0
mov edx, dword [0x635400]
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 0x4b988d
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 [0x62fc58]
mov byte [esp + 0x2c], 1
call fcn.00401140
mov eax, dword [0x62fc60]
test eax, eax
je 0x4b9988
mov ecx, dword [eax + 0x50]
xor ebp, ebp
test ecx, ecx
jle 0x4b9988
mov bl, 6
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x4b997c
mov cl, byte [edi + 0x88]
test cl, cl
je 0x4b997c
call fcn.0044c560
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4b9977
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4b9977
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 0x4b9969
mov al, byte [edi + 0x80]
test al, al
jne 0x4b9969
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 0x4b9969
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 [0x62fc60]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x4b98a9
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 0x4b99cc
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