Function at 0x409c70
Capabilities:
Access peb ldr_data
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x421598
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov ebx, ecx
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
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x30], 0
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 0x409cda
mov eax, str.c:_forward.30_bin_
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409cc2
sub eax, edx
push eax
push str.c:_forward.30_bin_
lea ecx, [esp + 0x18]
call fcn.00401960
mov eax, str.worksDynamicHelp.dll
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409ce2
sub eax, edx
push eax
push str.worksDynamicHelp.dll
lea ecx, [esp + 0x18]
call fcn.00404600
mov ecx, dword [esp + 0x10]
push ecx
call sub.MFC70.DLL_Ordinal_1006
mov esi, eax
test esi, esi
je 0x409e52
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetForwardPlugInID
push esi
call edi
test eax, eax
je 0x409e3e
call eax
cmp eax, 1
jne 0x409e3e
push str.GetWorkName
push esi
call edi
push str.GetTabWndClass
push esi
mov dword [esp + 0x20], eax
call edi
push str.GetObjToolIconID
push esi
mov dword [esp + 0x1c], eax
call edi
push str.GetObjToolBarID
push esi
mov ebp, eax
call edi
mov edi, dword [esp + 0x18]
test edi, edi
mov dword [esp + 0x1c], eax
je 0x409e2e
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x409e2e
test ebp, ebp
je 0x409e2e
test eax, eax
je 0x409e2e
call ecx
mov dword [esp + 0x20], eax
call edi
push eax
lea ecx, [esp + 0x1c]
call fcn.00405870
lea ecx, [esp + 0x14]
call fcn.00401720
push 0x4297
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 2
call fcn.00404e40
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push edx
push eax
call dword [sym.imp.MSVCR70.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x409e1a
call ebp
mov edi, eax
call dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push eax
push edi
push ecx
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.00401740
push esi
mov ecx, ebx
call fcn.00405530
mov dword [ebx + 0xfb04], eax
mov edx, dword [eax]
push 0xf000
mov ecx, eax
call dword [edx + 0x1b0]
mov eax, dword [ebx + 0xfb04]
push 0
push 0
push eax
mov ecx, ebx
call dword [sym.imp.BCGCBPRO720.dll_public:_void___thiscall_CBCGPMDIFrameWnd::DockControlBar_class_CBCGPBaseControlBar___unsigned_int__struct_tagRECT_const__]
lea ecx, [esp + 0x14]
call fcn.00401760
lea ecx, [esp + 0x18]
call fcn.00401760
jmp 0x409e52
push 0xffffffffffffffff
push 0x10
push 0x4278
call sub.MFC70.DLL_Ordinal_1013
jmp 0x409e52
push 0xffffffffffffffff
push 0x10
push 0x4279
call sub.MFC70.DLL_Ordinal_1013
push esi
call sub.MFC70.DLL_Ordinal_962
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409e78
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret