Function at 0x100093e6
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.1000933b
mov edi, dword [ebp + 0x14]
xor ebx, ebx
pop ecx
mov esi, eax
cmp edi, ebx
pop ecx
mov dword [ebp - 0xc], esi
je 0x1000972c
cmp esi, ebx
je 0x1000972c
cmp dword [esi + 0x10], ebx
je 0x1000972c
mov eax, dword [edi + 0x18]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x1000972c
lea eax, [ebp - 0x38]
push eax
push 0x18
push dword [esi + 0x10]
call dword [sym.imp.GDI32.dll_GetObjectA]
cmp eax, 0x18
jne 0x1000971f
push dword [esi + 0x10]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_SelectObject]
cmp eax, ebx
mov dword [ebp - 0x20], eax
je 0x1000971f
mov eax, dword [0x10018a24]
mov dword [ebp - 0x10], ebx
cmp eax, ebx
je 0x10009489
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_SelectPalette]
push dword [ebp - 4]
mov dword [ebp - 0x10], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
mov ecx, dword [esi + 8]
mov dword [ebp + 0x10], ebx
mov eax, ecx
mov dword [ebp + 0xc], ebx
dec eax
dec eax
je 0x100094a8
dec eax
jne 0x100094b1
mov eax, dword [edi + 0x24]
sub eax, dword [ebp - 0x34]
cdq
sub eax, edx
sar eax, 1
jmp 0x100094ae
mov eax, dword [edi + 0x24]
sub eax, dword [ebp - 0x34]
mov dword [ebp + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x1c], eax
sub eax, 7
je 0x100094cc
dec eax
jne 0x100094d5
mov eax, dword [edi + 0x28]
sub eax, dword [ebp - 0x30]
cdq
sub eax, edx
sar eax, 1
jmp 0x100094d2
mov eax, dword [edi + 0x28]
sub eax, dword [ebp - 0x30]
mov dword [ebp + 0xc], eax
mov esi, dword [sym.imp.GDI32.dll_BitBlt]
cmp ecx, 4
mov edi, 0xcc0020
je 0x10009502
cmp dword [ebp - 0x1c], 9
je 0x10009502
push edi
push ebx
push ebx
push dword [ebp - 8]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp - 4]
call esi
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 8], 4
jne 0x10009572
cmp dword [ecx + 0xc], 9
je 0x1000957c
cmp dword [ebp - 0x34], ebx
jle 0x10009572
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x24]
cdq
idiv dword [ebp - 0x34]
cmp eax, ebx
jle 0x1000954c
mov dword [ebp - 0x14], eax
push edi
push ebx
push ebx
push dword [ebp - 8]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp - 4]
call esi
mov eax, dword [ebp - 0x34]
add dword [ebp + 0x10], eax
dec dword [ebp - 0x14]
jne 0x10009527
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x24]
cmp dword [ebp + 0x10], eax
jge 0x10009572
sub eax, dword [ebp + 0x10]
push edi
push ebx
push ebx
push dword [ebp - 8]
push dword [ebp - 0x30]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp - 4]
call esi
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0xc], 9
jne 0x10009701
cmp dword [ecx + 8], 4
je 0x100095e3
cmp dword [ebp - 0x30], ebx
jle 0x100095e3
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x28]
cdq
idiv dword [ebp - 0x30]
cmp eax, ebx
jle 0x100095bd
mov dword [ebp - 0x14], eax
push edi
push ebx
push ebx
push dword [ebp - 8]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp - 4]
call esi
mov eax, dword [ebp - 0x30]
add dword [ebp + 0xc], eax
dec dword [ebp - 0x14]
jne 0x10009598
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x28]
cmp dword [ebp + 0xc], eax
jge 0x100095e3
sub eax, dword [ebp + 0xc]
push edi
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0x34]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp - 4]
call esi
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0xc], 9
jne 0x10009701
cmp dword [ecx + 8], 4
jne 0x10009701
cmp dword [ebp - 0x34], ebx
jle 0x10009701
cmp dword [ebp - 0x30], ebx
jle 0x10009701
mov ecx, dword [ebp + 0x14]
mov dword [ebp + 0xc], ebx
mov eax, dword [ecx + 0x24]
cdq
idiv dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 0x28]
cdq
idiv dword [ebp - 0x30]
mov edx, eax
cmp edx, ebx
mov dword [ebp - 0x1c], edx
jle 0x1000968f
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp + 0x10], ebx
cmp eax, ebx
jle 0x1000965b
mov dword [ebp - 0x14], eax
push edi
push ebx
push ebx
push dword [ebp - 8]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp - 4]
call esi
mov eax, dword [ebp - 0x34]
add dword [ebp + 0x10], eax
dec dword [ebp - 0x14]
jne 0x10009639
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x24]
cmp dword [ebp + 0x10], eax
jge 0x1000967e
sub eax, dword [ebp + 0x10]
push edi
push ebx
push ebx
push dword [ebp - 8]
push dword [ebp - 0x30]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp - 4]
call esi
mov eax, dword [ebp - 0x30]
add dword [ebp + 0xc], eax
dec dword [ebp - 0xc]
jne 0x1000962c
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx + 0x28]
cmp dword [ebp + 0xc], eax
jge 0x10009701
sub eax, dword [ebp + 0xc]
cmp edx, ebx
mov dword [ebp - 0xc], eax
jle 0x10009701
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp + 0x10], ebx
cmp eax, ebx
jle 0x100096d3
mov dword [ebp - 0x14], eax
push edi
push ebx
push ebx
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x34]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp - 4]
call esi
mov eax, dword [ebp - 0x34]
add dword [ebp + 0x10], eax
dec dword [ebp - 0x14]
jne 0x100096b1
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x24]
cmp dword [ebp + 0x10], eax
jge 0x100096f6
sub eax, dword [ebp + 0x10]
push edi
push ebx
push ebx
push dword [ebp - 8]
push dword [ebp - 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp - 4]
call esi
mov eax, dword [ebp - 0x30]
add dword [ebp + 0xc], eax
dec dword [ebp - 0x1c]
jne 0x100096a4
cmp dword [ebp - 0x10], ebx
je 0x10009713
push ebx
push dword [ebp - 0x10]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_SelectPalette]
push dword [ebp - 0x20]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_DeleteDC]
mov al, 1
jmp 0x1000972e
xor al, al
pop edi
pop esi
pop ebx
leave
ret