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

Disassembly:
push 0xffffffffffffffff
push 0x549574
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push ebx
push ebp
mov ebp, dword [esp + 0xa4]
xor ebx, ebx
push esi
push edi
cmp ebp, ebx
mov edi, ecx
mov dword [esp + 0x40], str.ONSCRIPTLOAD
mov dword [esp + 0x44], str.ONSCRIPTEXIT
je 0x488504
push ebx
push ebp
call dword [ebp + 0x38]
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x488504
push ebp
call dword [ebp + 0x50]
add esp, 4
mov dword [esp + 0x34], eax
lea eax, [esp + 0x34]
lea ecx, [edi + 0x1c]
push eax
mov dword [esp + 0x3c], ebp
call fcn.00490c10
push esi
call dword [esi + 0x6c]
mov esi, dword [eax + 4]
add esp, 4
call sub.MFC42.DLL_AfxGetEmptyString
mov ecx, dword [eax]
push esi
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x14]
call fcn.0044fce0
lea ecx, [esp + 0x10]
mov dword [esp + 0xa4], ebx
call sub.MFC42.DLL_CString::MakeUpper
lea edx, [esp + 0x10]
push 0x3a
lea eax, [esp + 0x28]
push edx
push eax
call sub.MFC42.DLL_operator_3
lea ecx, [edi + 0xfc]
push eax
mov byte [esp + 0xa8], 1
call sub.MFC42.DLL_CString::operator_3
lea ecx, [esp + 0x24]
mov byte [esp + 0xa4], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [edi + 0x170]
xor edx, edx
mov esi, edx
push ebp
mov dword [esp + 0x3d], edx
mov dword [esp + 0x34], ecx
mov byte [esp + 0x38], 0x10
mov dword [esp + 0x3d], ebx
call dword [ebp + 0x58]
xor eax, esi
add esp, 4
and eax, 0xfffff
xor esi, eax
mov eax, dword [edi + 0x16c]
mov dword [esp + 0x35], esi
lea esi, [edi + 0x164]
push ebx
push eax
mov ecx, esi
call fcn.00491550
mov edx, dword [esp + 0x34]
lea ecx, [eax + 8]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x38]
mov dword [ecx + 4], edx
mov dl, byte [esp + 0x3c]
mov byte [ecx + 8], dl
mov ecx, dword [esi + 8]
cmp ecx, ebx
je 0x487ecb
mov dword [ecx], eax
jmp 0x487ece
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov eax, dword [edi + 0x16c]
add eax, 8
lea ecx, [edi + 0x1b8]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 2
jmp 0x487efc
xor ebx, ebx
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
push eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x4881c1
mov ecx, dword [esp + 0x20]
mov eax, dword [edi + 0x170]
mov dword [ecx], eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_4
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x28]
push edx
push eax
mov byte [esp + 0xac], 2
call fcn.004908a0
add esp, 8
mov ecx, dword [eax]
push str.F2730835_2229_445E_97C7_13F76l277lDA
push str.F2730835_2229_445E_97C7_l3F7612771DA
push str.F2730835_2229_445E_97C7_l3F7612771DA
push str.F2730835_2229_445E_97C7_13F76l2771DA
push str.F2730835_2229_445E_97C7_13F76l277lDA
push ecx
push str.F2730835_2229_445E_97C7_13F761277lDA
push str.F2730835_2229_445E_97C7_13F76l277lDA
lea edx, [esp + 0x34]
push str.Set__sNew__s__s:Set__s._s_s:Set__s_s
push edx
mov byte [esp + 0xcc], 3
call sub.MFC42.DLL_CString::Format_1
add esp, 0x28
lea ecx, [esp + 0x28]
mov byte [esp + 0xa4], 2
call sub.MFC42.DLL_CString::CString
cmp dword [edi + 0x13c], ebx
je 0x488080
xor eax, eax
mov dword [edi + 0x13c], ebx
mov ebx, eax
push ebp
mov dword [esp + 0x51], eax
mov eax, dword [edi + 0x18c]
mov byte [esp + 0x4c], 0x1e
mov dword [esp + 0x51], eax
call dword [ebp + 0x58]
mov ecx, dword [esi + 8]
add esp, 4
xor eax, ebx
and eax, 0xfffff
push 0
xor ebx, eax
push ecx
mov ecx, esi
mov dword [esp + 0x51], ebx
call fcn.00491550
mov ecx, dword [esp + 0x48]
lea edx, [eax + 8]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x4c]
mov dword [edx + 4], ecx
mov cl, byte [esp + 0x50]
mov byte [edx + 8], cl
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x488006
mov dword [ecx], eax
jmp 0x488009
mov dword [esi + 4], eax
lea edx, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov dword [esi + 8], eax
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa8], 4
mov eax, dword [eax - 8]
inc eax
push eax
push 0
call sub.MFC42.DLL_CString::GetBuffer
lea ecx, [esp + 0x34]
push eax
push ecx
mov ecx, 0x61bd58
call fcn.004bbb00
push eax
lea ecx, [edi + 0x180]
mov byte [esp + 0xa8], 5
call sub.MFC42.DLL_CStringList::AddTail
lea ecx, [esp + 0x2c]
mov byte [esp + 0xa4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0xa4], 2
call sub.MFC42.DLL_CString::CString
jmp 0x4880f1
mov eax, dword [edi + 0x18c]
xor edx, edx
mov ebx, edx
push ebp
mov dword [esp + 0x5d], edx
mov byte [esp + 0x58], 2
mov dword [esp + 0x5d], eax
call dword [ebp + 0x58]
xor eax, ebx
add esp, 4
and eax, 0xfffff
mov ecx, esi
xor ebx, eax
mov eax, dword [esi + 8]
push 0
push eax
mov dword [esp + 0x5d], ebx
call fcn.00491550
mov edx, dword [esp + 0x54]
lea ecx, [eax + 8]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x58]
mov dword [ecx + 4], edx
mov dl, byte [esp + 0x5c]
mov byte [ecx + 8], dl
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4880db
mov dword [ecx], eax
jmp 0x4880de
mov dword [esi + 4], eax
mov dword [esi + 8], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [edi + 0x180]
call sub.MFC42.DLL_CStringList::AddTail
mov eax, dword [edi + 0x170]
xor ecx, ecx
mov ebx, ecx
add eax, 2
mov dword [esp + 0x65], ecx
push ebp
mov byte [esp + 0x64], 0xc
mov dword [esp + 0x69], eax
call dword [ebp + 0x58]
mov edx, dword [esi + 8]
xor eax, ebx
add esp, 4
and eax, 0xfffff
xor ebx, eax
mov ecx, esi
push 0
push edx
mov dword [esp + 0x69], ebx
call fcn.00491550
mov edx, dword [esp + 0x60]
lea ecx, [eax + 8]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x64]
mov dword [ecx + 4], edx
mov dl, byte [esp + 0x68]
mov byte [ecx + 8], dl
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x48814f
mov dword [ecx], eax
jmp 0x488152
mov dword [esi + 4], eax
mov dword [esi + 8], eax
xor eax, eax
mov ebx, eax
push ebp
mov dword [esp + 0x75], eax
mov byte [esp + 0x70], 0x17
mov dword [esp + 0x75], eax
call dword [ebp + 0x58]
mov ecx, dword [esi + 8]
add esp, 4
xor eax, ebx
and eax, 0xfffff
push 0
xor ebx, eax
push ecx
mov ecx, esi
mov dword [esp + 0x75], ebx
call fcn.00491550
mov ecx, dword [esp + 0x6c]
lea edx, [eax + 8]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x70]
mov dword [edx + 4], ecx
mov cl, byte [esp + 0x74]
mov byte [edx + 8], cl
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4881aa
mov dword [ecx], eax
jmp 0x4881ad
mov dword [esi + 4], eax
lea ecx, [esp + 0x14]
mov dword [esi + 8], eax
mov byte [esp + 0xa4], 0
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov eax, 4
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edx
dec eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
jne 0x487efa
mov edx, dword [esp + 0x10]
mov esi, dword [edi + 0x170]
push edx
lea ecx, [edi + 0x70]
call sub.MFC42.DLL_CMapStringToPtr::operator__
mov dword [eax], esi
mov dword [esp + 0x78], 0x553334
lea ecx, [esp + 0x7c]
mov byte [esp + 0xa4], 6
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x88]
mov byte [esp + 0xa4], 7
call sub.MFC42.DLL_CStringArray::CStringArray
mov dword [esp + 0x78], 0x55b508
lea ecx, [esp + 0x10]
lea eax, [edi + 0x100]
push ecx
lea edx, [esp + 0x2c]
push eax
push edx
mov byte [esp + 0xb0], 8
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
mov byte [esp + 0xa4], 9
push eax
mov dword [esp + 0x30], eax
lea esi, [edi + 0x8c]
call sub.MFC42.DLL_HashKey
xor edx, edx
div dword [esi + 8]
mov eax, dword [esi + 4]
test eax, eax
je 0x4882d1
mov ebx, dword [eax + edx*4]
test ebx, ebx
je 0x4882d1
mov ecx, dword [esp + 0x2c]
mov eax, dword [ebx + 8]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x48829c
mov ebx, dword [ebx]
test ebx, ebx
jne 0x48827e
jmp 0x4882d1
test ebx, ebx
je 0x4882d1
lea edx, [ebx + 0x10]
lea ecx, [esp + 0x7c]
push edx
call sub.MFC42.DLL_CString::operator_3
mov eax, dword [ebx + 0x14]
add ebx, 0x1c
mov dword [esp + 0x80], eax
mov ecx, dword [ebx - 4]
mov dword [esp + 0x84], ecx
push ebx
lea ecx, [esp + 0x8c]
call sub.MFC42.DLL_CStringArray::Copy
lea ecx, [esp + 0x28]
mov byte [esp + 0xa4], 8
call sub.MFC42.DLL_CString::CString
mov eax, dword [edi + 0x170]
lea edx, [esp + 0x10]
mov dword [esp + 0x80], eax
lea eax, [edi + 0x100]
push edx
push eax
lea eax, [esp + 0x34]
push eax
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
mov byte [esp + 0xa4], 0xa
push eax
mov dword [esp + 0x28], eax
call sub.MFC42.DLL_HashKey
xor edx, edx
div dword [esi + 8]
mov eax, dword [esi + 4]
test eax, eax
mov dword [esp + 0x20], edx
je 0x488352
mov ebx, dword [eax + edx*4]
test ebx, ebx
je 0x488352
mov ecx, dword [esp + 0x24]
mov eax, dword [ebx + 8]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x48834e
mov ebx, dword [ebx]
test ebx, ebx
jne 0x488330
jmp 0x488352
test ebx, ebx
jne 0x488395
mov eax, dword [esi + 4]
test eax, eax
jne 0x488366
mov edx, dword [esi + 8]
push 1
push edx
mov ecx, esi
call fcn.0046fe70
mov ecx, esi
call fcn.0046fee0
mov ecx, dword [esp + 0x24]
mov ebx, eax
mov eax, dword [esp + 0x20]
push ecx
lea ecx, [ebx + 8]
mov dword [ebx + 4], eax
call fcn.0044fce0
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x20]
mov ecx, dword [edx + eax*4]
mov dword [ebx], ecx
mov edx, dword [esi + 4]
mov dword [edx + eax*4], ebx
lea eax, [esp + 0x7c]
lea ecx, [ebx + 0x10]
push eax
call sub.MFC42.DLL_CString::operator_3
mov ecx, dword [esp + 0x80]
lea eax, [esp + 0x88]
mov dword [ebx + 0x14], ecx
mov edx, dword [esp + 0x84]
push eax
lea ecx, [ebx + 0x1c]
mov dword [ebx + 0x18], edx
call sub.MFC42.DLL_CStringArray::Copy
lea ecx, [esp + 0x2c]
mov byte [esp + 0xa4], 8
call sub.MFC42.DLL_CString::CString
push ebp
mov esi, 1
call dword [ebp + 0x44]
add esp, 4
cmp eax, esi
jbe 0x488416
push esi
push ebp
call dword [ebp + 0x38]
add esp, 8
cmp esi, 1
mov ebx, eax
jne 0x488402
push ebx
call dword [ebx + 0x50]
add esp, 4
cmp eax, 0x66
je 0x48840a
push ebx
mov ecx, edi
call fcn.0048d8a0
push ebp
inc esi
call dword [ebp + 0x44]
add esp, 4
cmp esi, eax
jb 0x4883e7
push 0x617d8c
lea ecx, [edi + 0xfc]
call fcn.0044fce0
push ebp
mov ecx, edi
call fcn.00485280
mov eax, dword [edi + 0x28]
xor esi, esi
xor ebx, ebx
cmp eax, esi
je 0x48848c
mov ecx, dword [edi + 0x20]
mov edx, dword [ecx + 8]
mov dword [esp + 0x40], edx
mov eax, dword [ecx]
mov ebx, dword [ecx + 0xc]
cmp eax, esi
mov dword [edi + 0x20], eax
je 0x488454
mov dword [eax + 4], esi
jmp 0x488457
mov dword [edi + 0x24], esi
mov eax, dword [edi + 0x2c]
mov dword [ecx], eax
mov eax, dword [edi + 0x28]
dec eax
mov dword [edi + 0x2c], ecx
mov dword [edi + 0x28], eax
jne 0x48848c
mov eax, dword [edi + 0x20]
cmp eax, esi
je 0x488475
mov eax, dword [eax]
cmp eax, esi
jne 0x48846f
mov ecx, dword [edi + 0x30]
mov dword [edi + 0x28], esi
mov dword [edi + 0x2c], esi
mov dword [edi + 0x24], esi
mov dword [edi + 0x20], esi
call sub.MFC42.DLL_CPlex::FreeDataChain
mov dword [edi + 0x30], esi
cmp ebx, ebp
je 0x4884a7
push esi
push 0x45c
push 1
push ebp
call dword [ebp + 0x58]
add esp, 4
mov ecx, edi
push eax
call fcn.004838f0
push 1
mov ecx, edi
call fcn.00488530
mov edi, dword [edi + 0x170]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
sub edi, eax
mov dword [ecx + 5], edi
lea ecx, [esp + 0x88]
mov byte [esp + 0xa4], 0xc
call fcn.00450244
lea ecx, [esp + 0x7c]
mov byte [esp + 0xa4], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x78], 0x553334
mov dword [esp + 0xa4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x98
ret 4