Function at 0x1002aa00
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0xa8
push ebx
push ebp
push esi
mov esi, dword [esp + 0xb8]
mov ebx, ecx
push edi
test esi, esi
mov dword [esp + 0x18], ebx
je 0x1002ada9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
lea ecx, [esp + 0x3c]
mov ebp, eax
push ecx
push esi
mov ecx, ebx
call fcn.1002ae10
mov edi, eax
test edi, edi
je 0x1002aaa0
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov esi, eax
push 0x58
push esi
call ebp
push 0x5a
push esi
mov ebx, eax
call ebp
push esi
push 0
mov ebp, eax
call dword [sym.imp.USER32.dll_ReleaseDC]
movsx edx, word [esp + 0x42]
movsx eax, word [esp + 0x46]
sub eax, edx
mov ecx, dword [esp + 0x4a]
imul eax, ebx
cdq
and ecx, 0xffff
mov ebx, dword [esp + 0x18]
idiv ecx
movsx edx, word [esp + 0x44]
mov esi, eax
movsx eax, word [esp + 0x48]
sub eax, edx
mov dword [esp + 0x14], esi
imul eax, ebp
cdq
idiv ecx
mov dword [esp + 0x10], eax
jmp 0x1002aae6
mov eax, dword [esi]
push 0
push ebp
mov ecx, esi
call dword [eax + 0x10]
lea ecx, [esp + 0x54]
push ecx
push esi
mov ecx, ebx
call fcn.1002afb0
mov edi, eax
test edi, edi
jne 0x1002aaca
lea edx, [ebx + 0x44]
mov edi, 0x100c65e4
jmp 0x1002ad8c
mov esi, dword [esp + 0x64]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x60]
sub esi, edx
sub eax, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov ecx, dword [ebx + 0x148]
test ecx, ecx
je 0x1002ab04
push edi
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
lea edx, [ebx + 0x44]
mov edi, 0x100c65d8
jmp 0x1002ad8c
test esi, esi
je 0x1002ad7d
test eax, eax
je 0x1002ad7d
mov eax, dword [esp + 0xc0]
test eax, eax
je 0x1002ab23
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc4]
test eax, eax
je 0x1002ab32
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
mov ecx, ebx
call fcn.1002b080
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [esp + 0x14]
mov ebx, eax
mov eax, dword [esp + 0x10]
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebp, eax
push ebx
mov dword [esp + 0x20], ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebx
xor ebx, ebx
push ebx
mov esi, eax
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp esi, ebx
je 0x1002ad5c
cmp ebp, ebx
je 0x1002ad3f
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push 0xc
push esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push ebp
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 5
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_GetSysColor]
mov ebx, dword [sym.imp.GDI32.dll_SetBkColor]
push eax
push esi
call ebx
push 0
push 0
lea ecx, [esp + 0x34]
push 0
push ecx
push 2
push 0
push 0
push esi
mov dword [esp + 0x40], eax
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov edx, dword [esp + 0x20]
push edx
push esi
call ebx
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_GetEnhMetaFilePaletteEntries]
mov ebx, eax
test ebx, ebx
je 0x1002ac7a
lea eax, [ebx*4 + 4]
push eax
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x1002ac3f
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
push edi
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
mov edx, dword [esp + 0x18]
mov edi, 0x100c65d8
add edx, 0x44
jmp 0x1002ad8c
lea ecx, [ebp + 4]
mov word [ebp], 0x300
push ecx
push ebx
push edi
mov word [ebp + 2], bx
call dword [sym.imp.GDI32.dll_GetEnhMetaFilePaletteEntries]
push ebp
call dword [sym.imp.GDI32.dll_CreatePalette]
push ebp
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
push 0
push ebx
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
push esi
call dword [sym.imp.GDI32.dll_RealizePalette]
mov ebp, dword [esp + 0x1c]
lea edx, [esp + 0x2c]
push edx
push edi
push esi
call dword [sym.imp.GDI32.dll_PlayEnhMetaFile]
mov eax, dword [esp + 0x24]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
mov edi, dword [esp + 0x18]
mov eax, dword [edi + 0x148]
test eax, eax
je 0x1002acc3
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
lea edx, [edi + 0x44]
mov edi, 0x100c65d8
jmp 0x1002ad8c
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push 0xa
push ecx
push edx
push eax
mov ecx, edi
call sym.YunImage.fne_public:_void____thiscall_CxImage::Create_unsigned_long_int__unsigned_long_int__unsigned_long_int__unsigned_long_int_
test eax, eax
jne 0x1002acfc
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xa8
ret 0xc
mov ecx, dword [edi + 4]
push 0
push ecx
push 0
mov ecx, edi
call sym.YunImage.fne_public:_unsigned_char____thiscall_CxImage::GetBits_unsigned_long_int_
mov edx, dword [esp + 0x18]
push eax
push edx
push 0
push ebp
push esi
call dword [sym.imp.GDI32.dll_GetDIBits]
push ebp
mov edi, eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
xor eax, eax
test edi, edi
pop edi
pop esi
pop ebp
pop ebx
setne al
add esp, 0xa8
ret 0xc
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
push edi
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xa8
ret 0xc
cmp ebp, ebx
je 0x1002ad67
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xa8
ret 0xc
push edi
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
lea edx, [ebx + 0x44]
mov edi, 0x100c65d0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xa8
ret 0xc