Function at 0x10012478
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.10012422
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
cmp edi, ebx
je 0x100127ba
cmp esi, ebx
je 0x100127ba
cmp dword [esi + 0x10], ebx
je 0x100127ba
mov eax, dword [edi + 0x18]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x100127ba
lea eax, [ebp - 0x40]
push eax
push 0x18
push dword [esi + 0x10]
call dword [sym.imp.GDI32.dll_GetObjectA]
cmp eax, 0x18
jne 0x100127ad
push dword [esi + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x100127ad
mov eax, dword [0x100340c8]
mov dword [ebp - 0x18], ebx
cmp eax, ebx
je 0x10012517
push ebx
push eax
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_SelectPalette]
push dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
mov ecx, dword [esi + 8]
lea eax, [ecx - 1]
dec eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x10012536
dec eax
jne 0x1001253f
mov eax, dword [edi + 0x24]
sub eax, dword [ebp - 0x3c]
cdq
sub eax, edx
sar eax, 1
jmp 0x1001253c
mov eax, dword [edi + 0x24]
sub eax, dword [ebp - 0x3c]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x24], eax
sub eax, 7
je 0x1001255a
dec eax
jne 0x10012563
mov eax, dword [edi + 0x28]
sub eax, dword [ebp - 0x38]
cdq
sub eax, edx
sar eax, 1
jmp 0x10012560
mov eax, dword [edi + 0x28]
sub eax, dword [ebp - 0x38]
mov dword [ebp - 8], eax
mov esi, dword [sym.imp.GDI32.dll_BitBlt]
mov edi, 0xcc0020
cmp ecx, 4
je 0x10012590
cmp dword [ebp - 0x24], 9
je 0x10012590
push edi
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp - 0xc]
call esi
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 8], 4
jne 0x10012600
cmp dword [ecx + 0xc], 9
je 0x1001260a
cmp dword [ebp - 0x3c], ebx
jle 0x10012600
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x24]
cdq
idiv dword [ebp - 0x3c]
cmp eax, ebx
jle 0x100125da
mov dword [ebp - 0x1c], eax
push edi
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp - 0xc]
call esi
mov eax, dword [ebp - 0x3c]
add dword [ebp - 4], eax
dec dword [ebp - 0x1c]
jne 0x100125b5
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x24]
cmp dword [ebp - 4], eax
jge 0x10012600
sub eax, dword [ebp - 4]
push edi
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp - 0x38]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp - 0xc]
call esi
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0xc], 9
jne 0x1001278f
cmp dword [ecx + 8], 4
je 0x10012671
cmp dword [ebp - 0x38], ebx
jle 0x10012671
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x28]
cdq
idiv dword [ebp - 0x38]
cmp eax, ebx
jle 0x1001264b
mov dword [ebp - 0x1c], eax
push edi
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp - 0xc]
call esi
mov eax, dword [ebp - 0x38]
add dword [ebp - 8], eax
dec dword [ebp - 0x1c]
jne 0x10012626
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x28]
cmp dword [ebp - 8], eax
jge 0x10012671
sub eax, dword [ebp - 8]
push edi
push ebx
push ebx
push dword [ebp - 0x10]
push eax
push dword [ebp - 0x3c]
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp - 0xc]
call esi
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0xc], 9
jne 0x1001278f
cmp dword [ecx + 8], 4
jne 0x1001278f
cmp dword [ebp - 0x3c], ebx
jle 0x1001278f
cmp dword [ebp - 0x38], ebx
jle 0x1001278f
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x24]
cdq
idiv dword [ebp - 0x3c]
mov dword [ebp - 8], ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 0x28]
cdq
idiv dword [ebp - 0x38]
mov edx, eax
mov dword [ebp - 0x24], edx
cmp edx, ebx
jle 0x1001271d
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], ebx
cmp eax, ebx
jle 0x100126e9
mov dword [ebp - 0x1c], eax
push edi
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp - 0xc]
call esi
mov eax, dword [ebp - 0x3c]
add dword [ebp - 4], eax
dec dword [ebp - 0x1c]
jne 0x100126c7
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x24]
cmp dword [ebp - 4], eax
jge 0x1001270c
sub eax, dword [ebp - 4]
push edi
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp - 0x38]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp - 0xc]
call esi
mov eax, dword [ebp - 0x38]
add dword [ebp - 8], eax
dec dword [ebp - 0x14]
jne 0x100126ba
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x28]
cmp dword [ebp - 8], eax
jge 0x1001278f
sub eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
cmp edx, ebx
jle 0x1001278f
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], ebx
cmp eax, ebx
jle 0x10012761
mov dword [ebp - 0x1c], eax
push edi
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x3c]
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp - 0xc]
call esi
mov eax, dword [ebp - 0x3c]
add dword [ebp - 4], eax
dec dword [ebp - 0x1c]
jne 0x1001273f
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x24]
cmp dword [ebp - 4], eax
jge 0x10012784
sub eax, dword [ebp - 4]
push edi
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp - 0xc]
call esi
mov eax, dword [ebp - 0x38]
add dword [ebp - 8], eax
dec dword [ebp - 0x24]
jne 0x10012732
cmp dword [ebp - 0x18], ebx
je 0x100127a1
push ebx
push dword [ebp - 0x18]
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_SelectPalette]
push dword [ebp - 0x28]
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_DeleteDC]
mov al, 1
jmp 0x100127bc
xor al, al
pop edi
pop esi
pop ebx
leave
ret