Function at 0x407b50
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x42135c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x324
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x30], esi
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
mov ebx, dword [esp + 0x344]
mov ecx, dword [ebx + 0x30]
test ecx, ecx
mov dword [esp + 0x33c], 0
jne 0x407ccd
push ecx
mov ecx, esi
call sub.MFC70.DLL_Ordinal_3881
mov esi, eax
test esi, esi
je 0x407cc5
call dword [sym.imp.plotbase30.dll_public:_static_struct_CRuntimeClass____stdcall_CBaseOleDoc::GetThisClass_void_]
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x140]
mov ecx, eax
call sub.MFC70.DLL_Ordinal_3754
test eax, eax
je 0x407cc5
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x140]
add eax, 0x24
push eax
lea ecx, [esp + 0x1c]
call fcn.004035b0
mov esi, dword [esp + 0x18]
push 0x2e
push esi
call dword [sym.imp.MSVCR70.dll__mbsrchr]
add esp, 8
test eax, eax
je 0x407cb5
sub eax, esi
mov esi, eax
test esi, esi
jle 0x407cb5
lea eax, [esi + 1]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x20]
call fcn.00404d60
mov edi, dword [esp + 0x28]
push 0x426c58
push edi
mov byte [esp + 0x344], 1
call dword [sym.imp.MSVCR70.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x407c91
push esi
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x20]
call fcn.00401850
push str..wis
push eax
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x348], 2
call fcn.00404e70
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x340], 3
call fcn.004035b0
lea ecx, [esp + 0x24]
call fcn.00401760
lea ecx, [esp + 0x14]
call fcn.00401760
lea eax, [edi - 0x10]
mov byte [esp + 0x33c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407ce6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x407ce6
push str..wis
lea ecx, [esp + 0x1c]
call fcn.00405830
jmp 0x407ce6
lea eax, [edi - 0x10]
jmp 0x408199
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x407cd2
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00401960
mov eax, dword [ebx + 0xc]
sub eax, 0x10
push eax
call fcn.004013a0
lea ebp, [eax + 0x10]
add esp, 4
mov dword [esp + 0x28], ebp
mov eax, dword [ebp - 0xc]
test eax, eax
mov byte [esp + 0x33c], 4
jl 0x407e21
push str._FORWARDBIN_
push ebp
call dword [sym.imp.MSVCR70.dll__mbsstr]
add esp, 8
test eax, eax
je 0x407e21
sub eax, ebp
mov dword [esp + 0x20], eax
jne 0x407e21
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
mov bl, 5
push eax
mov byte [esp + 0x340], bl
call sub.WELLBASE30.dll_int___cdecl_GetWellBaseBinDir_class_ATL::CStringT_char__class_StrTraitMFC_char__class_ATL::ChTraitsCRT_char_____
add esp, 4
test eax, eax
jne 0x407d68
mov eax, dword [esp + 0x24]
jmp 0x40814d
push 0xd
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x30]
call fcn.00404d60
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x348], 6
call fcn.00404d90
add esp, 0xc
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x340], 7
call fcn.004035b0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x33c], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407dcb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x33c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407df0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x33c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407e16
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x344]
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
push 0x4282
mov byte [esp + 0x340], 8
call sub.MFC70.DLL_Ordinal_957
test eax, eax
je 0x407e59
push 0x4282
push eax
lea ecx, [esp + 0x18]
call fcn.004044c0
mov eax, dword [esp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
push eax
call fcn.004013a0
add eax, 0x10
mov dword [esi], eax
mov esi, dword [esp + 0x38]
add esi, 0xac18
add esp, 4
mov ecx, esi
call fcn.0040c5b0
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x425529
call fcn.00405870
mov ecx, esi
call fcn.0040c5b0
push 0x425529
lea ecx, [esp + 0x20]
call fcn.00405870
push ebp
push 0x4283
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x348], 9
call sub.MFC70.DLL_Ordinal_958
mov eax, dword [esp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov edi, esp
push eax
call fcn.004013a0
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [edi], eax
call fcn.0040c5b0
push 0x426ca8
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00404e70
add esp, 0xc
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x344], 0xa
call fcn.00404600
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x33c], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407f3c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
push eax
push 0x4284
lea ecx, [esp + 0x18]
push ecx
call sub.MFC70.DLL_Ordinal_958
mov eax, dword [esp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov edi, esp
push eax
call fcn.004013a0
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [edi], eax
call fcn.0040c5b0
push 0x426ca8
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00404e70
add esp, 0xc
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x344], 0xb
call fcn.00404600
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x33c], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407fc8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebx + 0x14]
push eax
push 0x4299
lea eax, [esp + 0x18]
push eax
call sub.MFC70.DLL_Ordinal_958
mov eax, dword [esp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov edi, esp
push eax
call fcn.004013a0
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [edi], eax
call fcn.0040c5b0
push str._r_n_r_n_r_n
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00404e70
add esp, 0xc
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x344], 0xc
call fcn.00404600
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x33c], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408053
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0x428a
call sub.MFC70.DLL_Ordinal_957
test eax, eax
je 0x408070
push 0x428a
push eax
lea ecx, [esp + 0x18]
call fcn.004044c0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.00404600
mov eax, dword [ebx + 0x18]
push str.CZoneFrameDoc
push eax
call dword [sym.imp.MSVCR70.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x4081c2
mov eax, dword [esp + 0x1c]
push 0
push 0x23
push eax
call sub.MFC70.DLL_Ordinal_1014
cmp eax, 6
je 0x4081c2
push 0x4292
call sub.MFC70.DLL_Ordinal_957
test eax, eax
je 0x4080d0
push 0x4292
push eax
lea ecx, [esp + 0x18]
call fcn.004044c0
mov eax, dword [esp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov edi, esp
push eax
call fcn.004013a0
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [edi], eax
call fcn.0040c5b0
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x426ca8
call fcn.00405870
mov ecx, esi
call fcn.0040c5b0
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x426ca8
call fcn.00405870
mov ecx, esi
call fcn.0040c5b0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x33c], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408149
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x33c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40816f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add ebp, 0xfffffff0
mov byte [esp + 0x33c], 0
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408192
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x33c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4081bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x4084a3
push 0
call dword [sym.imp.MSVCR70.dll__time64]
add esp, 4
mov dword [esp + 0x34], eax
push str._H:_M:_S___B__d___Y
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x40], edx
call fcn.00407ac0
mov ecx, dword [esp + 0x2c]
push ecx
push 0x449b
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x348], 0xd
call sub.MFC70.DLL_Ordinal_958
mov eax, dword [esp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov edi, esp
push eax
call fcn.004013a0
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [edi], eax
call fcn.0040c5b0
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x426ca8
call fcn.00405870
mov ecx, esi
call fcn.0040c5b0
lea ecx, [esp + 0x3c]
call dword [sym.imp.FwdScript30.dll_public:_void___thiscall_CScriptEngine::constructor_void_]
mov eax, dword [esp + 0x30]
add eax, 0x3308
push eax
mov bl, 0xe
push esi
lea ecx, [esp + 0x44]
mov byte [esp + 0x344], bl
call dword [sym.imp.FwdScript30.dll_public:_void___thiscall_CScriptEngine::SetEnv_class_CWnd___class_CEnhStatusBar__]
push ecx
add ebp, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
push ebp
call fcn.004013a0
add eax, 0x10
mov dword [esi], eax
mov ecx, dword [esp + 0x34c]
mov eax, dword [ecx + 0x14]
sub eax, 0x10
mov dword [esp + 0x38], esp
mov esi, esp
push eax
mov byte [esp + 0x348], 0xf
call fcn.004013a0
add eax, 0x10
mov dword [esi], eax
mov edi, dword [esp + 0x24]
add edi, 0xfffffff0
mov dword [esp + 0x30], esp
mov esi, esp
push edi
mov byte [esp + 0x34c], 0x10
call fcn.004013a0
add eax, 0x10
add esp, 4
lea ecx, [esp + 0x48]
mov dword [esi], eax
mov byte [esp + 0x348], bl
call dword [sym.imp.FwdScript30.dll_public:_int___thiscall_CScriptEngine::Init_class_ATL::CStringT_char__class_StrTraitMFC_char__class_ATL::ChTraitsCRT_char_____class_ATL::CStringT_char__class_StrTraitMFC_char__class_ATL::ChTraitsCRT_char_____class_ATL::CStringT_char__class_StrTraitMFC_char__class_ATL::ChTraitsCRT_char____]
test eax, eax
lea ecx, [esp + 0x3c]
jne 0x4083ab
mov byte [esp + 0x33c], 0xd
call dword [sym.imp.FwdScript30.dll_public_virtual:_void___thiscall_CScriptEngine::destructor_void_]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x33c], 9
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408316
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x33c], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40833c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x33c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408362
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov byte [esp + 0x33c], 0
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408382
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
mov dword [esp + 0x33c], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4083a4
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
xor eax, eax
jmp 0x4084a3
call dword [sym.imp.FwdScript30.dll_public:_long_int___thiscall_CScriptEngine::Connect_void_]
lea ecx, [esp + 0x3c]
call dword [sym.imp.FwdScript30.dll_public:_void___thiscall_CScriptEngine::ReleaseEngine_void_]
push ecx
mov dword [esp + 0x18], esp
mov esi, esp
push edi
call fcn.004013a0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call sub.WIS30.dll_int___cdecl_SetUpdateWisFile_class_ATL::CStringT_char__class_StrTraitMFC_char__class_ATL::ChTraitsCRT_char____
add esp, 4
lea ecx, [esp + 0x3c]
mov byte [esp + 0x33c], 0xd
call dword [sym.imp.FwdScript30.dll_public_virtual:_void___thiscall_CScriptEngine::destructor_void_]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x33c], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408410
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x33c], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408436
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x33c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40845c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov byte [esp + 0x33c], 0
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40847c
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
mov dword [esp + 0x33c], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40849e
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov eax, 1
mov ecx, dword [esp + 0x334]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x330
ret 4