Function at 0x40bb10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42ee50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
fld qword [0x431338]
fdiv qword [0x431318]
push ebx
push ebp
push esi
mov ebx, ecx
push edi
call fcn.00422ba0
push eax
lea eax, [esp + 0x16]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
push str.contentLineSpacing
call fcn.0040d120
call fcn.0040c1c0
fld qword [0x431330]
mov dword [ebx + 0x20], eax
add esp, 0x14
fdiv qword [0x431318]
call fcn.00422ba0
push eax
lea edx, [esp + 0x16]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
push str.headerLineSpacing
call fcn.0040d120
call fcn.0040c1c0
fld qword [0x431338]
mov dword [ebx + 0x24], eax
add esp, 0x14
fdiv qword [0x431318]
call fcn.00422ba0
push eax
lea eax, [esp + 0x16]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
push str.charHeight
call fcn.0040d120
call fcn.0040c1c0
mov cl, byte [esp + 0x26]
add esp, 4
mov ebp, esp
mov dword [ebx + 0x1c], eax
mov dword [esp + 0x28], esp
push 0
mov byte [ebp], cl
mov ecx, ebp
call fcn.00402f10
mov edi, str.Curier_New
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, ebp
push esi
mov dword [esp + 0x2c], esi
call fcn.00403300
test al, al
je 0x40bc2c
mov edi, dword [ebp + 4]
mov ecx, esi
mov edx, ecx
mov esi, str.Curier_New
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 8], eax
mov ebp, dword [ebp + 4]
add ebp, eax
mov byte [ebp], 0
sub esp, 0x10
lea eax, [esp + 0x32]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
push str.fontName
mov dword [esp + 0x5c], 0
call fcn.0040d120
lea ecx, [esp + 0x3c]
or esi, 0xffffffff
push ecx
mov dword [esp + 0x58], esi
call fcn.0040c3d0
add esp, 0x24
mov edx, dword [0x431288]
lea ecx, [ebx + 0xc]
push edx
push 0
push eax
mov dword [esp + 0x40], 1
call fcn.00402a50
push 1
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], esi
call fcn.00402f10
push 8
lea eax, [esp + 0x16]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
push str.tabSize
call fcn.0040d120
call fcn.0040c1c0
add esp, 0x14
lea edx, [esp + 0x12]
mov dword [ebx + 0x28], eax
push 0x3ff00000
push 0
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
push str.previewScale1
call fcn.0040d120
call fcn.0040c2c0
add esp, 0x18
lea eax, [esp + 0x12]
fstp qword [ebx + 0x40]
push 0x40000000
push 0
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
push str.previewScale2
call fcn.0040d120
call fcn.0040c2c0
add esp, 0x18
lea edx, [esp + 0x12]
fstp qword [ebx + 0x48]
push 0x40040000
push 0
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
push str.previewScale3
call fcn.0040d120
call fcn.0040c2c0
add esp, 0x18
lea eax, [esp + 0x12]
fstp qword [ebx + 0x50]
push 0xffff
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
push str.headerTextColor
call fcn.0040d120
call fcn.0040c600
add esp, 0x14
lea edx, [esp + 0x12]
mov dword [ebx + 0x2c], eax
push 0xffffff
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
push str.contentTextColor
call fcn.0040d120
call fcn.0040c600
add esp, 0x14
mov dword [ebx + 0x30], eax
lea eax, [esp + 0x12]
push 0x800000
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
push str.backgoundColor
call fcn.0040d120
call fcn.0040c600
add esp, 0x14
lea edx, [esp + 0x12]
mov dword [ebx + 0x34], eax
push 0x80ff80
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
push str.pageBreakColor
call fcn.0040d120
call fcn.0040c600
fld qword [0x431328]
mov dword [ebx + 0x38], eax
add esp, 0x14
fdiv qword [0x431318]
call fcn.00422ba0
push eax
lea eax, [esp + 0x16]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
push str.pageMargins.left
call fcn.0040d120
call fcn.0040c1c0
fld qword [0x431328]
mov dword [ebx + 0x58], eax
add esp, 0x14
fdiv qword [0x431318]
call fcn.00422ba0
push eax
lea edx, [esp + 0x16]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
push str.pageMargins.top
call fcn.0040d120
call fcn.0040c1c0
fld qword [0x431328]
mov dword [ebx + 0x5c], eax
add esp, 0x14
fdiv qword [0x431318]
call fcn.00422ba0
push eax
lea eax, [esp + 0x16]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
push str.pageMargins.right
call fcn.0040d120
call fcn.0040c1c0
fld qword [0x431328]
mov dword [ebx + 0x60], eax
add esp, 0x14
fdiv qword [0x431318]
call fcn.00422ba0
push eax
lea edx, [esp + 0x17]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
push str.pageMargins.bottom
call fcn.0040d120
call fcn.0040c1c0
add esp, 0x14
mov ecx, ebx
mov dword [ebx + 0x64], eax
call fcn.0040c170
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x28
ret