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

Disassembly:
push 0xffffffffffffffff
push 0x598df0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd4
push ebx
mov ebx, dword [esp + 0xe8]
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0xb4]
mov dword [esp + 0xa4], str.ONSCRIPTLOAD
mov dword [esp + 0xa8], str.ONSCRIPTEXIT
mov dword [esp + 0xac], 0x639dc4
mov dword [esp + 0xb0], str.ONTHREADEXIT
test ebx, ebx
rep stosd dword es:[edi], eax
je 0x4a91ae
push eax
push ebx
call dword [ebx + 0x38]
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x4a91ae
push ebx
call dword [ebx + 0x50]
lea esi, [ebp + 0x1c]
add esp, 4
mov edi, eax
mov ecx, esi
mov eax, dword [esi + 4]
push eax
push 0
call fcn.004b3b20
mov dword [eax + 8], edi
mov dword [eax + 0xc], ebx
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4a89ab
mov dword [ecx + 4], eax
jmp 0x4a89ae
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, ebp
mov dword [esi + 4], eax
call fcn.004b3490
lea ecx, [esp + 0x10]
mov dword [esp + 0xec], 0
call sub.MFC42.DLL_CString::MakeUpper
mov eax, dword [esp + 0x10]
push 0x639dc4
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x4a8a09
push eax
push 0x4fc
push 1
push ebx
call dword [ebx + 0x58]
add esp, 4
mov ecx, ebp
push eax
call fcn.004a2da0
jmp 0x4a919a
lea ecx, [esp + 0x10]
push 0x3a
lea edx, [esp + 0x18]
push ecx
push edx
call sub.MFC42.DLL_operator_1
lea ecx, [ebp + 0x13c]
push eax
mov byte [esp + 0xf0], 1
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0xec], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 0x1b8]
xor esi, esi
mov dword [esp + 0x21], esi
push ebx
mov dword [esp + 0x7c], eax
mov edi, esi
mov byte [esp + 0x20], 0x10
mov dword [esp + 0x25], esi
call dword [ebx + 0x58]
mov ecx, dword [ebp + 0x180]
mov edx, dword [ebp + 0x1b4]
xor ecx, esi
xor eax, edi
and ecx, 1
add esp, 4
xor esi, ecx
and eax, 0xfffff
mov dword [esp + 0x25], esi
lea esi, [ebp + 0x1ac]
xor edi, eax
push 0
push edx
mov ecx, esi
mov dword [esp + 0x25], edi
call fcn.004a2810
mov edx, dword [esp + 0x1c]
lea ecx, [eax + 8]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x20]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x24]
mov dword [ecx + 8], edx
mov dl, byte [esp + 0x28]
mov byte [ecx + 0xc], dl
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4a8abf
mov dword [ecx], eax
jmp 0x4a8ac2
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x1b4]
add eax, 8
lea ecx, [ebp + 0x200]
mov dword [esp + 0x74], eax
lea eax, [esp + 0xa4]
mov dword [ebp + 0x180], 0
mov dword [esp + 0x34], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], 0x10
mov edx, dword [esp + 0x34]
mov eax, dword [edx]
test eax, eax
je 0x4a8e3f
push eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x4a8e3f
mov ecx, dword [esp + 0x18]
mov eax, dword [ebp + 0x1b8]
mov dword [ecx], eax
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x2c]
push edx
push eax
mov byte [esp + 0xf4], 2
call fcn.004b3240
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 + 0x50]
push str.Set__sNew__s__s:Set__s._s_s:Set__s_s
push edx
mov byte [esp + 0x114], 3
call sub.MFC42.DLL_CString::Format
add esp, 0x28
lea ecx, [esp + 0x2c]
mov byte [esp + 0xec], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 0x17c]
test eax, eax
je 0x4a8caa
mov dword [ebp + 0x17c], 0
mov eax, dword [ebp + 0x1d4]
xor edi, edi
push ebx
mov dword [esp + 0x5d], edi
mov dword [esp + 0x59], edi
mov byte [esp + 0x58], 0x1e
mov dword [esp + 0x5d], eax
call dword [ebx + 0x58]
mov ecx, edi
add esp, 4
xor eax, ecx
and eax, 0xfffff
push 0
xor ecx, eax
mov eax, dword [ebp + 0x180]
xor eax, edi
mov dword [esp + 0x59], ecx
mov ecx, dword [esi + 8]
and eax, 1
xor edi, eax
push ecx
mov ecx, esi
mov dword [esp + 0x65], edi
call fcn.004a2810
mov ecx, dword [esp + 0x54]
lea edx, [eax + 8]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x58]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x5c]
mov dword [edx + 8], ecx
mov cl, byte [esp + 0x60]
mov byte [edx + 0xc], cl
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4a8c2d
mov dword [ecx], eax
jmp 0x4a8c30
mov dword [esi + 4], eax
lea edx, [esp + 0x30]
lea ecx, [esp + 0x38]
push edx
mov dword [esi + 8], eax
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x38]
push 0
lea ecx, [esp + 0x3c]
mov byte [esp + 0xf0], 4
mov eax, dword [eax - 8]
inc eax
push eax
push 0
call sub.MFC42.DLL_CString::GetBuffer
lea ecx, [esp + 0x44]
push eax
push ecx
mov ecx, 0x65cb40
call fcn.004ccc60
push eax
lea ecx, [ebp + 0x1c8]
mov byte [esp + 0xf0], 5
call sub.MFC42.DLL_CStringList::AddTail
lea ecx, [esp + 0x3c]
mov byte [esp + 0xec], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0xec], 2
call sub.MFC42.DLL_CString::CString
jmp 0x4a8d37
mov eax, dword [ebp + 0x1d4]
xor edi, edi
mov dword [esp + 0x69], edi
push ebx
mov dword [esp + 0x69], edi
mov byte [esp + 0x68], 2
mov dword [esp + 0x6d], eax
call dword [ebx + 0x58]
mov edx, dword [ebp + 0x180]
mov ecx, edi
xor eax, ecx
xor edx, edi
and eax, 0xfffff
add esp, 4
xor ecx, eax
mov eax, dword [esi + 8]
and edx, 1
mov dword [esp + 0x65], ecx
xor edi, edx
push 0
push eax
mov ecx, esi
mov dword [esp + 0x75], edi
call fcn.004a2810
mov edx, dword [esp + 0x64]
lea ecx, [eax + 8]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x68]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x6c]
mov dword [ecx + 8], edx
mov dl, byte [esp + 0x70]
mov byte [ecx + 0xc], dl
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4a8d21
mov dword [ecx], eax
jmp 0x4a8d24
mov dword [esi + 4], eax
mov dword [esi + 8], eax
lea eax, [esp + 0x30]
push eax
lea ecx, [ebp + 0x1c8]
call sub.MFC42.DLL_CStringList::AddTail
mov eax, dword [ebp + 0x1b8]
xor edi, edi
add eax, 2
mov dword [esp + 0x49], edi
push ebx
mov dword [esp + 0x49], edi
mov byte [esp + 0x48], 0xc
mov dword [esp + 0x4d], eax
call dword [ebx + 0x58]
mov ecx, edi
mov edx, dword [esi + 8]
xor eax, ecx
add esp, 4
and eax, 0xfffff
xor ecx, eax
push 0
mov dword [esp + 0x49], ecx
mov ecx, dword [ebp + 0x180]
xor ecx, edi
push edx
and ecx, 1
xor edi, ecx
mov ecx, esi
mov dword [esp + 0x55], edi
call fcn.004a2810
mov edx, dword [esp + 0x44]
lea ecx, [eax + 8]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x48]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x4c]
mov dword [ecx + 8], edx
mov dl, byte [esp + 0x50]
mov byte [ecx + 0xc], dl
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4a8db1
mov dword [ecx], eax
jmp 0x4a8db4
mov dword [esi + 4], eax
xor edi, edi
push ebx
mov dword [esp + 0x25], edi
mov dword [esi + 8], eax
mov dword [esp + 0x21], edi
mov byte [esp + 0x20], 0x17
mov dword [esp + 0x25], edi
call dword [ebx + 0x58]
mov ecx, edi
add esp, 4
xor eax, ecx
and eax, 0xfffff
push 0
xor ecx, eax
mov eax, dword [ebp + 0x180]
xor eax, edi
mov dword [esp + 0x21], ecx
mov ecx, dword [esi + 8]
and eax, 1
xor edi, eax
push ecx
mov ecx, esi
mov dword [esp + 0x2d], edi
call fcn.004a2810
mov ecx, dword [esp + 0x1c]
lea edx, [eax + 8]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x20]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x24]
mov dword [edx + 8], ecx
mov cl, byte [esp + 0x28]
mov byte [edx + 0xc], cl
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4a8e28
mov dword [ecx], eax
jmp 0x4a8e2b
mov dword [esi + 4], eax
lea ecx, [esp + 0x30]
mov dword [esi + 8], eax
mov byte [esp + 0xec], 0
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x18]
mov eax, 4
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], edx
dec eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
jne 0x4a8af9
mov edx, dword [esp + 0x10]
mov esi, dword [ebp + 0x1b8]
push edx
lea ecx, [ebp + 0x78]
call sub.MFC42.DLL_CMapStringToPtr::operator__
mov dword [eax], esi
mov dword [esp + 0x7c], 0x5a42c0
lea ecx, [esp + 0x80]
mov byte [esp + 0xec], 6
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x84]
mov byte [esp + 0xec], 7
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x90]
mov byte [esp + 0xec], 8
call sub.MFC42.DLL_CStringArray::CStringArray
xor edi, edi
mov dword [esp + 0x7c], 0x5a5140
mov dword [esp + 0x88], edi
mov dword [esp + 0x8c], edi
lea ecx, [esp + 0x10]
lea eax, [ebp + 0x140]
push ecx
lea edx, [esp + 0x30]
push eax
push edx
mov byte [esp + 0xf8], 9
call sub.MFC42.DLL_operator_3
mov eax, dword [eax]
mov byte [esp + 0xec], 0xa
push eax
mov dword [esp + 0x40], eax
lea esi, [ebp + 0x94]
call sub.MFC42.DLL_HashKey
xor edx, edx
div dword [esi + 8]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4a8f52
mov edi, dword [eax + edx*4]
test edi, edi
je 0x4a8f52
mov ecx, dword [esp + 0x3c]
mov eax, dword [edi + 8]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x4a8f41
mov edi, dword [edi]
test edi, edi
jne 0x4a8f23
jmp 0x4a8f52
test edi, edi
je 0x4a8f52
add edi, 0xc
lea ecx, [esp + 0x7c]
push edi
call fcn.00464230
lea ecx, [esp + 0x2c]
mov byte [esp + 0xec], 9
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 0x1b8]
lea edx, [esp + 0x10]
mov dword [esp + 0x88], eax
lea eax, [ebp + 0x140]
push edx
push eax
lea eax, [esp + 0x34]
push eax
call sub.MFC42.DLL_operator_3
mov eax, dword [eax]
mov byte [esp + 0xec], 0xb
push eax
mov dword [esp + 0x18], eax
call sub.MFC42.DLL_HashKey
xor edx, edx
div dword [esi + 8]
mov eax, dword [esi + 4]
test eax, eax
mov dword [esp + 0x18], edx
je 0x4a8fd3
mov edi, dword [eax + edx*4]
test edi, edi
je 0x4a8fd3
mov ecx, dword [esp + 0x14]
mov eax, dword [edi + 8]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x4a8fcf
mov edi, dword [edi]
test edi, edi
jne 0x4a8fb1
jmp 0x4a8fd3
test edi, edi
jne 0x4a9040
mov eax, dword [esi + 4]
test eax, eax
jne 0x4a9011
mov eax, dword [esi + 8]
mov dword [esp + 0x3c], eax
lea edi, [eax*4]
push edi
call sub.MFC42.DLL_operatornew
mov edx, eax
mov ecx, edi
mov dword [esi + 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x3c]
mov dword [esi + 8], eax
mov ecx, esi
call fcn.00401758
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov edi, eax
push edx
mov dword [edi + 4], ecx
lea ecx, [edi + 8]
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esi + 4]
mov eax, dword [esp + 0x18]
mov edx, dword [ecx + eax*4]
mov dword [edi], edx
mov ecx, dword [esi + 4]
mov dword [ecx + eax*4], edi
lea edx, [esp + 0x7c]
lea ecx, [edi + 0xc]
push edx
call fcn.00464230
lea ecx, [esp + 0x2c]
mov byte [esp + 0xec], 9
call sub.MFC42.DLL_CString::CString
push ebx
mov esi, 1
call dword [ebx + 0x44]
add esp, 4
cmp eax, esi
jbe 0x4a909d
push esi
push ebx
call dword [ebx + 0x38]
add esp, 8
cmp esi, 1
mov edi, eax
jne 0x4a9089
push edi
call dword [edi + 0x50]
add esp, 4
cmp eax, 0x6c
je 0x4a9091
push edi
mov ecx, ebp
call fcn.004af4c0
push ebx
inc esi
call dword [ebx + 0x44]
add esp, 4
cmp esi, eax
jb 0x4a906e
push 0x639dc4
lea ecx, [ebp + 0x13c]
call sub.MFC42.DLL_CString::operator
push ebx
mov ecx, ebp
call fcn.004a4620
mov eax, dword [ebp + 0x28]
xor esi, esi
xor edi, edi
cmp eax, esi
je 0x4a9115
mov eax, dword [ebp + 0x20]
mov ecx, dword [eax + 8]
mov dword [esp + 0x3c], ecx
mov ecx, eax
mov edi, dword [eax + 0xc]
mov eax, dword [ecx]
cmp eax, esi
mov dword [ebp + 0x20], eax
je 0x4a90dd
mov dword [eax + 4], esi
jmp 0x4a90e0
mov dword [ebp + 0x24], esi
mov edx, dword [ebp + 0x2c]
mov dword [ecx], edx
mov eax, dword [ebp + 0x28]
dec eax
mov dword [ebp + 0x2c], ecx
mov dword [ebp + 0x28], eax
jne 0x4a9115
mov eax, dword [ebp + 0x20]
cmp eax, esi
je 0x4a90fe
mov eax, dword [eax]
cmp eax, esi
jne 0x4a90f8
mov ecx, dword [ebp + 0x30]
mov dword [ebp + 0x28], esi
mov dword [ebp + 0x2c], esi
mov dword [ebp + 0x24], esi
mov dword [ebp + 0x20], esi
call sub.MFC42.DLL_CPlex::FreeDataChain
mov dword [ebp + 0x30], esi
cmp edi, ebx
je 0x4a9130
push esi
push 0x53c
push 1
push ebx
call dword [ebx + 0x58]
add esp, 4
mov ecx, ebp
push eax
call fcn.004a2da0
push 1
mov ecx, ebp
call fcn.004a9f80
mov eax, dword [ebp + 0x1b8]
mov ecx, dword [esp + 0x78]
sub eax, ecx
mov ecx, dword [esp + 0x74]
mov dword [ecx + 5], eax
mov dword [ebp + 0x180], 1
lea ecx, [esp + 0x90]
mov byte [esp + 0xec], 0xe
call fcn.00453e6a
lea ecx, [esp + 0x84]
mov byte [esp + 0xec], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x80]
mov byte [esp + 0xec], 0xc
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x7c], 0x5a42c0
lea ecx, [esp + 0x10]
mov dword [esp + 0xec], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xe4]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0xe0
ret 4