Function at 0x1000f170
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x3c
push ebx
push esi
push edi
mov edi, dword [esp + 0x58]
xor esi, esi
test edi, edi
mov dword [esp + 0x18], esi
je 0x1000f57f
mov eax, dword [esp + 0x4c]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x58], ebx
je 0x1000f57f
mov esi, dword [esp + 0x50]
test esi, esi
je 0x1000f1ab
mov eax, esi
push ebp
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x18], ebp
je 0x1000f351
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x1000f1ec
test esi, esi
mov eax, ebx
je 0x1000f1d1
mov eax, esi
push 0
push ecx
push eax
call dword [sym.imp.GDI32.dll_SelectPalette]
test esi, esi
mov dword [esp + 0x20], eax
jne 0x1000f1e5
mov esi, ebx
push esi
call dword [sym.imp.GDI32.dll_RealizePalette]
push edi
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [esp + 0x34]
xor esi, esi
push ecx
push 0x18
push edi
xor ebp, ebp
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0x50]
mov edi, dword [sym.imp.USER32.dll_GetClientRect]
lea edx, [esp + 0x24]
push edx
push eax
call edi
mov ecx, dword [esp + 0x58]
mov ebx, dword [esp + 0x3c]
lea eax, [ecx - 1]
mov ecx, dword [esp + 0x38]
cmp eax, 0x63
ja case.0x1000f240.11
xor edx, edx
mov dl, byte [eax + 0x1000f5b8]
jmp dword [edx*4 + 0x1000f58c]
mov edi, dword [esp + 0x2c]
cmp ecx, edi
jge 0x1000f54d
mov eax, edi
sub eax, ecx
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x30]
sar esi, 1
cmp ebx, eax
jge 0x1000f54d
sub eax, ebx
cdq
sub eax, edx
mov ebp, eax
sar ebp, 1
jmp case.0x1000f240.11
mov eax, dword [esp + 0x2c]
cmp ecx, eax
jge 0x1000f281
sub eax, ecx
mov esi, eax
cmp dword [esp + 0x58], 7
jne case.0x1000f240.11
mov dword [esp + 0x14], 0xffffffec
mov dword [esp + 0x10], 0x14
jmp case.0x1000f240.11
mov eax, dword [esp + 0x30]
cmp ebx, eax
jge 0x1000f2a6
sub eax, ebx
mov ebp, eax
cmp dword [esp + 0x58], 8
jne case.0x1000f240.11
mov dword [esp + 0x14], 0x14
mov dword [esp + 0x10], 0xffffffec
jmp case.0x1000f240.11
mov eax, dword [esp + 0x2c]
cmp ecx, eax
jge 0x1000f2cb
sub eax, ecx
mov esi, eax
mov eax, dword [esp + 0x30]
cmp ebx, eax
jge 0x1000f2d7
sub eax, ebx
mov ebp, eax
cmp dword [esp + 0x58], 9
jne case.0x1000f240.11
mov eax, 0xffffffec
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x1000f2f7
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x64]
push edx
mov edx, dword [esp + 0x1c]
push 0
push 0
push edx
mov edx, dword [esp + 0x24]
push ebx
push ecx
mov ecx, dword [esp + 0x28]
add edx, esi
add ecx, ebp
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x60]
test eax, eax
je 0x1000f342
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x1000f334
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x20]
push 0
push ecx
push eax
call dword [sym.imp.GDI32.dll_SelectPalette]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ebx, dword [esp + 0x5c]
mov eax, dword [esp + 0x50]
push ebx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x3c
ret 0x18
mov eax, dword [esp + 0x2c]
cmp ecx, eax
jge 0x1000f37c
sub eax, ecx
cdq
sub eax, edx
mov esi, eax
sar esi, 1
cmp dword [esp + 0x58], 0xa
jne case.0x1000f240.11
mov dword [esp + 0x10], 0x14
jmp case.0x1000f240.11
mov eax, dword [esp + 0x2c]
cmp ecx, eax
jge 0x1000f3a5
sub eax, ecx
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov eax, dword [esp + 0x30]
cmp ebx, eax
jge 0x1000f3b1
sub eax, ebx
mov ebp, eax
cmp dword [esp + 0x58], 0xb
jne case.0x1000f240.11
mov dword [esp + 0x10], 0xffffffec
jmp case.0x1000f240.11
mov eax, 0x14
jmp 0x1000f2e3
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x58], eax
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x50]
lea eax, [esp + 0x24]
push eax
push ecx
call edi
mov eax, dword [esp + 0x30]
xor edi, edi
test eax, eax
jle 0x1000f320
mov ebx, dword [esp + 0x64]
mov ebp, dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x2c]
xor esi, esi
test eax, eax
jle 0x1000f444
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x1000f41d
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
push ebx
push 0
push 0
push edx
mov edx, dword [esp + 0x48]
push ecx
push edx
push edi
push esi
push eax
call ebp
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x2c]
add esi, edx
cmp esi, eax
jl 0x1000f411
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
add edi, edx
cmp edi, ecx
jl 0x1000f40b
jmp 0x1000f320
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x24]
mov dword [esp + 0x58], edx
push eax
push ecx
call edi
mov esi, dword [esp + 0x54]
mov eax, dword [esp + 0x5c]
test esi, esi
je 0x1000f479
mov eax, esi
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
test edi, edi
je 0x1000f320
test esi, esi
jne 0x1000f492
mov esi, dword [esp + 0x5c]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
push edx
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x14], ebx
je 0x1000f53d
push ebx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebp, dword [esp + 0x64]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x38]
push ebp
push ecx
mov ecx, dword [esp + 0x38]
push eax
push 0
push 0
push edx
push ecx
push eax
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esp + 0x2c]
xor esi, esi
test eax, eax
jle 0x1000f52a
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x1000f502
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
push ebp
push 0
push 0
push edi
push edx
push ecx
push 0
push esi
push eax
call ebx
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x2c]
add esi, ecx
cmp esi, eax
jl 0x1000f4f6
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x1000f320
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x1000f559
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x64]
push edx
mov edx, dword [esp + 0x34]
push ebx
push ecx
mov ecx, dword [esp + 0x24]
push 0
push 0
push ecx
push edx
push edi
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_StretchBlt]
jmp 0x1000f31c
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x3c
ret 0x18