Function at 0x100182f1
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1007fc52
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x100b02c0]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push esi
push edi
mov eax, dword [0x100b02c0]
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 0x1001842c
cmp byte [edi + 0x28], 0
jne 0x1001842c
cmp byte [edi + 0x29], 0
jne 0x1001842c
cmp dword [edi + 0x30], 0
jne 0x1001842c
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 0x10018415
cmp eax, dword [esp + 0x1c]
je 0x10018415
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 0x1001842c
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.1000d8d8
mov byte [esp + 0xc8], 1
cmp dword [edi + 0x34], 0
je 0x10018504
push dword [esp + 0x4c]
lea esi, [esp + 0x34]
call fcn.1000cc54
mov eax, dword [esp + 0x34]
and dword [esp + 0x34], 0
test eax, eax
jne 0x100184f9
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.1000cc76
push dword [esp + 0x30]
call sub.gdiplus.dll_GdipDeleteGraphics
jmp 0x10018581
cmp byte [edi + 0x29], 0
je 0x10018511
mov eax, dword [edi + 0x2c]
test eax, eax
jne 0x1001851f
cmp byte [edi + 0x28], 0
je 0x10018531
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 0x10018581
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 0x10018581
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov esi, dword [edi + 0x24]
call fcn.1001aac7
cmp dword [edi + 0x24], 0
je 0x1001859f
test eax, eax
je 0x1001859f
mov edx, dword [eax]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, eax
call dword [edx + 0x58]
mov eax, dword [edi + 0x24]
call fcn.1001aad8
mov eax, dword [esp + 0x38]
lea edi, [esp + 0x4c]
mov dword [eax], 1
call fcn.1000d88c
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.1005fc2b
mov esp, ebp
pop ebp
ret 4