Function at 0x401e40
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x408343
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor edi, edi
push 0x2c
mov dword [esp + 0x3c], edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
add esp, 4
mov dword [esp + 0x10], ebp
cmp ebp, edi
mov byte [esp + 0x38], 1
je 0x401ea8
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString_2
lea eax, [ebp + 0x14]
mov dword [ebp], 0xffffffff
push eax
mov dword [ebp + 0x10], edi
mov dword [ebp + 4], edi
mov dword [ebp + 8], 2
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov dword [ebp + 0x24], edi
jmp 0x401eaa
xor ebp, ebp
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 0
push ecx
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov dword [ebp + 8], eax
mov edx, dword [esi + 0x78]
mov dword [ebp], edx
mov edx, dword [esp + 0x4c]
cmp edx, edi
mov dword [ebp + 0x28], ecx
jne 0x401f01
mov edx, dword [esi + 0x84]
push edx
push ecx
push eax
push ecx
lea eax, [esp + 0x50]
mov ecx, esp
mov dword [esp + 0x58], esp
push eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00402090
mov dword [ebp + 4], eax
mov dword [ebp + 0x24], edi
jmp 0x401f0b
mov dword [ebp + 4], edx
mov dword [ebp + 0x24], 1
mov eax, dword [esi + 0x50]
mov ebx, dword [esi + 0x48]
cmp eax, edi
jne 0x401f42
mov ecx, dword [esi + 0x58]
push 0xc
lea edx, [esi + 0x54]
push ecx
push edx
call sub.MFC42.DLL_CPlex::Create
mov ecx, dword [esi + 0x58]
lea edx, [ecx + ecx*2]
dec ecx
cmp ecx, edi
lea eax, [eax + edx*4 - 8]
jl 0x401f42
inc ecx
mov edx, dword [esi + 0x50]
mov dword [eax], edx
mov dword [esi + 0x50], eax
sub eax, 0xc
dec ecx
jne 0x401f34
mov eax, dword [esi + 0x50]
mov ecx, dword [eax]
mov dword [esi + 0x50], ecx
mov dword [eax + 4], ebx
mov dword [eax], edi
mov ebx, dword [esi + 0x4c]
inc ebx
mov dword [esi + 0x4c], ebx
mov dword [eax + 8], edi
mov dword [eax + 8], ebp
mov ecx, dword [esi + 0x48]
cmp ecx, edi
je 0x401f67
mov dword [ecx], eax
jmp 0x401f6a
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov edx, dword [esi + 0x78]
mov ecx, dword [esi + 0x80]
inc edx
mov dword [esi + 0x78], edx
mov edx, dword [ebp + 4]
add ecx, edx
lea edx, [esp + 0x14]
mov dword [esi + 0x80], ecx
mov eax, ecx
mov ecx, dword [esi + 0x88]
push 1
mov dword [esp + 0x28], ecx
push edx
push 1
mov ecx, esi
mov dword [esp + 0x20], 0x1c
mov dword [esp + 0x24], 3
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x34], edi
call sub.MFC42.DLL_CWnd::SetScrollInfo
mov edi, dword [ebp]
mov ecx, dword [esi + 0x64]
lea ebx, [esi + 0x5c]
mov eax, edi
shr eax, 4
xor edx, edx
mov dword [esp + 0x48], ecx
div ecx
mov ecx, dword [ebx + 4]
mov dword [esp + 0x44], edi
test ecx, ecx
mov dword [esp + 0x4c], edx
je 0x401ffe
mov eax, dword [ecx + edx*4]
test eax, eax
je 0x401ffa
cmp dword [eax + 8], edi
je 0x401ff6
mov eax, dword [eax]
test eax, eax
jne 0x401fe9
jmp 0x401ffa
test eax, eax
jne 0x402055
test ecx, ecx
jne 0x402036
mov eax, dword [esp + 0x48]
lea edi, [eax*4]
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, eax
mov ecx, edi
mov dword [ebx + 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x44]
mov dword [ebx + 8], eax
mov ecx, ebx
call fcn.00403cd0
mov ecx, dword [esp + 0x4c]
mov dword [eax + 8], edi
mov dword [eax + 4], ecx
mov edx, dword [ebx + 4]
mov edx, dword [edx + ecx*4]
mov dword [eax], edx
mov edx, dword [ebx + 4]
mov dword [edx + ecx*4], eax
mov dword [eax + 0xc], ebp
mov esi, dword [esi + 0x78]
lea ecx, [esp + 0x40]
dec esi
mov dword [esp + 0x38], 0xffffffff
call fcn.00407cca
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x2c
ret 0x10