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

Disassembly:
push 0xffffffffffffffff
push 0x48e452
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x374
push ebx
mov ebx, ecx
push ebp
push esi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
xor ebp, ebp
push str.Config_rmServer.ini
lea eax, [esp + 0x10]
push ebp
push eax
mov dword [esp + 0x394], ebp
call dword [sym.imp.Staff2.dll_class_CString___cdecl_STAFFGetInstancePathAndFilename_struct_HINSTANCE_____char_const__]
mov eax, dword [eax]
lea ecx, [esp + 0x20]
push eax
push str.MopInfoPath
push str.MopServer
push ecx
mov byte [esp + 0x3a4], 1
call dword [sym.imp.Staff2.dll_class_CString___cdecl_STAFFGetPrivateProfilePath_char_const___char_const___char_const__]
mov esi, dword [esp + 0x3ac]
mov edx, dword [eax]
push esi
push edx
lea eax, [esp + 0x34]
push str._sMopSpc.rsm
push eax
mov byte [esp + 0x3b4], 2
call sub.MFC42.DLL_CString::Format
add esp, 0x2c
lea ecx, [esp + 0x14]
mov byte [esp + 0x388], 1
call fcn.00489b20
lea ecx, [esp + 0xc]
mov byte [esp + 0x388], 0
call fcn.00489b20
lea ecx, [esp + 0x28]
call fcn.004752a0
mov ecx, dword [esp + 0x10]
push ebp
push 0x4000
push ecx
lea ecx, [esp + 0x34]
mov byte [esp + 0x394], 3
call sub.MFC42.DLL_CStdioFile::Open
test eax, eax
jne 0x48259c
lea ecx, [esp + 0x28]
mov byte [esp + 0x388], al
call fcn.004752e0
lea ecx, [esp + 0x10]
mov dword [esp + 0x388], 0xffffffff
call fcn.00489b20
jmp 0x4828d3
mov edx, dword [ebx + 0x3c]
push edi
lea ecx, [esp + 0x70]
xor edi, edi
mov eax, dword [edx + 0x3664]
mov dword [esp + 0x18], ebp
push eax
lea eax, [esp + 0xa4]
push esi
push eax
push ecx
lea ecx, [esp + 0x3c]
call fcn.00475840
cmp eax, 1
jne 0x4828a4
lea edx, [esp + 0x71]
push str.MopRegenOff
push edx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x4825ef
mov dword [ebx + 0xb4], ebp
jmp 0x48285e
lea eax, [esp + 0x71]
push str.MopRegenOnce
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x482619
mov dword [ebx + 0xb4], ebp
mov dword [esp + 0x18], 1
jmp 0x48285e
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, edi
lea ecx, [esp + 0x71]
push eax
push ecx
lea edx, [esp + 0x18]
inc edi
push str._s__u
push edx
mov byte [esp + 0x39c], 4
mov dword [esp + 0x34], edi
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x20]
add esp, 0x10
cmp dword [eax - 8], 0x10
jle 0x482686
lea ecx, [esp + 0x28]
push 0x10
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x390], 5
call fcn.00489c52
lea ecx, [esp + 0x28]
mov byte [esp + 0x38c], 4
call fcn.00489b20
mov ecx, 0xb
lea esi, [esp + 0x70]
lea edi, [esp + 0x40]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x41]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x2e4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.MFC42.DLL_operatornew
mov ebp, eax
mov ecx, 0xb9
lea esi, [esp + 0xa4]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x34]
add esp, 4
lea ecx, [ebp + 0x268]
xor esi, esi
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp + 0x270], edx
lea edx, [esp + 0x1c]
mov dword [ebp + 0x274], eax
push edx
lea eax, [esp + 0x74]
mov dword [ecx], esi
push ecx
push eax
mov ecx, ebx
mov dword [ebp + 0x26c], esi
call fcn.00483230
test eax, eax
je 0x48288a
mov edx, dword [esp + 0x1c]
lea ecx, [ebp + 4]
mov dword [ebp + 4], edx
mov ax, word [esp + 0x20]
mov word [ecx + 4], ax
mov ecx, dword [ebp]
push ecx
lea ecx, [ebx + 0xbc]
call fcn.00476040
mov ecx, eax
cmp ecx, esi
je 0x482837
cmp byte [ecx], 0
je 0x482837
mov edx, dword [ecx + 0x3c]
mov dword [ebp + 0x2bc], edx
mov eax, dword [ecx + 0x40]
mov dword [ebp + 0x2c0], eax
mov al, byte [ebp + 0xec]
cmp al, 4
jne 0x482772
mov byte [esp + 0x66], 0x64
jmp 0x4827cc
mov eax, dword [ecx + 0x34]
cmp eax, esi
jle 0x48279f
lea edx, [eax - 1]
mov eax, 0x51eb851f
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
inc dl
cmp dl, 5
mov byte [esp + 0x66], dl
jle 0x4827cc
mov byte [esp + 0x66], 5
jmp 0x4827cc
jge 0x4827c7
lea edx, [eax + 1]
mov eax, 0x51eb851f
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
dec dl
cmp dl, 0xfb
mov byte [esp + 0x66], dl
jge 0x4827cc
mov byte [esp + 0x66], 0xfb
jmp 0x4827cc
mov byte [esp + 0x66], 0
push ecx
lea ecx, [esp + 0x20]
lea edx, [esp + 0x44]
push ecx
push edx
push ebp
mov ecx, ebx
call fcn.00479350
cmp dword [esp + 0x18], esi
jne 0x482805
mov eax, dword [ebp + 0x278]
mov ecx, ebx
push eax
call fcn.004828f0
mov dword [ebp + 0x170], eax
mov dword [ebp + 0x16c], 1
jmp 0x48281f
mov ecx, dword [ebp + 0x278]
push ecx
mov ecx, ebx
call fcn.004828f0
mov dword [ebp + 0x170], eax
mov dword [ebp + 0x16c], esi
lea edx, [esp + 0x1c]
push ebp
lea eax, [esp + 0x44]
push edx
push eax
lea ecx, [ebx + 0x40]
call fcn.0040a220
cmp eax, 1
je 0x482840
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x38c], 3
call fcn.00489b20
mov esi, dword [esp + 0x394]
mov edi, dword [esp + 0x24]
xor ebp, ebp
mov ecx, dword [ebx + 0x3c]
lea edx, [esp + 0xa0]
mov eax, dword [ecx + 0x3664]
lea ecx, [esp + 0x2c]
push eax
push esi
lea eax, [esp + 0x78]
push edx
push eax
call fcn.00475840
cmp eax, 1
je 0x4825cd
jmp 0x4828a4
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x38c], 3
call fcn.00489b20
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CStdioFile::Close
lea ecx, [esp + 0x2c]
mov byte [esp + 0x38c], 0
call fcn.004752e0
lea ecx, [esp + 0x14]
mov dword [esp + 0x38c], 0xffffffff
call fcn.00489b20
pop edi
mov ecx, dword [esp + 0x380]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x380
ret 4