Function at 0x64af28
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
mov dword [ebp - 0x2c], edx
mov dword [ebp - 4], eax
mov dl, 1
mov eax, dword [0x4a1ef4]
call fcn.004ab564
mov dword [sym.DatCutter.exe__Scolordialog_b], eax
mov eax, dword [ebp - 4]
call fcn.004bcfb4
call fcn.004c2158
mov edx, eax
mov eax, dword [sym.DatCutter.exe__Scolordialog_b]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
call fcn.004bcfb4
call fcn.004c2124
mov edx, eax
mov eax, dword [sym.DatCutter.exe__Scolordialog_b]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0
call sub.USER32.DLL_GetDC
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call sub.GDI32.DLL_SaveDC
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x64b22c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xcc0020
mov eax, dword [ebp - 4]
call fcn.004bcfb4
call fcn.004c2140
push eax
mov eax, dword [ebp - 4]
call fcn.004bcfb4
call fcn.004c210c
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [sym.DatCutter.exe__Scolordialog_b]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
mov eax, dword [sym.DatCutter.exe__Scolordialog_b]
mov edx, dword [eax]
call dword [edx + 0x30]
push eax
push 0
push 0
mov eax, dword [sym.DatCutter.exe__Scolordialog_b]
call fcn.004abe84
call fcn.004a65ec
push eax
call sub.GDI32.DLL_BitBlt
mov ecx, dword [0x6b0740]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x4b45a8]
call fcn.004bad10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc], 0xffffff9e
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.004bbd4c
mov dl, 1
mov eax, dword [ebp - 0x10]
call fcn.004ee9dc
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x4c8e9c]
call fcn.004cafe4
mov edx, dword [ebp - 4]
mov dword [edx + 0x3fc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3fc]
mov dl, 1
call fcn.004cb504
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3fc]
xor edx, edx
call fcn.004cb4b0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3fc]
xor edx, edx
call fcn.004f026c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3fc]
xor edx, edx
call fcn.004f0230
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3e8]
mov edx, dword [eax + 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3fc]
call fcn.004e674c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3e8]
mov edx, dword [eax + 0x4c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3fc]
call fcn.004e6780
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3e8]
mov eax, dword [eax + 0x1b4]
mov eax, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3fc]
call fcn.004e72c4
lea ecx, [ebp - 0x34]
xor edx, edx
xor eax, eax
call fcn.0041c13c
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3e8]
call fcn.004e6b08
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3fc]
mov edx, dword [ebp - 0x18]
call fcn.004e66e4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3fc]
mov edx, dword [ebp - 0x14]
call fcn.004e6718
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3fc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x78]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3fc]
mov dl, 1
call fcn.004e702c
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov dword [eax + 0xcc], edx
mov dword [eax + 0xc8], sym.DatCutter.exe__Scolordialog_TsColorDialogForm_PickFormMouseMove_qqrp14System_TObject46System__Set_t18Classes_Classes__1_iuc_0_
mov dx, 0xffeb
mov eax, dword [ebp - 0x10]
call fcn.004e7360
mov dx, 0xfffd
mov eax, dword [ebp - 0x10]
call fcn.004e7360
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.004bcc78
mov dl, 2
mov eax, dword [ebp - 0x10]
call fcn.004bd760
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov dword [eax + 0x31c], edx
mov dword [eax + 0x318], sym.DatCutter.exe__Scolordialog_TsColorDialogForm_PickFormPaint_qqrp14System_TObject
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc4], edx
mov dword [eax + 0xc0], sym.DatCutter.exe__Scolordialog_TsColorDialogForm_PickFormMouseDown_qqrp14System_TObject21Controls_TMouseButton46System__Set_t18Cl
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov dword [eax + 0x21c], edx
mov dword [eax + 0x218], sym.DatCutter.exe__Scolordialog_TsColorDialogForm_PickFormKeyDown_qqrp14System_TObjectrus46System__Set_t18Classes_Classes__1_iuc_0
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x110]
mov eax, dword [ebp - 4]
add eax, 0x3fc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 0x20]
call fcn.004570c8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x24]
call fcn.004570c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x64b233
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.GDI32.DLL_RestoreDC
mov eax, dword [sym.DatCutter.exe__Scolordialog_b]
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [sym.DatCutter.exe__Scolordialog_b], eax
mov eax, dword [ebp - 0x28]
call fcn.004570c8
ret