Function at 0x403690
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x40ac56
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x44]
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x54]
push edi
mov edi, dword [esp + 0x60]
add ecx, 0x64
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x64]
sub edx, 2
push 0x2713
push ecx
mov dword [esp + 0x30], edx
add eax, 2
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
sub edi, 2
push 0x4003001a
mov ecx, esi
mov dword [esp + 0x3c], edi
call dword [eax + 0x138]
push esi
lea ecx, [esi + 0x68]
call dword [sym.imp.Frn.dll_public:_int___thiscall_AbstractScrollBarPaintHook::HookWindow_class_CWnd__]
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0xc]
push eax
push 1
push 0x21
push 0x20
lea edi, [esi + 0x5c]
push 0x20
mov ecx, edi
call sub.MFC71U.DLL_CImageList::Create
xor ebp, ebp
cmp edi, ebp
jne 0x403725
xor edi, edi
jmp 0x403728
mov edi, dword [edi + 4]
mov ecx, dword [esi + 0x20]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 1
push 0x1003
push ecx
call ebx
push eax
call sub.MFC71U.DLL_CHandleMap::FromHandle
mov edx, dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov eax, dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_1]
push edx
push eax
push 5
push 4
lea ecx, [esp + 0x40]
push ecx
call fcn.0040a54d
mov ecx, dword [esi + 0x58]
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x50], ebp
mov dword [esp + 0x14], ebp
call fcn.00404c30
test eax, eax
jle 0x40391b
lea ebp, [esp + 0x30]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x54]
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x4038fb
mov eax, ebx
mov edi, dword [eax + 8]
mov ebx, dword [ebx]
lea ecx, [edi + 4]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
mov ecx, ebp
call dword [sym.imp.MFC71U.DLL_CListBox::CompareItem]
test eax, eax
je 0x4037ba
test ebx, ebx
jne 0x403794
jmp 0x4038fb
mov edx, dword [edi]
push 0x20
mov ecx, edi
call dword [edx + 0xc]
mov ebp, eax
mov eax, dword [esi + 0x60]
push ebp
push 0xffffffffffffffff
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push ebp
mov ebx, eax
call dword [sym.imp.USER32.dll_DestroyIcon]
lea ecx, [esp + 0x54]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_1]
mov ecx, dword [edi + 8]
push ecx
lea edx, [esp + 0x58]
push str._r_n_s
push edx
mov byte [esp + 0x58], 1
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format]
add esp, 0xc
push 0
push ebx
push 0
push 0
lea ecx, [esp + 0x64]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
push ebx
push 3
mov ecx, esi
call sub.MFC71U.DLL_CComboBoxEx::InsertItem
push edi
push 0
push 0
push 0
push 0
push 4
push 0
push eax
mov ecx, esi
call sub.MFC71U.DLL_CComboBoxEx::SetItem
call sub.MFC71U.DLL_AfxGetModuleShortFileName
mov eax, dword [eax + 4]
add eax, 0xe0
push eax
lea ecx, [esp + 0x68]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT]
mov byte [esp + 0x4c], 2
call sub.MFC71U.DLL_AfxGetModuleShortFileName
mov eax, dword [eax + 4]
mov ebx, dword [eax + 0xe4]
push 0x40ceb0
lea ecx, [esp + 0x68]
call dword [sym.imp.MFC71U.DLL_CWinThread::CommonConstruct]
test eax, eax
je 0x403899
cmp ebx, 2
jne 0x403899
lea ecx, [esp + 0x64]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
lea ecx, [edi + 4]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call dword [sym.imp.MSVCR71.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x4038de
jmp 0x4038da
lea eax, [esp + 0x1c]
push 2
push eax
call fcn.004097b0
add esp, 8
mov ecx, eax
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
lea ecx, [edi + 4]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call dword [sym.imp.MSVCR71.dll_wcscmp]
add esp, 8
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [esp + 0x1c]
inc bl
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
test bl, bl
je 0x4038de
mov dword [esp + 0x10], edi
lea ecx, [esp + 0x64]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x54]
mov byte [esp + 0x4c], 0
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add ebp, 4
dec eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
jne 0x403786
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
mov ebp, dword [esp + 0x10]
xor edi, edi
cmp ebp, edi
mov dword [esp + 0x18], edi
je 0x40395a
mov ecx, dword [esi + 0x20]
push edi
push edi
push 0x1004
push ecx
call ebx
test eax, eax
jle 0x40395a
push edi
mov ecx, esi
call sub.MFC71U.DLL_COleServerDoc::GetItemClipRect
cmp eax, ebp
jne 0x403946
mov dword [esp + 0x18], edi
mov edx, dword [esi + 0x20]
push 0
push 0
push 0x1004
push edx
inc edi
call ebx
cmp edi, eax
jl 0x403936
mov eax, dword [esp + 0x18]
push 3
push 3
push eax
mov ecx, esi
call sub.MFC71U.DLL_COleClientItem::SetItemRects
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
sub eax, ecx
mov ecx, dword [esi + 0x20]
cdq
sub eax, edx
sar eax, 1
movzx eax, ax
push eax
push 0
push 0x101e
push ecx
call ebx
mov edx, dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
push edx
push 5
push 4
lea eax, [esp + 0x3c]
push eax
mov byte [esi + 0x64], 1
mov dword [esp + 0x5c], 0xffffffff
call fcn.0040a4ed
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 0x14