Function at 0x1000a850
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x4c
mov edx, dword [0x1001a6b4]
mov dword [esp + 0x18], ecx
push ebx
push ebp
mov ebp, dword [0x100163f4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDC]
test edx, edx
jne 0x1000a885
push 0
call edi
mov edx, eax
mov dword [0x1001a6b4], edx
test edx, edx
je 0x1000aca3
mov ebx, dword [0x10017764]
mov dword [esp + 0x14], ebx
test ebx, ebx
jne 0x1000a8b4
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
mov dword [esp + 0x14], ebx
mov dword [0x10017764], ebx
test ebx, ebx
je 0x1000aca3
mov edx, dword [0x1001a6b4]
mov eax, dword [0x1001776c]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x1000a918
movzx ecx, word [0x10017488]
movzx esi, word [0x1001748a]
lea eax, [esi + ecx]
test eax, eax
je 0x1000aca3
push esi
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [0x1001776c], eax
test eax, eax
je 0x1000aca3
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [0x10017764]
call esi
mov ebx, dword [0x10017764]
mov eax, dword [0x1001776c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], eax
mov ecx, dword [0x10016574]
movzx eax, word [ecx*4 + 0x100176a0]
mov edx, eax
mov dword [esp + 0x18], eax
movzx eax, word [ecx*4 + 0x100176a2]
mov ecx, eax
mov dword [esp + 0x10], eax
mov eax, dword [0x1001a6b0]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ecx
test eax, eax
jne 0x1000a95b
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [0x1001a6b0], eax
test eax, eax
je 0x1000a975
push eax
push ebx
call esi
mov esi, dword [esp + 0x10]
push esi
push dword [esp + 0x1c]
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_Rectangle]
jmp 0x1000a979
mov esi, dword [esp + 0x10]
test ebp, ebp
je 0x1000a9a9
push 0xcc0020
push 0
push 0
push 0
call edi
push eax
push esi
push dword [esp + 0x2c]
push 0
push dword [0x10016418]
push dword [0x10017764]
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x1000aafb
mov eax, dword [0x1001a6b4]
mov dword [esp + 0x20], eax
mov eax, dword [0x10017764]
push 0
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_GetTopWindow]
test eax, eax
je 0x1000aafb
mov ebp, dword [sym.imp.USER32.dll_GetWindow]
push 1
push eax
call ebp
mov esi, eax
test esi, esi
je 0x1000aafb
mov ebx, dword [esp + 0x20]
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1000aae8
lea eax, [esp + 0x34]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x1000aa8b
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x40]
mov edi, eax
sub ecx, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x40]
sub ecx, dword [esp + 0x38]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebp, eax
push ebp
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [section..data]
push edi
push esi
call dword [sym.imp.USER32.dll_PrintWindow]
test eax, eax
je 0x1000aa77
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x38]
sub eax, edx
mov ecx, dword [esp + 0x34]
push 0x40cc0020
push 0
push 0
push edi
push eax
mov eax, dword [esp + 0x50]
sub eax, ecx
sub ecx, dword [0x10016418]
push eax
push edx
push ecx
push dword [esp + 0x44]
call dword [sym.imp.GDI32.dll_BitBlt]
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ebp, dword [sym.imp.USER32.dll_GetWindow]
mov eax, dword [section..data]
xor ecx, ecx
test eax, eax
sete cl
test eax, eax
je 0x1000aac5
push 0xa
lea eax, [esp + 0x48]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp eax, 6
jne 0x1000aae8
push dword [0x1001679c]
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1000aae8
jmp 0x1000aac9
test ecx, ecx
je 0x1000aae8
push 0xffffffffffffffec
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x2000000
jne 0x1000aae8
or eax, 0x2000000
push eax
push 0xffffffffffffffec
push esi
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 3
push esi
call ebp
mov esi, eax
test esi, esi
jne 0x1000a9e4
mov ebx, dword [esp + 0x14]
push dword [0x10017768]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [0x100165e8]
mov edx, dword [0x100165e4]
sub edx, dword [0x10016418]
lea eax, [ecx + 2]
sub ecx, 2
push eax
lea eax, [edx + 2]
push eax
push ecx
lea eax, [edx - 2]
push eax
push ebx
call dword [sym.imp.GDI32.dll_Rectangle]
mov ecx, dword [esp + 0x18]
mov esi, 1
mov eax, dword [esp + 0x10]
mov dword [0x10016550], eax
imul eax, ecx
mov dword [0x1001654c], ecx
movzx ecx, word [0x10017488]
lea eax, [eax + eax*2]
mov dword [0x1001655c], eax
movzx eax, word [0x1001748a]
imul ecx, eax
mov eax, dword [0x10016424]
lea edi, [ecx + ecx*2]
test eax, eax
jne 0x1000abdd
mov eax, dword [0x1001653c]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFree]
test eax, eax
je 0x1000ab8a
push 0x8000
push 0
push eax
call esi
mov eax, dword [0x1001641c]
test eax, eax
je 0x1000ab9d
push 0x8000
push 0
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x3000
push edi
push 0
call esi
push 4
push 0x3000
push edi
push 0
mov dword [0x10016424], eax
call esi
push 4
push 0x3000
push edi
push 0
mov dword [0x1001653c], eax
call esi
mov dword [0x1001641c], eax
xor esi, esi
mov eax, dword [0x10016424]
push 0
push 0x10016548
push eax
push dword [esp + 0x1c]
push 0
push dword [esp + 0x30]
push ebx
call dword [sym.imp.GDI32.dll_GetDIBits]
mov eax, dword [esp + 0x28]
xor ecx, ecx
mov dword [eax], ecx
mov ecx, dword [esp + 0x2c]
mov word [eax + 4], cx
mov ecx, dword [esp + 0x30]
mov word [eax + 6], cx
test esi, esi
je 0x1000acad
xor eax, eax
mov ebp, 1
cmp dword [0x1001655c], eax
jbe 0x1000aca3
nop word [eax + eax]
mov esi, dword [0x10016424]
mov bl, byte [esi + eax + 2]
movzx edx, word [esi + eax]
movzx ecx, bl
add edx, ecx
jne 0x1000ac51
inc bl
mov byte [esi + eax + 2], bl
mov esi, dword [0x10016424]
mov ecx, dword [0x1001653c]
movzx edi, word [esi + eax]
mov dl, byte [esi + eax + 2]
cmp di, word [ecx + eax]
jne 0x1000ac84
cmp dl, byte [ecx + eax + 2]
jne 0x1000ac84
xor ecx, ecx
mov word [esi + eax], cx
mov ecx, dword [0x10016424]
mov byte [ecx + eax + 2], 0
mov ecx, dword [0x1001653c]
jmp 0x1000ac86
xor ebp, ebp
mov word [ecx + eax], di
mov ecx, dword [0x1001653c]
mov byte [ecx + eax + 2], dl
add eax, 3
cmp eax, dword [0x1001655c]
jb 0x1000ac30
test ebp, ebp
je 0x1000acc7
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
push dword [0x1001655c]
push dword [0x10016424]
push dword [0x1001653c]
call section..text
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x4c
ret