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

Disassembly:
push 0xffffffffffffffff
push 0x40e714
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x24]
mov ebx, ecx
mov eax, dword [ebx + 0x5c]
mov edx, dword [eax + 0x30]
mov ecx, ebp
imul ebp, ebp, 0x8c
imul ecx, ecx, 0x4c
mov eax, dword [edx + ecx + 0x48]
mov ecx, dword [ebx + 0x6c]
mov dword [esp + 0xc], eax
lea eax, [ecx + ebp]
test dword [eax + 0x18], 0x40000000
push esi
je 0x407044
mov dx, word [eax + 0x60]
mov word [esp + 0xc], dx
jmp 0x40704c
mov dword [esp + 0xc], 0
lea ecx, [eax + 0x40]
mov edx, dword [ecx]
add eax, 0x30
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov edx, dword [ebx + 0x6c]
push edi
lea esi, [edx + ebp + 4]
mov ecx, 4
mov edi, 0x4109d8
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
pop edi
je 0x407111
push 0x40
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x28], esi
test esi, esi
mov dword [esp + 0x20], 0
je 0x4070b2
mov ecx, esi
call fcn.0040d858
mov dword [esi], 0x410090
mov eax, esi
jmp 0x4070b4
xor eax, eax
test eax, eax
mov ecx, dword [ebx + 0x6c]
mov dword [esp + 0x20], 0xffffffff
mov dword [ecx + ebp], eax
jne 0x4070df
pop esi
pop ebp
mov eax, 0x8007000e
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
mov edx, dword [ebx + 0x6c]
movzx ecx, word [esp + 0xc]
push 0
push 0
lea eax, [edx + ebp]
mov edx, dword [ebx + 0x20]
push 0
push ecx
push edx
mov edx, dword [eax + 0x18]
lea ecx, [eax + 0x30]
push ecx
mov ecx, dword [eax + 0x14]
push edx
push ecx
mov ecx, dword [eax]
lea edx, [eax + 4]
push edx
call sub.MFC42.DLL_CWnd::CreateControl
jmp 0x40719a
push 0x4c
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x20], 1
je 0x40713f
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
push ecx
push ebx
push edx
mov ecx, eax
call fcn.00408d30
jmp 0x407141
xor eax, eax
test eax, eax
mov ecx, dword [ebx + 0x6c]
mov dword [esp + 0x20], 0xffffffff
mov dword [ecx + ebp], eax
jne 0x40716c
pop esi
pop ebp
mov eax, 0x8007000e
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
mov edx, dword [ebx + 0x6c]
movzx ecx, word [esp + 0xc]
lea eax, [edx + ebp]
mov edx, dword [ebx + 0x20]
push 0
push ecx
push edx
mov edx, dword [eax + 0x18]
lea ecx, [eax + 0x30]
push ecx
mov ecx, dword [eax + 0x14]
push edx
mov edx, dword [eax + 0x1c]
push ecx
mov ecx, dword [eax]
push 0x416ff0
push edx
call sub.MFC42.DLL_CWnd::CreateEx
test eax, eax
jne 0x4071d2
mov eax, dword [ebx + 0x6c]
mov ecx, dword [eax + ebp]
test ecx, ecx
je 0x4071af
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov eax, dword [ebx + 0x6c]
pop esi
mov dword [eax + ebp], 0
pop ebp
mov eax, 0x80004005
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
mov ecx, dword [ebx + 0x6c]
mov eax, dword [ebp + ecx + 0x68]
add ebp, ecx
cmp eax, 0x1000
je 0x407202
cmp eax, 0x2000
je 0x407202
mov edx, dword [sym.imp.MFC42.DLL_CWndconstCWnd::wndTop]
mov ecx, dword [ebp]
push 3
push 0
push 0
push 0
push 0
push edx
call sub.MFC42.DLL_CWnd::SetWindowPos
mov ecx, dword [esp + 0x18]
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4