Function at 0x1012628
Capabilities:
Capture screenshot

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa8
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call fcn.0100787c
cmp eax, 8
mov dword [ebp - 0x34], eax
ja 0x101265e
mov dword [esi + 0x134], 1
mov ebx, 0x270
jmp 0x1012669
mov dword [esi + 0x134], edi
mov ebx, 0x26b
lea eax, [ebp - 0x54]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x54]
mov dword [ebp - 0x1c], eax
je 0x1012863
push 0x2000
push edi
push edi
movzx eax, bx
push edi
push eax
push dword [esi + 0xc]
call fcn.010200ec
cmp eax, edi
mov dword [ebp - 0x18], eax
je 0x1012863
push 0x14
pop ecx
mov dword [ebp - 0xa8], edi
xor eax, eax
lea edi, [ebp - 0xa4]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xa8]
push eax
push 0x54
push dword [ebp - 0x18]
call fcn.0101fe3f
test eax, eax
je 0x10126d5
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 8], eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowDC]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x10], ebx
je 0x1012840
push dword [ebp - 8]
push dword [ebp - 0x1c]
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebx
mov dword [ebp - 0xc], eax
call edi
push ebx
mov dword [ebp - 0x14], eax
call edi
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 4], eax
je 0x1012836
cmp eax, edi
je 0x1012836
push dword [ebp - 0x18]
mov dword [ebp - 0x20], edi
push ebx
mov dword [ebp - 0x24], edi
call fcn.0101f07e
cmp eax, edi
mov ebx, dword [sym.imp.GDI32.dll_SelectPalette]
mov dword [esi + 0x38c], eax
je 0x1012761
push edi
push eax
push dword [ebp - 0x10]
call ebx
push edi
push dword [esi + 0x38c]
mov dword [ebp - 0x20], eax
push dword [ebp - 4]
call ebx
push dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
push dword [ebp - 0x18]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x14]
call edi
push dword [ebp - 0xc]
mov dword [ebp - 0x2c], eax
push dword [ebp - 4]
call edi
and dword [ebp - 0x44], 0
and dword [ebp - 0x40], 0
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 0x134]
neg eax
sbb eax, eax
and eax, 0x24b8d7
add eax, 0xda4729
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
test eax, eax
mov dword [ebp - 0x30], eax
je 0x10127ca
push eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_FillRect]
push dword [ebp - 0x30]
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0xcc0020
xor eax, eax
push eax
push eax
push dword [ebp - 0x14]
push dword [ebp - 8]
push dword [ebp - 0x1c]
push eax
push eax
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_BitBlt]
cmp dword [ebp - 0x28], 0
je 0x10127f5
push dword [ebp - 0x28]
push dword [ebp - 4]
call edi
cmp dword [ebp - 0x2c], 0
je 0x1012803
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call edi
cmp dword [ebp - 0x20], 0
je 0x1012813
push 1
push dword [ebp - 0x20]
push dword [ebp - 0x10]
call ebx
cmp dword [ebp - 0x24], 0
je 0x1012823
push 1
push dword [ebp - 0x24]
push dword [ebp - 0x10]
call ebx
push dword [ebp - 0x14]
mov edi, dword [sym.imp.GDI32.dll_DeleteDC]
call edi
push dword [ebp - 4]
call edi
mov ebx, dword [ebp - 0x10]
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [ebp - 0x18]
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
call ebx
cmp dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x17c], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x178], eax
jne 0x1012867
xor eax, eax
jmp 0x1012891
push dword [ebp - 0xc]
mov ecx, esi
call fcn.010123d4
lea edi, [esi + 0x388]
mov eax, dword [edi]
test eax, eax
je 0x1012880
push eax
call ebx
mov eax, dword [ebp - 0xc]
mov dword [edi], eax
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x138], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret