Function at 0x1001f763
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1009217b
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x100d12c0]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push esi
push edi
mov eax, dword [0x100d12c0]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x20]
mov edi, ecx
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [edi + 0x34], 0
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
jne 0x1001f89e
cmp byte [edi + 0x28], 0
jne 0x1001f89e
cmp byte [edi + 0x29], 0
jne 0x1001f89e
cmp dword [edi + 0x30], 0
jne 0x1001f89e
push dword [edi + 4]
mov ebx, dword [sym.imp.USER32.dll_GetDC]
call ebx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [edi + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
mov dword [esp + 0x18], eax
call ebx
push dword [esp + 0x1c]
push dword [esp + 0x18]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push dword [esp + 0x1c]
mov dword [edi + 0x30], eax
call esi
push dword [edi + 4]
mov dword [esp + 0x18], eax
call ebx
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
sub edx, dword [esp + 0x20]
push 0xcc0020
xor ebx, ebx
push ebx
push ebx
push eax
push ecx
push edx
push ebx
push ebx
push dword [esp + 0x38]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [esp + 0x14]
push dword [esp + 0x1c]
call esi
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x30]
cmp eax, ebx
je 0x1001f887
cmp eax, dword [esp + 0x1c]
je 0x1001f887
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x30], eax
cmp dword [esp + 0x18], ebx
je 0x1001f89e
push dword [esp + 0x18]
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [edi + 4]
and dword [esp + 0x6c], 0
lea ecx, [esp + 0x74]
push ecx
push eax
mov dword [esp + 0x78], eax
call dword [sym.imp.USER32.dll_BeginPaint]
mov dword [esp + 0x6c], eax
and dword [esp + 0xc8], 0
lea edx, [esp + 0x20]
mov ecx, eax
lea ebx, [esp + 0x4c]
call fcn.1000455c
mov byte [esp + 0xc8], 1
cmp dword [edi + 0x34], 0
je 0x1001f976
push dword [esp + 0x4c]
lea esi, [esp + 0x34]
call fcn.100105b0
mov eax, dword [esp + 0x34]
and dword [esp + 0x34], 0
test eax, eax
jne 0x1001f96b
mov eax, dword [esp + 0x28]
fldz
sub eax, dword [esp + 0x20]
fst dword [esp + 0x3c]
fstp dword [esp + 0x40]
mov ecx, dword [edi + 0x34]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
sub esp, 0x10
fstp dword [esp + 0x28]
mov dword [esp + 0x24], eax
fld dword [esp + 0x28]
lea eax, [esp + 0x4c]
fstp dword [esp + 0x54]
fild dword [esp + 0x24]
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
fstp dword [esp + 0x58]
fld dword [esp + 0x2c]
fstp dword [esp + 0xc]
fld dword [esp + 0x28]
fstp dword [esp + 8]
fild dword [edi + 0x3c]
fstp dword [esp + 4]
fild dword [edi + 0x38]
fstp dword [esp]
call fcn.100105d2
push dword [esp + 0x30]
call 0x1008fc60
jmp 0x1001f9f3
cmp byte [edi + 0x29], 0
je 0x1001f983
mov eax, dword [edi + 0x2c]
test eax, eax
jne 0x1001f991
cmp byte [edi + 0x28], 0
je 0x1001f9a3
push 0xf
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push eax
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x54]
call dword [sym.imp.USER32.dll_FillRect]
jmp 0x1001f9f3
push dword [esp + 0x4c]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [edi + 0x30]
mov ebx, eax
push ebx
call esi
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x24]
push 0xcc0020
mov dword [esp + 0x18], eax
xor eax, eax
push eax
push eax
push ebx
push ecx
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x34]
push ecx
push eax
push eax
push dword [esp + 0x6c]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [esp + 0x14]
push ebx
call esi
test ebx, ebx
je 0x1001f9f3
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [edi + 0x24]
call fcn.10021d6b
cmp dword [edi + 0x24], 0
je 0x1001fa11
test eax, eax
je 0x1001fa11
mov edx, dword [eax]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, eax
call dword [edx + 0x58]
call fcn.10021dae
mov eax, dword [esp + 0x38]
lea edi, [esp + 0x4c]
mov dword [eax], 1
call fcn.10004510
lea eax, [esp + 0x74]
push eax
push dword [esp + 0x74]
call dword [sym.imp.USER32.dll_EndPaint]
xor eax, eax
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.10071d9b
mov esp, ebp
pop ebp
ret 4