Function at 0x10038010
Capabilities:
Capture screenshot
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d9c79
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push edi
mov eax, dword [0x10145188]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x1003805a
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push 0
push 0
push 0x100fae04
call dword [sym.imp.GDI32.dll_CreateDCW]
push eax
mov dword [ebp - 0x24], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [edi]
mov edi, dword [edi + 4]
mov ebx, eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x10], ecx
test ecx, ecx
jns 0x10038096
mov dword [ebp - 0x10], 0
test edi, edi
jns 0x1003809c
xor edi, edi
mov ecx, dword [esi + 0x220]
cmp edx, ecx
jg 0x100380a8
mov ecx, edx
mov edx, dword [esi + 0x224]
cmp eax, edx
jle 0x100380b4
mov eax, edx
sub ecx, dword [ebp - 0x10]
sub eax, edi
push eax
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x24]
push ecx
push eax
mov dword [ebp - 0x14], ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x30], eax
je 0x10038156
lea ecx, [ebp - 0x44]
call dword [sym.imp.mfc100u.dll_CDC::CDC]
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.mfc100u.dll_CDC::FromHandle]
test eax, eax
je 0x100380fa
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [ebp - 0x44]
call dword [sym.imp.mfc100u.dll_CDC::Attach]
mov eax, dword [esi + 0x228]
test eax, eax
je 0x10038118
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0x40]
push eax
push ecx
call dword [sym.imp.mfc100u.dll_CDC::SelectGdiObject]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp + 8]
push 0xcc0020
push edi
push edx
mov edx, dword [ebp - 0x14]
push eax
push ecx
push edx
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
call dword [0x100ec8cc]
jmp 0x10038177
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 8]
push 0xcc0020
push edi
push eax
mov eax, dword [ebp - 0x14]
push ecx
push edx
push eax
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [ebp - 0x30]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
mov dword [ebp - 0x30], eax
call dword [sym.imp.mfc100u.dll_CDC::FromHandle]
mov edx, dword [ebp - 0x14]
push 8
push 8
push edi
push edx
push 0
lea ecx, [esi + 0xbc]
push 0
mov ebx, eax
call fcn.100408e0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
push 8
push 8
mov eax, edi
neg eax
push eax
push ecx
add edx, edi
push edx
push 0
mov eax, ebx
lea ecx, [esi + 0xbc]
call fcn.100408e0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
push 8
push 8
push eax
push ecx
push edi
push 0
mov eax, ebx
lea ecx, [esi + 0xbc]
call fcn.100408e0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
push 8
push 8
push edx
mov edx, dword [ebp - 0x14]
mov ecx, eax
neg ecx
push ecx
add edx, eax
push edi
push edx
mov eax, ebx
lea ecx, [esi + 0xbc]
call fcn.100408e0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
push 0
push 0
push eax
push ecx
push edi
push edx
mov ecx, ebx
call dword [sym.imp.mfc100u.dll_CDC::Draw3dRect]
mov eax, dword [ebp - 0x10]
lea ecx, [edi - 0x18]
mov dword [ebp - 0x50], ecx
cmp dword [ebp - 0x50], 0
lea edx, [eax + 2]
lea ecx, [eax + 0x10c]
lea eax, [edi - 2]
jge 0x10038245
lea eax, [edi + 2]
mov dword [ebp - 0x50], eax
lea eax, [edi + 0x18]
mov edi, dword [ebp - 0x50]
push 8
push 8
sub eax, edi
push eax
sub ecx, edx
push ecx
push edi
push edx
mov eax, ebx
lea ecx, [esi + 0xbc]
call fcn.100408e0
mov ecx, dword [esi + 0xf0]
mov eax, dword [esi + 0xf8]
mov edx, dword [esi + 0xf4]
sub eax, ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0xfc]
sub eax, edx
mov dword [ebp - 0x2c], eax
lea eax, [edx - 2]
mov dword [ebp - 0x28], ecx
add ecx, 0xfffffffe
push eax
lea edi, [esi + 0xc4]
push ecx
mov eax, ebx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], ecx
call fcn.10040810
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
cdq
sub eax, edx
mov edx, dword [ebp - 0x28]
mov dword [esi + 0x100], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffffe
sar eax, 1
lea eax, [eax + edx - 2]
push ecx
mov dword [ebp - 0x20], eax
push eax
mov eax, ebx
mov dword [esi + 0x104], ecx
call fcn.10040810
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x28]
mov dword [esi + 0x110], eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffffe
lea ecx, [ecx + edx - 3]
push eax
mov dword [esi + 0x114], eax
push ecx
mov eax, ebx
mov dword [ebp - 0x1c], ecx
call fcn.10040810
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0x120], eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffffe
mov dword [esi + 0x124], eax
mov eax, dword [ebp - 0x2c]
cdq
sub eax, edx
mov edx, dword [ebp - 0x18]
sar eax, 1
lea eax, [eax + ecx - 2]
push eax
mov dword [ebp - 0x28], eax
push edx
mov eax, ebx
call fcn.10040810
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x130], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x134], eax
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov eax, ebx
call fcn.10040810
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov dword [esi + 0x140], edx
mov edx, dword [ebp - 0x10]
mov dword [esi + 0x144], eax
lea eax, [ecx + edx - 3]
push eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, ebx
call fcn.10040810
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
push eax
mov dword [esi + 0x154], eax
push edx
mov eax, ebx
mov dword [esi + 0x150], ecx
call fcn.10040810
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [esi + 0x160], eax
mov eax, dword [ebp - 0x10]
push eax
mov dword [esi + 0x164], eax
push ecx
mov eax, ebx
call fcn.10040810
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x170], edx
mov dword [esi + 0x174], eax
mov ecx, dword [esi + 0x100]
mov edx, dword [esi + 0x104]
mov eax, dword [esi + 0x110]
add ecx, 0x14
add edx, 0x14
mov dword [esi + 0x108], ecx
mov ecx, dword [esi + 0x114]
mov dword [esi + 0x10c], edx
mov edx, dword [esi + 0x120]
add eax, 0x14
add ecx, 0x14
add edx, 0x14
mov dword [esi + 0x118], eax
mov eax, dword [esi + 0x124]
mov dword [esi + 0x11c], ecx
mov ecx, dword [esi + 0x130]
mov dword [esi + 0x128], edx
mov edx, dword [esi + 0x134]
add eax, 0x14
add ecx, 0x14
add edx, 0x14
mov dword [esi + 0x12c], eax
mov eax, dword [esi + 0x140]
mov dword [esi + 0x138], ecx
mov ecx, dword [esi + 0x144]
mov dword [esi + 0x13c], edx
mov edx, dword [esi + 0x150]
add eax, 0x14
add ecx, 0x14
add edx, 0x14
mov dword [esi + 0x148], eax
mov eax, dword [esi + 0x154]
mov dword [esi + 0x14c], ecx
mov ecx, dword [esi + 0x160]
mov dword [esi + 0x158], edx
mov edx, dword [esi + 0x164]
add eax, 0x14
add ecx, 0x14
add edx, 0x14
mov dword [esi + 0x15c], eax
mov dword [esi + 0x168], ecx
mov dword [esi + 0x16c], edx
mov eax, dword [esi + 0x170]
mov ecx, dword [esi + 0x174]
mov edi, dword [ebp - 0x24]
add eax, 0x14
add ecx, 0x14
push edi
mov dword [esi + 0x178], eax
mov dword [esi + 0x17c], ecx
call dword [sym.imp.mfc100u.dll_CDC::FromHandle]
test ebx, ebx
je 0x100384c7
mov ebx, dword [ebx + 4]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
push 0xcc0020
push 0
push 0
push ebx
push edx
mov edx, dword [eax + 4]
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
push edi
mov edi, dword [sym.imp.GDI32.dll_DeleteDC]
call edi
mov eax, dword [ebp - 0x34]
push eax
call edi
cmp dword [ebp + 0xc], 0
je 0x10038522
mov ecx, dword [esi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x10038522
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov edx, dword [ebp - 0x30]
push edx
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8