Function at 0x4084c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42140b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov ebx, dword [esp + 0x4c]
mov ecx, dword [ebx + 0x30]
test ecx, ecx
mov dword [esp + 0x44], 0
jne 0x408624
push ecx
mov ecx, ebp
call sub.MFC70.DLL_Ordinal_3881
mov esi, eax
test esi, esi
je 0x40861c
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 0x40861c
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x140]
add eax, 0x24
push eax
lea ecx, [esp + 0x18]
call fcn.004035b0
mov esi, dword [esp + 0x14]
push 0x2e
push esi
call dword [sym.imp.MSVCR70.dll__mbsrchr]
add esp, 8
test eax, eax
je 0x40860c
sub eax, esi
mov esi, eax
test esi, esi
jle 0x40860c
lea eax, [esi + 1]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00404d60
mov edi, dword [esp + 0x28]
push 0x426c58
push edi
mov byte [esp + 0x4c], 1
call dword [sym.imp.MSVCR70.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x4085eb
push esi
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x1c]
call fcn.00401850
push str..wis
push eax
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x50], 2
call fcn.00404e70
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 3
call fcn.004035b0
lea ecx, [esp + 0x20]
call fcn.00401760
lea ecx, [esp + 0x1c]
call fcn.00401760
lea eax, [edi - 0x10]
mov byte [esp + 0x44], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408644
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x408644
push str..wis
lea ecx, [esp + 0x18]
call fcn.00405830
jmp 0x408644
lea eax, [edi - 0x10]
jmp 0x408b3a
mov eax, ecx
lea esi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408630
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401960
mov eax, dword [ebx + 0xc]
sub eax, 0x10
push eax
call fcn.004013a0
lea edi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x20], edi
mov eax, dword [edi - 0xc]
test eax, eax
mov byte [esp + 0x44], 4
jl 0x4087a0
push str._FORWARDBIN_
push edi
call dword [sym.imp.MSVCR70.dll__mbsstr]
add esp, 8
test eax, eax
je 0x4087a0
sub eax, edi
mov dword [esp + 0x2c], eax
jne 0x4087a0
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
mov bl, 5
push eax
mov byte [esp + 0x48], 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 0x4086fd
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x44], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4086da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add edi, 0xfffffff0
mov byte [esp + 0x44], 0
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408b33
mov ecx, dword [edi]
push edi
jmp 0x408b2e
push 0xd
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x28]
call fcn.00404d60
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x50], 6
call fcn.00404d90
add esp, 0xc
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 7
call fcn.004035b0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x44], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408757
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x44], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408779
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 + 0x44], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40879c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edi, dword [esp + 0x20]
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 + 0x48], 8
call sub.MFC70.DLL_Ordinal_957
test eax, eax
je 0x4087d5
push 0x4282
push eax
lea ecx, [esp + 0x18]
call fcn.004044c0
mov eax, dword [esp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
mov esi, esp
push eax
call fcn.004013a0
add eax, 0x10
mov dword [esi], eax
lea esi, [ebp + 0xac18]
add esp, 4
mov ecx, esi
call fcn.0040c5b0
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x425529
call fcn.00405870
mov ecx, esi
call fcn.0040c5b0
push 0x425529
lea ecx, [esp + 0x1c]
call fcn.00405870
add edi, 0xfffffff0
push edi
mov byte [esp + 0x48], 9
mov dword [esp + 0x2c], edi
call fcn.004013a0
lea ebp, [eax + 0x10]
add esp, 4
mov dword [esp + 0x1c], ebp
push ebp
push 0x4283
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x50], 0xa
call sub.MFC70.DLL_Ordinal_958
mov eax, dword [esp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x34], 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 + 0x34]
push edx
call fcn.00404e70
add esp, 0xc
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c], 0xb
call fcn.00404600
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x44], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4088c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
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 + 0x34], 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 + 0x34]
push eax
call fcn.00404e70
add esp, 0xc
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c], 0xc
call fcn.00404600
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x44], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40894d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ebx, dword [esp + 0x4c]
mov eax, dword [ebx + 0x14]
add 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 + 0x34], 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 + 0x34]
push edx
call fcn.00404e70
add esp, 0xc
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c], 0xd
call fcn.00404600
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x44], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4089d9
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 0x4089f6
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 + 0x20]
call fcn.00404600
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 0x18]
push str.CZoneFrameDoc
push eax
call dword [sym.imp.MSVCR70.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x408b60
mov ecx, dword [esp + 0x18]
push 0
push 0x23
push ecx
call sub.MFC70.DLL_Ordinal_1014
cmp eax, 6
je 0x408b60
push 0x4292
call sub.MFC70.DLL_Ordinal_957
test eax, eax
je 0x408a5a
push 0x4292
push eax
lea ecx, [esp + 0x18]
call fcn.004044c0
mov eax, dword [esp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x50], 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 + 0x50], esp
push 0x426ca8
call fcn.00405870
mov ecx, esi
call fcn.0040c5b0
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
push 0x426ca8
call fcn.00405870
mov ecx, esi
call fcn.0040c5b0
add ebp, 0xfffffff0
mov byte [esp + 0x44], 9
lea edx, [ebp + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x408acd
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x44], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408af0
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 + 0x44], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408b13
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x28]
mov byte [esp + 0x44], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408b33
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x44], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408b59
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x408e29
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 + 0x28]
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x40], edx
call fcn.00407ac0
mov ecx, dword [esp + 0x24]
push ecx
push 0x449b
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x50], 0xe
call sub.MFC70.DLL_Ordinal_958
mov eax, dword [esp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x34], 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 + 0x34], esp
push 0x426ca8
call fcn.00405870
mov ecx, esi
call fcn.0040c5b0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x30]
push 0x426c78
push ecx
call fcn.00404f30
add esp, 0xc
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], 0xf
call fcn.00404600
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x44], 0xe
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408c29
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebx]
push 0x425529
push eax
call dword [sym.imp.MSVCR70.dll__mbscmp]
add esp, 8
test eax, eax
je 0x408c89
push ebx
lea eax, [esp + 0x30]
push 0x426c78
push eax
call fcn.00404f30
add esp, 0xc
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], 0x10
call fcn.00404600
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x44], 0xe
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408c89
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0x2c
call sub.MFC70.DLL_Ordinal_703
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov byte [esp + 0x44], 0x11
je 0x408cb5
push 0
push 0
push esi
lea ecx, [esp + 0x28]
push ecx
mov ecx, eax
call fcn.00405780
mov edi, eax
jmp 0x408cb7
xor edi, edi
lea edx, [esp + 0x14]
push edx
mov ecx, edi
mov byte [esp + 0x48], 0xe
call fcn.004035b0
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 0x18]
push str.CZoneFrameDoc
push eax
call dword [sym.imp.MSVCR70.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x408ce9
mov dword [edi + 4], 1
mov ecx, edi
call fcn.0040db20
test eax, eax
jne 0x408d52
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x50]
push ecx
call fcn.0040d980
mov eax, dword [esp + 0x54]
add esp, 4
add eax, 0xfffffff0
mov dword [esp + 0x34], esp
mov edi, esp
push eax
mov byte [esp + 0x4c], 0x12
call fcn.004013a0
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [edi], eax
call fcn.0040c5b0
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
mov byte [esp + 0x44], 0xe
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408d52
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 + 0x44], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408d75
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 + 0x44], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408d98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x44], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408dbb
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 + 0x44], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408dde
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x28]
mov byte [esp + 0x44], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408dfe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x44], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408e24
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x38
ret 4