Function at 0x52d70c
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov byte [ebp - 0x39], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp byte [sym.DatCutter.exe__Svclutils_acGraphPainting], 0
jne 0x52dcb1
mov byte [sym.DatCutter.exe__Svclutils_acGraphPainting], 1
mov byte [ebp - 0x31], 0
xor eax, eax
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 8]
cmp byte [eax + 0x59], 0
jne 0x52d76c
mov eax, dword [ebp - 8]
test byte [eax + 0x1c], 0x10
jne 0x52d76c
cmp byte [ebp + 8], 0
jne 0x52dcaa
mov eax, dword [ebp - 8]
call fcn.004ebb8c
test eax, eax
jle 0x52dcaa
xor eax, eax
push ebp
push 0x52dca3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_GetClipBox
dec eax
je 0x52d7aa
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x44]
je 0x52d7aa
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x40]
jne 0x52d7cf
mov eax, dword [ebp - 8]
call fcn.004f0054
xor ecx, ecx
mov edx, 0x16
call sym.DatCutter.exe__Svclutils_SendAMessage_qqrp6HWND__ii
mov byte [sym.DatCutter.exe__Svclutils_acGraphPainting], 0
call fcn.00457c94
jmp 0x52dcb1
mov byte [ebp - 0x54], 0
mov byte [ebp - 0x53], 0
lea eax, [ebp - 0x74]
xor ecx, ecx
mov edx, dword [ebp - 8]
call sym.DatCutter.exe__Sgraphutils_GetBGInfo_qqrpx16Sconst_TacBGInfopx17Controls_TControlo
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
call fcn.004ebb8c
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x20]
jge 0x52db86
push ebp
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004ebb50
call fcn.0052d66c
pop ecx
test al, al
je 0x52db77
mov eax, dword [ebp - 8]
mov edx, dword [0x4b45a8]
call fcn.004572e4
test al, al
je 0x52d882
mov eax, dword [ebp - 8]
cmp byte [eax + 0x29e], 2
jne 0x52d882
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004ebb50
cmp byte [eax + 0x5d], 0
je 0x52d882
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004ebb50
mov edx, dword [0x4e0090]
call fcn.004572e4
test al, al
je 0x52d882
push 0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004ebb50
mov edx, dword [sym.DatCutter.exe__Smessages_SM_ALPHACMD]
mov edx, dword [edx]
mov ecx, 0x120000
call fcn.004e85fc
cmp byte [ebp - 0x31], 0
jne 0x52da0e
push 0
call sub.USER32.DLL_GetDC
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x4c]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x48]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.GDI32.DLL_CreateCompatibleBitmap
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x24]
push eax
push 0
call sub.USER32.DLL_ReleaseDC
push 0
call sub.GDI32.DLL_CreateCompatibleDC
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x31], 1
mov eax, dword [ebp - 0x20]
dec eax
test eax, eax
jl 0x52da0e
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x1c], 0
push ebp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004ebb50
call fcn.0052d66c
pop ecx
test al, al
je 0x52da02
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004ebb50
test byte [eax + 0x50], 0x40
jne 0x52d9cc
cmp byte [ebp - 0x54], 2
jne 0x52d9a3
push 0xcc0020
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004ebb50
mov eax, dword [eax + 0x44]
add eax, dword [ebp - 0x68]
push eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004ebb50
mov eax, dword [eax + 0x40]
add eax, dword [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x74]
call fcn.004abe84
call fcn.004a65ec
push eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004ebb50
mov eax, dword [eax + 0x4c]
push eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004ebb50
mov eax, dword [eax + 0x48]
push eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004ebb50
mov eax, dword [eax + 0x44]
push eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004ebb50
mov eax, dword [eax + 0x40]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.GDI32.DLL_BitBlt
jmp 0x52da02
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004ebb50
lea edx, [ebp - 0x84]
call fcn.004e699c
lea edx, [ebp - 0x84]
mov ecx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x28]
call sym.DatCutter.exe__Sgraphutils_FillDC_qqrp5HDC__rx11Types_TRectx15Graphics_TColor
jmp 0x52da02
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004ebb50
call sym.DatCutter.exe__Svclutils_GetControlColor_qqrp17Controls_TControl
push eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004ebb50
lea edx, [ebp - 0x84]
call fcn.004e699c
lea edx, [ebp - 0x84]
mov eax, dword [ebp - 0x28]
pop ecx
call sym.DatCutter.exe__Sgraphutils_FillDC_qqrp5HDC__rx11Types_TRectx15Graphics_TColor
inc dword [ebp - 0x1c]
dec dword [ebp - 0x38]
jne 0x52d8f0
mov eax, dword [ebp - 0x28]
push eax
call sub.GDI32.DLL_SaveDC
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004ebb50
lea edx, [ebp - 0x84]
call fcn.004e699c
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_RectVisible
test eax, eax
jne 0x52da5b
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004ebb50
xor ecx, ecx
mov edx, 0x16
call sym.DatCutter.exe__Svclutils_SendAMessage_qqrp17Controls_TControlii
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004ebb50
mov eax, dword [eax + 0x44]
push eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004ebb50
mov edx, dword [eax + 0x40]
mov eax, dword [ebp - 0x28]
pop ecx
call fcn.004e54e4
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004ebb50
mov eax, dword [eax + 0x4c]
push eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004ebb50
mov eax, dword [eax + 0x48]
push eax
push 0
push 0
mov eax, dword [ebp - 0x28]
push eax
call sub.GDI32.DLL_IntersectClipRect
mov eax, dword [ebp - 8]
test byte [eax + 0x54], 0x80
je 0x52dad7
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004ebb50
mov ebx, dword [eax + 0x54]
or ebx, dword [0x52dcbc]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004ebb50
mov dword [eax + 0x54], ebx
xor eax, eax
push ebp
push 0x52db09
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004ebb50
mov ecx, dword [ebp - 0x28]
mov edx, 0xf
call fcn.004e85fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52db13
mov eax, dword [ebp - 8]
test byte [eax + 0x54], 0x80
je 0x52db40
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004ebb50
mov ebx, dword [0x52dcbc]
not ebx
and ebx, dword [eax + 0x54]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004ebb50
mov dword [eax + 0x54], ebx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004ebb50
mov eax, dword [eax + 0x44]
neg eax
push eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004ebb50
mov edx, dword [eax + 0x40]
neg edx
mov eax, dword [ebp - 0x28]
pop ecx
call fcn.004e54e4
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.GDI32.DLL_RestoreDC
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x20]
jl 0x52d800
cmp byte [ebp - 0x31], 0
je 0x52dc70
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x20]
jge 0x52dc70
push ebp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004ebb50
call fcn.0052d66c
pop ecx
test al, al
je 0x52dc61
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004ebb50
mov eax, dword [eax + 0x44]
add eax, dword [ebp - 0xc]
push eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004ebb50
mov eax, dword [eax + 0x40]
add eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.GDI32.DLL_GetPixel
cmp eax, 0xff00ff
je 0x52dc61
push 0xcc0020
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004ebb50
mov eax, dword [eax + 0x44]
push eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004ebb50
mov eax, dword [eax + 0x40]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004ebb50
mov eax, dword [eax + 0x4c]
push eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004ebb50
mov eax, dword [eax + 0x48]
push eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004ebb50
mov eax, dword [eax + 0x44]
add eax, dword [ebp - 0xc]
push eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004ebb50
mov eax, dword [eax + 0x40]
add eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_BitBlt
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x20]
jl 0x52dba1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52dcaa
cmp byte [ebp - 0x31], 0
je 0x52dca2
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.GDI32.DLL_SelectObject
mov eax, dword [ebp - 0x28]
push eax
call sub.GDI32.DLL_DeleteDC
mov eax, dword [ebp - 0x2c]
push eax
call sub.GDI32.DLL_DeleteObject
ret
mov byte [sym.DatCutter.exe__Svclutils_acGraphPainting], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc