Function at 0x4158c0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54e133
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x204
mov dword [ebp - 0x20c], ecx
mov eax, dword [ebp - 0x20c]
cmp dword [eax + 0x58], 0
je 0x414ce2
mov ecx, dword [ebp - 0x20c]
cmp dword [ecx + 0xc0], 0
je 0x414ce2
mov edx, dword [ebp - 0x20c]
cmp dword [edx + 0xc4], 0
jne 0x414ce7
mov eax, dword [ebp - 0x20c]
cmp dword [eax + 0xc8], 0
jne 0x414ce7
jmp 0x415846
call dword [sym.imp.DataMgr.dll_class_CDrawDC____cdecl_gf_GetDrawDC_void_]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
jne 0x414cfb
jmp 0x415846
mov ecx, dword [ebp - 0x68]
call dword [sym.imp.DataMgr.dll_public:_class_CDC____thiscall_CDrawDC::GetCurDC_void_]
mov dword [ebp - 0xe0], eax
push 7
call dword [sym.imp.DataMgr.dll_unsigned_long_int___cdecl_gf_GetXORColor_int_]
add esp, 4
push eax
push 0
push 2
lea ecx, [ebp - 0x84]
call sub.MFC42u.DLL_CPen::CPen
mov dword [ebp - 4], 0
push 7
call dword [sym.imp.DataMgr.dll_unsigned_long_int___cdecl_gf_GetXORColor_int_]
add esp, 4
push eax
push 0
push 0
lea ecx, [ebp - 0x8c]
call sub.MFC42u.DLL_CPen::CPen
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84]
push ecx
mov ecx, dword [ebp - 0xe0]
call sub.MFC42u.DLL_CDC::SelectObject
mov dword [ebp - 0x9c], eax
push 7
mov ecx, dword [ebp - 0xe0]
call sub.MFC42u.DLL_CDC::SetROP2
mov dword [ebp - 0x90], eax
push 1
mov ecx, dword [ebp - 0xe0]
call sub.MFC42u.DLL_CDC::SetBkMode
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x20c]
mov eax, dword [edx + 0x104]
push eax
mov ecx, dword [edx + 0x100]
push ecx
mov edx, dword [ebp - 0x20c]
mov eax, dword [edx + 0xfc]
push eax
mov ecx, dword [edx + 0xf8]
push ecx
lea ecx, [ebp - 0x60]
call dword [sym.imp.QLib.dll_public:_void___thiscall_Pt2d::constructor_double__double_]
lea edx, [ebp - 0x60]
push edx
lea eax, [ebp - 0x78]
push eax
mov ecx, dword [ebp - 0x20c]
add ecx, 0xd8
call dword [sym.imp.mathlib.dll_public:_class_Pt2d___thiscall_Pt2d::operator_class_Pt2d_const__]
lea ecx, [ebp - 0xdc]
call dword [sym.imp.mathlib.dll_public:_void___thiscall_CBezier::constructor_void_]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
call dword [sym.imp.mathlib.dll_public:_void___thiscall_CBezier::constructor_void_]
mov byte [ebp - 4], 3
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x20c]
cmp dword [ecx + 0xc4], 0
je 0x414f66
mov edx, dword [ebp - 0x20c]
mov eax, dword [edx + 0xcc]
imul eax, eax, 3
mov word [ebp - 0xe4], ax
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp - 0x20c]
mov edx, dword [ecx + 0xc4]
mov eax, dword [ebp - 0xe4]
and eax, 0xffff
shl eax, 4
mov ecx, dword [edx + 0x1c]
add ecx, eax
mov edx, dword [ecx]
mov dword [ebp - 0xdc], edx
mov eax, dword [ecx + 4]
mov dword [ebp - 0xd8], eax
mov edx, dword [ecx + 8]
mov dword [ebp - 0xd4], edx
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0xd0], eax
mov ecx, dword [ebp - 0x20c]
mov edx, dword [ecx + 0xc4]
mov eax, dword [ebp - 0xe4]
and eax, 0xffff
add eax, 1
shl eax, 4
mov ecx, dword [edx + 0x1c]
add ecx, eax
mov edx, dword [ecx]
mov dword [ebp - 0xcc], edx
mov eax, dword [ecx + 4]
mov dword [ebp - 0xc8], eax
mov edx, dword [ecx + 8]
mov dword [ebp - 0xc4], edx
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0xc0], eax
mov ecx, dword [ebp - 0x20c]
mov edx, dword [ecx + 0xc4]
mov eax, dword [ebp - 0xe4]
and eax, 0xffff
add eax, 2
shl eax, 4
mov ecx, dword [edx + 0x1c]
add ecx, eax
mov edx, dword [ecx]
mov dword [ebp - 0xbc], edx
mov eax, dword [ecx + 4]
mov dword [ebp - 0xb8], eax
mov edx, dword [ecx + 8]
mov dword [ebp - 0xb4], edx
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0x20c]
mov edx, dword [ecx + 0xc4]
mov eax, dword [ebp - 0xe4]
and eax, 0xffff
add eax, 3
shl eax, 4
mov ecx, dword [edx + 0x1c]
add ecx, eax
mov edx, dword [ecx]
mov dword [ebp - 0xac], edx
mov eax, dword [ecx + 4]
mov dword [ebp - 0xa8], eax
mov edx, dword [ecx + 8]
mov dword [ebp - 0xa4], edx
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp - 0x20c]
mov edx, dword [ecx + 0xcc]
add edx, 1
push edx
mov eax, dword [ebp - 0x20c]
mov ecx, dword [eax + 0xc4]
mov edx, dword [ebp - 0x20c]
mov eax, dword [edx + 0xc4]
mov edx, dword [eax]
call dword [edx + 0x78]
mov byte [ebp - 0x7c], al
mov dword [ebp - 0x98], 0
mov eax, dword [ebp - 0x20c]
cmp dword [eax + 0xc8], 0
je 0x4150b8
mov ecx, dword [ebp - 0x20c]
mov edx, dword [ecx + 0xd0]
imul edx, edx, 3
mov word [ebp - 0xe8], dx
mov dword [ebp - 0x98], 1
mov eax, dword [ebp - 0x20c]
mov ecx, dword [eax + 0xc8]
mov edx, dword [ebp - 0xe8]
and edx, 0xffff
shl edx, 4
mov eax, dword [ecx + 0x1c]
add eax, edx
mov ecx, dword [eax]
mov dword [ebp - 0x50], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x4c], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x48], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x20c]
mov ecx, dword [eax + 0xc8]
mov edx, dword [ebp - 0xe8]
and edx, 0xffff
add edx, 1
shl edx, 4
mov eax, dword [ecx + 0x1c]
add eax, edx
mov ecx, dword [eax]
mov dword [ebp - 0x40], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x3c], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x38], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x20c]
mov ecx, dword [eax + 0xc8]
mov edx, dword [ebp - 0xe8]
and edx, 0xffff
add edx, 2
shl edx, 4
mov eax, dword [ecx + 0x1c]
add eax, edx
mov ecx, dword [eax]
mov dword [ebp - 0x30], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x2c], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x28], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x20c]
mov ecx, dword [eax + 0xc8]
mov edx, dword [ebp - 0xe8]
and edx, 0xffff
add edx, 3
shl edx, 4
mov eax, dword [ecx + 0x1c]
add eax, edx
mov ecx, dword [eax]
mov dword [ebp - 0x20], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x1c], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x20c]
mov ecx, dword [eax + 0xd0]
push ecx
mov edx, dword [ebp - 0x20c]
mov ecx, dword [edx + 0xc8]
mov eax, dword [ebp - 0x20c]
mov edx, dword [eax + 0xc8]
mov eax, dword [edx]
call dword [eax + 0x78]
mov byte [ebp - 0x94], al
mov ecx, dword [ebp - 0x20c]
xor edx, edx
mov dx, word [ecx + 0xd4]
mov dword [ebp - 0x210], edx
cmp dword [ebp - 0x210], 3
ja 0x4157d5
mov eax, dword [ebp - 0x210]
jmp dword [eax*4 + 0x415854]
cmp dword [eax + 4], ebx
jne 0x4157a1
cmp dword [eax + 0xc], ebx
je 0x415844
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.004151fc
je 0x415802
sti
jp 0x4157f3
pop ebp
or al, 0x75
adc dl, byte [edi - 1]
xchg ebp, eax
dec eax
invalid
adc byte [ebx - 0x723cc500], cl
cmp al, 0x31
jne 0x4157e4
mov dword [ebp + 0x10], edi
jmp 0x4157e9
add eax, esi
mov dword [ebp + 0x10], eax
call fcn.004151fc
jns 0x41582d
popal
dec ebp
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
je 0x415832
inc ebp
adc byte [ebx + 0x74c33b00], cl
aaa
test eax, 0x80000000
lea ecx, [eax + esi]
je 0x41580d
xor byte [eax + ecx + 0x25], dh
invalid
and eax, 0xffff
push eax
jmp 0x415811
add ecx, 2
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004151c1
add esp, 0xc
cmp edi, ebx
mov dword [edi], eax
je 0x4159eb
add edi, 4
add dword [ebp + 0x10], 4
jmp 0x4157f2
inc ebp
adc byte [ebx + ebp*8], al
rol byte [ebx - 0x74eb43bb], 0xbd
js 0x415839
add dword [ebp - 0x44], 0x14
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x44]
jmp 0x415793
invalid
invalid
call fcn.004151fc
inc ecx
les ebx, [eax - 0x28]
mov eax, dword [edi + 0xa0]
cmp eax, ebx
je 0x4158b0
stc
invalid
add eax, esi
cmp dword [eax], ebx
je 0x4158b0
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x4158ab
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x415895
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x41589d
cmp edx, ebx
jne 0x4159eb
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x41586c
add eax, dword [eax + 4]
jmp 0x415859
mov dword [ebp + 0xc], ebx
jmp 0x4158bb
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
inc edi
push es
jne 0x4158d3
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4158f1
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
invalid