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

Disassembly:
push 0xffffffffffffffff
push 0x5b1e78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor ebx, ebx
push 0x1002
push str.c:_test.txt
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], ebx
call sub.MFC42.DLL_CFile::CFile_1
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x34], 1
mov ecx, dword [eax - 8]
push ecx
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFile::Write
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Close
mov esi, dword [esi + 8]
mov eax, dword [esi + 0x174]
mov dword [eax + 4], 1
mov ecx, dword [esi + 0x174]
mov ebp, dword [ecx + 0x18]
mov ecx, ebp
call fcn.004b9b30
push ecx
lea edx, [esp + 0x40]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
mov dword [ebp], 1
call sub.MFC42.DLL_CString::CString_2
call fcn.004ea100
mov dword [ebp + 4], eax
mov eax, dword [0x637760]
add esp, 4
cmp eax, ebx
je 0x4d1903
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4d1903
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 4]
mov edx, dword [esi + 0x78]
push eax
push str._RX_
push ebx
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x20], 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 0x4d1950
mov edx, dword [ebp + 4]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str._RX_
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 + 0x44], 2
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x631fb8]
mov byte [esp + 0x40], 1
call fcn.00401140
mov eax, dword [0x631fc0]
cmp eax, ebx
je 0x4d1a46
cmp dword [eax + 0x50], ebx
jle 0x4d1a46
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebx*4]
test edi, edi
je 0x4d1a3a
mov cl, byte [edi + 0x88]
test cl, cl
je 0x4d1a3a
call fcn.0044c4d0
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4d1a35
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4d1a35
mov ecx, dword [esi + 0x78]
add ecx, 0x3c
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x10]
mov byte [esp + 0x34], 3
mov eax, dword [edx - 8]
test eax, eax
je 0x4d1a27
mov al, byte [edi + 0x80]
test al, al
jne 0x4d1a27
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 0x4d1a27
mov ecx, dword [ebp + 4]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str._RX_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x78]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
mov byte [esp + 0x44], 4
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
mov byte [esp + 0x40], 3
call fcn.00402490
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fc0]
mov ecx, dword [eax + 0x50]
inc ebx
cmp ebx, ecx
jl 0x4d1966
push 6
mov ecx, esi
call fcn.004c5ab0
mov eax, dword [esi + 0x174]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, esi
call sym.ETermProxy.exe_public:_void___thiscall_CClientObject::StartTimer_void_
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 0
call sub.MFC42.DLL_CFile::CFile
lea ecx, [esp + 0x3c]
mov dword [esp + 0x34], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x28
ret 4