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

Disassembly:
push 0xffffffffffffffff
push 0x48e0e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x50], esi
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0x64]
mov ecx, 0xb
xor eax, eax
mov dword [esp + 0x5c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [esp + 0x68]
mov ecx, 0xb9
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call dword [eax + 0x60]
cmp eax, 1
jne 0x475745
mov ebp, dword [sym.imp.Staff2.dll_class_CString___cdecl_STAFFGetFirstTokenAndRemove_class_CString___char_const__]
mov ebx, dword [sym.imp.MSVCRT.dll_atoi]
lea edx, [esp + 0x10]
push 0x3b
push edx
call dword [sym.imp.Staff2.dll_int___cdecl_STAFFRemoveComment_class_CString___char_]
mov eax, dword [esp + 0x18]
add esp, 8
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x47572e
mov edi, str.DefaultMopRegenOff
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.MSVCRT.dll__mbsicmp]
push str.DefaultMopRegenOff
push edx
mov byte [esp + 0x64], 1
call esi
add esp, 8
test eax, eax
je 0x47576d
mov eax, dword [esp + 0x14]
push str.MopRegenOnce
push eax
call esi
add esp, 8
test eax, eax
je 0x4757a2
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x475720
lea edx, [esp + 0x10]
push 0x49b074
lea eax, [esp + 0x1c]
push edx
push eax
call ebp
add esp, 0xc
mov edi, dword [esp + 0x18]
mov byte [esp + 0x5c], 2
cmp dword [edi - 8], 0x10
jg 0x475712
mov ecx, dword [esp + 0x64]
xor eax, eax
lea edx, [ecx + 1]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x475712
lea edx, [esp + 0x10]
push 0x49b074
lea eax, [esp + 0x24]
push edx
push eax
call ebp
mov eax, dword [eax]
push eax
call ebx
mov edi, dword [esp + 0x78]
add esp, 0x10
lea ecx, [esp + 0x20]
mov dword [edi], eax
call fcn.00489b20
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x475712
lea edx, [esp + 0x10]
push 0x49b074
lea eax, [esp + 0x28]
push edx
push eax
call ebp
mov eax, dword [eax]
push eax
call ebx
add esp, 0x10
lea ecx, [esp + 0x24]
mov dword [edi + 0x268], eax
call fcn.00489b20
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x475712
lea edx, [esp + 0x10]
push 0x49b074
lea eax, [esp + 0x2c]
push edx
push eax
call ebp
mov eax, dword [eax]
push eax
call ebx
add esp, 0x10
lea ecx, [esp + 0x28]
mov dword [edi + 0x26c], eax
call fcn.00489b20
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x475712
lea edx, [esp + 0x10]
push 0x49b074
lea eax, [esp + 0x30]
push edx
push eax
call ebp
mov eax, dword [eax]
push eax
call ebx
add esp, 0x10
lea ecx, [esp + 0x2c]
mov dword [edi + 0x270], eax
call fcn.00489b20
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x475712
lea edx, [esp + 0x10]
push 0x49b074
lea eax, [esp + 0x34]
push edx
push eax
call ebp
mov eax, dword [eax]
push eax
call ebx
add esp, 0x10
lea ecx, [esp + 0x30]
mov dword [edi + 0x274], eax
call fcn.00489b20
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x475712
lea edx, [esp + 0x10]
push 0x49b074
lea eax, [esp + 0x38]
push edx
push eax
call ebp
mov eax, dword [eax]
push eax
call ebx
mov esi, eax
add esp, 0x10
lea ecx, [esp + 0x34]
mov dword [esp + 0x44], esi
call fcn.00489b20
test esi, esi
jl 0x475712
cmp esi, 5
jg 0x475712
test esi, esi
mov dword [esp + 0x1c], 0
jle 0x47569d
lea esi, [edi + 0x10]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x47569d
lea edx, [esp + 0x10]
push 0x49b074
lea eax, [esp + 0x3c]
push edx
push eax
call ebp
mov eax, dword [eax]
push eax
call ebx
add esp, 0x10
lea ecx, [esp + 0x38]
mov byte [esi - 4], al
call fcn.00489b20
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x47569d
lea edx, [esp + 0x10]
push 0x49b074
lea eax, [esp + 0x40]
push edx
push eax
call ebp
mov eax, dword [eax]
push eax
call ebx
add esp, 0x10
lea ecx, [esp + 0x3c]
mov word [esi - 2], ax
call fcn.00489b20
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x47569d
lea edx, [esp + 0x10]
push 0x49b074
lea eax, [esp + 0x44]
push edx
push eax
call ebp
mov eax, dword [eax]
push eax
call ebx
add esp, 0x10
lea ecx, [esp + 0x40]
mov dword [esi], eax
call fcn.00489b20
mov al, byte [esi - 4]
cmp al, 5
jne 0x475685
cmp word [esi - 2], 0
jne 0x47565f
cmp dword [esp + 0x70], 1
jne 0x47565f
mov eax, 0x51eb851f
mul dword [esi]
shr edx, 5
mov dword [esi], edx
jne 0x475685
jmp 0x47567f
cmp al, 5
jne 0x475685
cmp word [esi - 2], 2
jne 0x475685
cmp dword [esp + 0x70], 1
jne 0x475685
mov eax, 0x51eb851f
mul dword [esi]
shr edx, 5
mov dword [esi], edx
jne 0x475685
mov dword [esi], 1
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x44]
inc eax
add esi, 0x10
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x47559e
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x475712
lea edx, [esp + 0x10]
push 0x49b074
lea eax, [esp + 0x4c]
push edx
push eax
call ebp
mov eax, dword [eax]
push eax
call ebx
add esp, 0x10
lea ecx, [esp + 0x48]
mov byte [edi + 0xec], al
call fcn.00489b20
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x475712
lea edx, [esp + 0x10]
push 0x49b074
lea eax, [esp + 0x50]
push edx
push eax
call ebp
mov eax, dword [eax]
push eax
call ebx
mov ecx, dword [esp + 0x7c]
add esp, 0x10
mov dword [ecx], eax
lea ecx, [esp + 0x4c]
call fcn.00489b20
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
jne 0x4757d5
lea ecx, [esp + 0x18]
mov byte [esp + 0x5c], 1
call fcn.00489b20
lea ecx, [esp + 0x14]
mov byte [esp + 0x5c], 0
call fcn.00489b20
mov ecx, dword [esp + 0x50]
lea edx, [esp + 0x10]
push edx
mov eax, dword [ecx]
call dword [eax + 0x60]
cmp eax, 1
je 0x475360
lea ecx, [esp + 0x10]
mov dword [esp + 0x5c], 0xffffffff
call fcn.00489b20
xor eax, eax
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret 0x10
mov eax, dword [esp + 0x64]
mov edi, str.MopRegenOff
or ecx, 0xffffffff
lea edx, [eax + 1]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x6c]
mov dword [ecx], 0
jmp 0x47580b
mov edx, dword [esp + 0x64]
mov edi, str.MopRegenOnce
or ecx, 0xffffffff
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x6c]
mov dword [ecx], 0
jmp 0x47580b
lea edx, [esp + 0x10]
push 0x49b074
lea eax, [esp + 0x68]
push edx
push eax
call ebp
mov eax, dword [eax]
push eax
call ebx
add esp, 0x10
lea ecx, [esp + 0x64]
mov dword [edi + 0x278], eax
call fcn.00489b20
lea ecx, [esp + 0x18]
mov byte [esp + 0x5c], 1
call fcn.00489b20
lea ecx, [esp + 0x14]
mov byte [esp + 0x5c], 0
call fcn.00489b20
lea ecx, [esp + 0x10]
mov dword [esp + 0x5c], 0xffffffff
call fcn.00489b20
mov eax, 1
jmp 0x475758