Function at 0x5163c0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
push ebx
cmp dword [ebp + 8], 0
je 0x5163de
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa8], eax
jmp 0x51646f
cmp dword [0x75affc], 0
jne 0x5163ec
jmp 0x5167ce
cmp dword [0x75affc], 1
jne 0x516405
mov ecx, dword [0x751ac4]
mov edx, dword [ecx]
mov dword [ebp - 0xa8], edx
jmp 0x51646f
call fcn.0056d660
mov word [0x7661a8], 5
mov dword [ebp - 0xac], 0x5628b0
push 0
mov eax, dword [ebp - 0xac]
push eax
mov ecx, dword [0x7567cc]
push ecx
push str.SaveImage
mov edx, dword [0x761714]
push edx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp dword [0x752068], 0
jl 0x516455
mov eax, dword [0x752068]
cmp eax, dword [0x75affc]
jl 0x51645a
jmp 0x5167ce
mov ecx, dword [0x752068]
mov edx, dword [0x751ac4]
mov eax, dword [edx + ecx*4]
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0xa8]
mov edx, dword [ecx]
mov dword [ebp - 0xe0], edx
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax + 4]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xa8]
push edx
call fcn.00423fa0
add esp, 4
test eax, eax
je 0x5164a1
jmp 0x5167ce
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax + 0x510]
mov dword [ebp - 0xe4], ecx
mov dword [ebp - 4], 0x9c
mov dword [ebp - 0xbc], 0
jmp 0x5164d5
mov edx, dword [ebp - 0xbc]
add edx, 1
mov dword [ebp - 0xbc], edx
mov eax, dword [ebp - 0xbc]
cmp eax, dword [ebp - 4]
jge 0x5164f0
mov ecx, dword [ebp - 0xbc]
mov byte [ebp + ecx - 0xa4], 0
jmp 0x5164c6
mov dword [ebp - 0x3c], 0x18
mov edx, dword [ebp - 0xe0]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x34], eax
mov word [ebp - 0x80], 0x9c
mov dword [ebp - 0x7c], 0x1c0000
lea ecx, [ebp - 0xa4]
push ecx
push 0
push 0
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
mov dword [ebp - 0xd0], eax
cmp dword [ebp - 0xd0], 0
jne 0x51654c
mov edx, dword [ebp - 0xa8]
push edx
call fcn.00424060
add esp, 4
jmp 0x5167ce
mov eax, dword [ebp - 0xd0]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0xc4], eax
cmp dword [ebp - 0xc4], 0
jne 0x51657c
mov ecx, dword [ebp - 0xa8]
push ecx
call fcn.00424060
add esp, 4
jmp 0x5167ce
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xe0]
push eax
mov ecx, dword [ebp - 0xd0]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0xd4], 0
jne 0x5165c4
mov edx, dword [ebp - 0xa8]
push edx
call fcn.00424060
add esp, 4
mov eax, dword [ebp - 0xc4]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x5167ce
mov ecx, dword [ebp - 0xd4]
push ecx
mov edx, dword [ebp - 0xc4]
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 0xd0]
push eax
call dword [sym.imp.GDI32.dll_GetMapMode]
push eax
mov ecx, dword [ebp - 0xc4]
push ecx
call dword [sym.imp.GDI32.dll_SetMapMode]
mov edx, dword [ebp - 0xe0]
mov dword [ebp - 0xdc], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0xd8], eax
push 1
lea ecx, [ebp - 0xdc]
push ecx
mov edx, dword [ebp - 0xd0]
push edx
call dword [sym.imp.GDI32.dll_DPtoLP]
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xc8], 0
push 1
lea eax, [ebp - 0xcc]
push eax
mov ecx, dword [ebp - 0xc4]
push ecx
call dword [sym.imp.GDI32.dll_DPtoLP]
mov dword [ebp - 0xb4], 0
push 2
mov edx, dword [ebp - 8]
push edx
push str.Gen_Clip_Data
call fcn.00518a10
mov dword [ebp - 0xc0], 0
jmp 0x51667d
mov eax, dword [ebp - 0xc0]
add eax, 1
mov dword [ebp - 0xc0], eax
mov ecx, dword [ebp - 0xc0]
cmp ecx, dword [ebp - 8]
jge 0x516760
mov edx, dword [ebp - 0xc0]
push edx
call fcn.00518c30
test eax, eax
je 0x5166a5
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc0], eax
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0xb8], 0
jmp 0x5166cc
mov edx, dword [ebp - 0xb8]
add edx, 1
mov dword [ebp - 0xb8], edx
mov eax, dword [ebp - 0xb8]
cmp eax, dword [ebp - 0xe0]
jge 0x516749
mov ecx, dword [ebp - 0xb0]
mov edx, dword [ebp - 0xe4]
xor eax, eax
mov al, byte [edx + ecx*4 + 2]
shl eax, 0x10
mov ecx, dword [ebp - 0xb0]
mov edx, dword [ebp - 0xe4]
xor ebx, ebx
mov bl, byte [edx + ecx*4 + 1]
shl ebx, 8
add eax, ebx
mov ecx, dword [ebp - 0xb0]
mov edx, dword [ebp - 0xe4]
xor ebx, ebx
mov bl, byte [edx + ecx*4]
add eax, ebx
push eax
mov eax, dword [ebp - 0xc0]
push eax
mov ecx, dword [ebp - 0xb8]
push ecx
mov edx, dword [ebp - 0xc4]
push edx
call dword [sym.imp.GDI32.dll_SetPixelV]
mov eax, dword [ebp - 0xb0]
add eax, 1
mov dword [ebp - 0xb0], eax
jmp 0x5166bd
mov ecx, dword [ebp - 0xb4]
add ecx, dword [ebp - 0xe0]
mov dword [ebp - 0xb4], ecx
jmp 0x51666e
call fcn.00518ff0
mov edx, dword [0x7567cc]
push edx
call dword [sym.imp.USER32.dll_OpenClipboard]
cmp eax, 1
jne 0x5167a5
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [ebp - 0xd4]
push eax
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x51679d
mov ecx, dword [ebp - 0xd4]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x5167b2
mov edx, dword [ebp - 0xd4]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0xc4]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [ebp - 0xa8]
push ecx
call fcn.00424060
add esp, 4
pop ebx
mov esp, ebp
pop ebp
ret