Function at 0x430f68
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 9], 0
cmp dword [ebp - 4], 0
je 0x43116a
cmp dword [ebp - 8], 0
je 0x43116a
mov edx, dword [ebp - 4]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov edx, dword [ebp - 8]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
push 0
call sub.user32.dll_GetDC
mov esi, eax
test esi, esi
je 0x43116a
push 0x431178
mov eax, dword [0x457680]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
je 0x430fdf
call sub.user32.dll_GetDesktopWindow
push eax
call dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
jmp 0x430fe6
mov dword [ebp - 0x1c], 0x60
push 0x26
push esi
call sub.gdi32.dll_GetDeviceCaps
and eax, 0x100
cmp eax, 0x100
jne 0x43104b
mov eax, 0x404
call fcn.00402a30
mov edi, eax
mov eax, edi
xor ecx, ecx
mov edx, 0x404
call fcn.004030e4
mov word [edi], 0x300
lea eax, [edi + 4]
push eax
push pe_nt_image_headers32
push 0
push esi
call sub.gdi32.dll_GetSystemPaletteEntries
mov word [edi + 2], ax
cmp word [edi + 2], 0
je 0x431044
push edi
call sub.gdi32.dll_CreatePalette
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, edi
call fcn.00402a60
mov eax, dword [ebp - 4]
imul dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
fild dword [ebp - 0x24]
fdiv dword [0x431188]
call fcn.00402ea0
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 8]
imul dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
fild dword [ebp - 0x24]
fdiv dword [0x431188]
call fcn.00402ea0
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
push esi
call sub.gdi32.dll_CreateCompatibleDC
mov edi, eax
test edi, edi
jne 0x4310a4
push esi
push 0
call sub.user32.dll_ReleaseDC
jmp 0x43116a
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
push esi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4310d6
push edi
call sub.gdi32.dll_DeleteDC
push esi
push 0
call sub.user32.dll_ReleaseDC
jmp 0x43116a
mov eax, dword [ebp - 0x18]
push eax
push edi
call sub.gdi32.dll_SelectObject
cmp byte [ebp + 8], 0
je 0x431114
push 0xcc0020
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 0
push 0
push esi
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_StretchBlt
jmp 0x431138
push 0xcc0020
push 0
push 0
push esi
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x11]
push eax
call sub.user32.dll_GetCursorPos
lea edx, [ebp - 0x11]
mov eax, edi
call fcn.00430f20
mov edx, dword [ebp - 0x18]
mov eax, ebx
call fcn.0042aabc
mov eax, dword [ebp - 0x18]
push eax
call sub.gdi32.dll_DeleteObject
push esi
push 0
call sub.user32.dll_ReleaseDC
mov byte [ebp - 9], 1
mov al, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8